aspose file tools
The moose likes JBoss and the fly likes startup class (extends ServiceMBean) vs load-on-startup servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Products » JBoss
Reply Bookmark "startup class (extends ServiceMBean) vs load-on-startup servlet" Watch "startup class (extends ServiceMBean) vs load-on-startup servlet" New topic
Author

startup class (extends ServiceMBean) vs load-on-startup servlet

agnes sun
Greenhorn

Joined: Jan 17, 2012
Posts: 7
Hi

I am new to jboss and would like to know what are the differences between ServiceMBean and load-on-startup servlet tag in web.xml? Also, I would like to know which one will always get loaded first or they are loaded at the same time? In what situation, I should use MBean and when I should use startup servlet or it doesn't matter?

I need to write a a class/servlet to validate if all the required system properties (e.g -DINSTALL_DIR=blah ) is set. If not, then stop right there. else proceed and start the application.

Thanks in advance

-A
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 8435

JBoss questions are best asked on the JBoss forum. Moving thread from the Portlets forum


[Donate a pint, save a life!] [How to ask questions] [Onff-turn it on!]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: startup class (extends ServiceMBean) vs load-on-startup servlet
 
Similar Threads
Best strategy to write Controller Servlet ?
jsps precompiled into servlets
Jsp precompiled into servlets
load-on-startup with 0 value
jsps into servlets automatically