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_at_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_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>