Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Startup/Shutdown class in JBOSS 4.0

 
Rajesh MadhanGopal
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

Could someone tell me how to write a simple startup class which would start when i start the app server.

The following are the steps i performed :

1. Wrote a Mbean interface.
2. Wrote a Startup class implementing the Mbean interface.
3. Created a JAR of the 2 class files.

Now, where do i add the JAR file and also where is the jboss-service.xml in which i need to make an entry for the MBean.
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
jboss-service is located in the server/yourConfig/conf directory.

You would place the jar file in the deploy directory of server/yourConfig directory. "yourConfig" is whatever you are using. It might be minimal, default, all, or a copy of one of those that you customized for your environment (which is highly recommended to do).

Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic