The Source for Java Technology Collaboration

Home » java.net Forums » GlassFish » GlassFish

Thread: Glassfish equivalent of weblogic startup class

Welcome, Guest Help
Login Login
Guest Settings Guest Settings
This question is not answered. Helpful answers available: 1. Correct answers available: 1.

Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 3 - Last Post: Mar 31, 2009 5:48 AM by: pete101
pete101

Posts: 6
Glassfish equivalent of weblogic startup class
Posted: Mar 30, 2009 5:13 AM
 
  Click to reply to this thread Reply

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

NBW
Re: Glassfish equivalent of weblogic startup class
Posted: Mar 30, 2009 5:21 AM   in response to: pete101
  Click to reply to this thread Reply

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]


pete101

Posts: 6
Re: Glassfish equivalent of weblogic startup class
Posted: Mar 31, 2009 5:48 AM   in response to: NBW
 
  Click to reply to this thread Reply

Thanks for the propmt reply its very much appreciated

tjquinn

Posts: 618
Re: Glassfish equivalent of weblogic startup class
Posted: Mar 30, 2009 5:54 AM   in response to: pete101
Helpful
  Click to reply to this thread Reply

Would a lifecycle module work for you?

http://docs.sun.com/app/docs/doc/820-4336/beamc?a=view

- Tim




 XML java.net RSS