This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes JBoss/WildFly and the fly likes Application Startup Class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Application Startup Class" Watch "Application Startup Class" New topic
Author

Application Startup Class

Jyotika Kapoor
Greenhorn

Joined: Apr 25, 2009
Posts: 19

Hi All,

Is there an application startup class also in JBOSS other than server startup class , the way we have it in web logic.


Thanks in advance

Jyotika
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10067
    
163

You can create a MBean and implement your startup functionality in the startService() method. See these:

CreateAStartupClass

ExampleHelloWorldService

[My Blog] [JavaRanch Journal]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Application Startup Class