File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

Startup classes

Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

Does Websphere provide startup classes like Weblogic?


Groovy
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..
Rishi
SCJP,SCWCD,IBM/OOAD
Rishi
Kyle Brown
author
Ranch Hand

Joined: Aug 10, 2001
Posts: 3892
    
    5
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


Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at http://www.kyle-brown.com/ 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: 8919

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: http://aspose.com/file-tools
 
subject: Startup classes