Re: [JBoss-user] Startup class
What I did was to create a servlet class and in its init method I added code that runs upon startup. Is there any way I can do something like startup classes? I want something nice and simple ;-) There are some classes that I want them to be loaded into memory when JBoss restarts. Thanks. Mitchell --- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1refcode1=vs3390 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user -- It's not easy to juggle a pregnant wife and a troubled child, but somehow I managed to fit in eight hours of TV a day. - Homer --- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1refcode1=vs3390 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Startup class
mbeans work well for this. david jencks On 2002.08.15 13:11:40 -0400 Kim, Yong wrote: Is there any way I can do something like startup classes? I want something nice and simple ;-) There are some classes that I want them to be loaded into memory when JBoss restarts. Thanks. Mitchell --- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1refcode1=vs3390 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1refcode1=vs3390 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Startup class
Then, how did you make that servlet executed when startup? Did you use load-on-start attribute from xdoclet? I don't even know if that attribute still works becuase when I went to xdoclet home page, that attribute doesn't exist any more... Mitchell -Original Message- From: Michael Klem [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 1:37 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Startup class What I did was to create a servlet class and in its init method I added code that runs upon startup. Is there any way I can do something like startup classes? I want something nice and simple ;-) There are some classes that I want them to be loaded into memory when JBoss restarts. Thanks. Mitchell --- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1refcode1=vs3390 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user -- It's not easy to juggle a pregnant wife and a troubled child, but somehow I managed to fit in eight hours of TV a day. - Homer --- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1refcode1=vs3390 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1refcode1=vs3390 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Startup class
Oh good idea. Seems simpler and cleaner too. mbeans work well for this. david jencks On 2002.08.15 13:11:40 -0400 Kim, Yong wrote: Is there any way I can do something like startup classes? I want something nice and simple ;-) There are some classes that I want them to be loaded into memory when JBoss restarts. Thanks. Mitchell --- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1refcode1=vs3390 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1refcode1=vs3390 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user -- It's not easy to juggle a pregnant wife and a troubled child, but somehow I managed to fit in eight hours of TV a day. - Homer --- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1refcode1=vs3390 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Startup class
Yes, it still exists; I use it. @web:servlet name=Foobar load-on-startup=1 David -- Kim, Yong wrote: Then, how did you make that servlet executed when startup? Did you use load-on-start attribute from xdoclet? I don't even know if that attribute still works becuase when I went to xdoclet home page, that attribute doesn't exist any more... Mitchell -Original Message- From: Michael Klem [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 1:37 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Startup class What I did was to create a servlet class and in its init method I added code that runs upon startup. Is there any way I can do something like startup classes? I want something nice and simple ;-) There are some classes that I want them to be loaded into memory when JBoss restarts. Thanks. Mitchell --- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1refcode1=vs3390 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Startup class
If you want arbitrary code (as opposed to a servlet) to run on startup then you should be using a servlet context listener. This is part of the Servlet 2.3 spec and will be portable to all compliant servlet containers. It works fine from Tomcat and should work from Jetty. Stuart Halloway DevelopMentor http://staff.develop.com/halloway -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of David Ward Sent: Thursday, August 15, 2002 1:16 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Startup class Yes, it still exists; I use it. @web:servlet name=Foobar load-on-startup=1 David -- Kim, Yong wrote: Then, how did you make that servlet executed when startup? Did you use load-on-start attribute from xdoclet? I don't even know if that attribute still works becuase when I went to xdoclet home page, that attribute doesn't exist any more... Mitchell -Original Message- From: Michael Klem [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 1:37 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Startup class What I did was to create a servlet class and in its init method I added code that runs upon startup. Is there any way I can do something like startup classes? I want something nice and simple ;-) There are some classes that I want them to be loaded into memory when JBoss restarts. Thanks. Mitchell --- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1refcode1=vs3390 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user