|
|
||
Binod's BlogSeptember 2005 ArchivesLazy Initialization of Application Server Services.Posted by binod on September 02, 2005 at 10:17 AM | Permalink | Comments (13)This is my first ever blog. I am basically a developer/engineer by profession (not a writer). So, please don't expect my blogs to be anywhere near an organized reading material. Lets come to the topic. I got many e-mails recently, asking me details about a feature called on-demand initialization (or lazy initialization) in Sun Java System Application Server or GlassFish ... and I thought I could use this blog post to explain what it is all about. Why was it taking longer to startup earlier? Application server, on startup, initialize containers/components that provide these services eagerly and this takes a long time AND lot of memory. So, what does this new feature do? Hence now, the Sun Java System Application Server does not start all the containers during startup. In fact when you install Application Server and start it afresh, there will be only a handful essential services initialized, namely a local JNDI provider, JMX connector (for administration). That is the best part of the feature. User doesn't need to do anything special to initialize the other services that are not started by default. The user uses the application server as he normally would. As and when a service is used, the Application Server will transparently start it. 1. JNDI Lookup. Many services and resources in Application Server are looked up using a JNDI name. Examples? Whenever a user-request reach any of these entry points,the Application Server will identify the type of incoming request and start all relevent services (or service groups) that are required. For example, if the user is accessing http port and if webserver is not started, then the webserver is started lazily/transparently. Or if user is accessing JMS port and JMS provider is not started, Application Server will start the JMS provider. When an ear file containing a EJB is loaded, and ORB is not yet started, Application Server will start ORB. If you are interested in this feature, the code is available for you to see at GlassFish FishEye page. If you like to download the latest MSbuild of glassfish, see the link here For any questions/comments, please use the comments section below or post them at the GlassFish developer's mailing list dev@glassfish.dev.java.net | ||
|
|