• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Scott Selikoff
Bartenders:
  • Piet Souris
  • Jj Roberts
  • fred rosenberger

Startup classes

 
Ranch Hand
Posts: 8944
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Does Websphere provide startup classes like Weblogic?
 
Ranch Hand
Posts: 321
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 1551
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 8944
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I feel that the startup classes should be standarized in the J2EE spec rather than allow each vendor to do different things.
 
reply
    Bookmark Topic Watch Topic
  • New Topic