|
Replies:
3
-
Last Post:
Mar 31, 2009 5:48 AM
by: pete101
|
|
|
|
|
|
|
Glassfish equivalent of weblogic startup class
Posted:
Mar 30, 2009 5:13 AM
|
|
|
Hi All
As a Glassfish newbie I have come to a dead end. I would like to implement a startup class as you can in weblogic. In my searching for the way to do this I noticed that the weblogic-->glassfish migration tool will migrate this but could not find a description of how ie.
Parameter Name | Item Description | File | Migration Resolution StartupClass | Registering startup classes | config.xml | Migrated
Can anyone provide me with some guidance on specifying a startup class for Glassfish 2.1
Thanks Pete
|
|
|
|
|
|
|
Re: Glassfish equivalent of weblogic startup class
Posted:
Mar 30, 2009 5:21 AM
in response to: pete101
|
|
|
|
|
You can create a ServletContextListener which will get called when your context starts. That's in the web tier, in EJB 3.0 which is bundled in Glassfish 2.1 there's no such equivalent so one technique is to call your EJB(s) that need to run on startup from the ServletContextListener. You will also need to make sure to add EJB refs. to your web.xml. The Glassfish EJB FAQ here might be useful to you as well: https://glassfish.dev.java.net/javaee5/ejb/EJB_FAQ.html
On Mon, Mar 30, 2009 at 8:13 AM, <glassfish@javadesktop.org> wrote:
> Hi All > > As a Glassfish newbie I have come to a dead end. I would like to implement > a startup class as you can in weblogic. In my searching for the way to do > this I noticed that the weblogic-->glassfish migration tool will migrate > this but could not find a description of how ie. > > Parameter Name | Item Description | File > | Migration Resolution > StartupClass | Registering startup classes | config.xml | > Migrated > > Can anyone provide me with some guidance on specifying a startup class for > Glassfish 2.1 > > Thanks Pete > [Message sent by forum member 'pete101' (pete101)] > > http://forums.java.net/jive/thread.jspa?messageID=339585 > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net > For additional commands, e-mail: users-help@glassfish.dev.java.net > > [att1.html]
|
|
|
|
|
|
|
|
Re: Glassfish equivalent of weblogic startup class
Posted:
Mar 31, 2009 5:48 AM
in response to: NBW
|
|
|
Thanks for the propmt reply its very much appreciated
|
|
|
|
|