This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes JBoss/WildFly and the fly likes startup class (extends ServiceMBean) vs load-on-startup servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
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: 10269
    
    8

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


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: startup class (extends ServiceMBean) vs load-on-startup servlet