This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes JBoss/WildFly and the fly likes Configuring a Startup class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Configuring a Startup class" Watch "Configuring a Startup class" New topic

Configuring a Startup class

Steven Wong
Ranch Hand

Joined: Mar 07, 2002
Posts: 295

I need to create a startup class in JBoss. Can anyone share with me how this can be done? What are the configurations that need to be done in JBoss?


best regards,<br />Steven<br />SCJP, SCEA
Jaikiran Pai

Joined: Jul 20, 2005
Posts: 10441

You can use a MBean. Here's a example:

Also, here's a sample Startup class:

Section- Writing a StartupClass at:

Startup class in JBoss

[My Blog] [JavaRanch Journal]
Jyotika Kapoor

Joined: Apr 25, 2009
Posts: 19
hi all,

Can we make this flow asynchronous ; in my case the start up class will trigger a cache to get loaded in memory ; i want to make this flow asynchronous. How can we do it .

Thanks in advance.

I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Configuring a Startup class
It's not a secret anymore!