RE: [JBoss-user] How to register a class as a startup class in JBOSS3

2002-07-16 Thread Bill Burke
ar > Sent: Tuesday, July 16, 2002 11:56 AM > To: [EMAIL PROTECTED] > Subject: RE: [JBoss-user] How to register a class as a startup class in > JBOSS3 > > > How do we use a mbean? Any starting points? I am new to JBOSS. Any help > would be more than welcome. > > Th

RE: [JBoss-user] How to register a class as a startup class in JBOSS3

2002-07-16 Thread Saroj Kumar
7; Subject: AW: [JBoss-user] How to register a class as a startup class in JBOSS3 You could use an mbean for that purpose which would have the additional advantage of being reinitializable when you cycle your application and configurable from any (RMI/HTML/whatever) JXM-Adapter. Statics are poo

Re: [JBoss-user] How to register a class as a startup class in JBOSS3

2002-07-16 Thread Dan Christopherson
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

RE: [JBoss-user] How to register a class as a startup class in JBOSS3

2002-07-16 Thread Saroj Kumar
d 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'v

AW: [JBoss-user] How to register a class as a startup class in JBOSS3

2002-07-16 Thread Jung , Dr. Christoph
:[EMAIL PROTECTED]] Gesendet: Dienstag, 16. Juli 2002 14:40 An: [EMAIL PROTECTED] Betreff: Re: [JBoss-user] How to register a class as a startup class in JBOSS3 There is a generic way to do this with web applications in the 2.2 servlet spec and even a better way in 2.3. In 2.2, you can just have a

Re: [JBoss-user] How to register a class as a startup class in JBOSS3

2002-07-16 Thread Simon Stewart
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() meth

RE: [JBoss-user] How to register a class as a startup class in JBOSS3

2002-07-16 Thread Saroj Kumar
Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Simon Stewart Sent: Tuesday, July 16, 2002 7:18 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] How to register a class as a startup class in JBOSS3 On Tue, Jul 16, 2002 at 05:29:05PM +0530, Saroj Kumar wrote: > Hi

Re: [JBoss-user] How to register a class as a startup class in JBOSS3

2002-07-16 Thread Simon Stewart
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 the

Re: [JBoss-user] How to register a class as a startup class in JBOSS3

2002-07-16 Thread David Ward
There is a generic way to do this with web applications in the 2.2 servlet spec and even a better way in 2.3. In 2.2, you can just have a servlet that calls your initializer in it's init() method. Then, in web.xml, define the load-on-startup element. That way, when your web app comes up, you

[JBoss-user] How to register a class as a startup class in JBOSS3

2002-07-16 Thread Saroj Kumar
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. Saro