• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Startup/Shutdown class in JBOSS 4.0

 
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic