Yes, I agree that having a web tier which does all the work in init() will do but what if I don't have any web tier and don't like to use a servlet to do it.
I just need something equivalent to weblogic.system.startup.class="My Class" kind of thing or any direct workaround without the use of Servlet. Thanks, Saroj -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Simon Stewart Sent: Tuesday, July 16, 2002 7:44 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] How to register a class as a startup class in JBOSS3 I've reformatted the email a little because you seem to prefer top posting. The words are all still there :) Are you planning to restart that frequently? The singleton design could still work quite nicely if you have a web tier and use (as someone else suggested) one of your servlet's init() method to create the instance. Naturally, this servlet would have to be loaded when your app loads, but there's already support for this from the EJB spec. You get the advantage of "load on startup" without having to do something clunky with your config files. On Tue, Jul 16, 2002 at 07:28:41PM +0530, Saroj Kumar wrote: > Yes, It is one of the way. Thanks for suggesting this alternative. > > But, If we need to do some activity like File Reading/ Writing /Network > calls using sockets then we may need a no. of classes to execute before > we make the app. Up. It asks for Startup classes. > >> Simon Stewart said: >> >> Why not just use a singleton to load and get the variables? That's how >> I tend to handle situations like that. >> >>> On Tue, Jul 16, 2002 at 05:29:05PM +0530, Saroj Kumar wrote: >>> Hi All, >>> >>> I want to register a class as startup class in JBOSS3. This class >>> should be loaded in memory when server is started. >>> >>> This class reads some properties and loads them in the memory. Other >>> classes need to access these variables using ClassName.Method Names(). >>> >>> Please suggest me a way. Cheers, Simon -- Welcome to the Church of the Holy Cabbage. Lettuce pray. ------------------------------------------------------- This sf.net email is sponsored by: Jabber - The world's fastest growing real-time communications platform! Don't just IM. Build it in! http://www.jabber.com/osdn/xim _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user ------------------------------------------------------- This sf.net email is sponsored by: Jabber - The world's fastest growing real-time communications platform! Don't just IM. Build it in! http://www.jabber.com/osdn/xim _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
