File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Websphere and the fly likes Startup classes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Websphere
Bookmark "Startup classes" Watch "Startup classes" New topic

Startup classes

Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8927

Does Websphere provide startup classes like Weblogic?

Rishi Singh
Ranch Hand

Joined: Dec 09, 2000
Posts: 321
Hi Pradeeep,
Can you be more specific as to what you mean by start -up classes. You can
include classes as source or as .jars in your Server classpath and that is made avialable to you at start-up..
Kyle Brown
Ranch Hand

Joined: Aug 10, 2001
Posts: 3892
There are two different types of startup hooks in WebSphere. WebSphere (base and ND) defines "Custom Services" that allow you too hook into the startup sequence of WAS, but these run prior to the initialization of most of the J2EE services, so you can't use JNDI or EJB's in them.
WAS EE (Enterprise Edition) defines the idea of a "startup bean" which is a special EJB type that also provides a startup hook, but which runs AFTER J2EE initialization.

Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at for other WebSphere information.
Rufus BugleWeed
Ranch Hand

Joined: Feb 22, 2002
Posts: 1551
Pradeep if your interested in more of the details on Enterprise's start up beans they are documented in chapter 12 of WAS Programming Model Extensions.
The features IBM touts include -
1. Startup Beans run with full security context.
2. Startup Beans run within WebSphere�s name space. Therefore it
uses JNDI to find and use other resources.
3. If we compare it to a servlet, the a servlet�s init() method is
often used as a startup mechanism for starting initialization tasks.
The Startup Bean also provides a method that executes upon the
application�s shutdown.
How's this compare to Weblogic?
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8927

I feel that the startup classes should be standarized in the J2EE spec rather than allow each vendor to do different things.
I agree. Here's the link:
subject: Startup classes
It's not a secret anymore!