Help coderanch get a
new server
by contributing to the fundraiser
  • 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
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

WAR file deployment and jboss-service.xml

 
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am new to JBOSS AS. I am trying to deploy a war file in jboss4.2. I have to define a JMX bean to use in my WAR file (only this war file). Where should I keep my *-service.xml file inside the WAR. Is it possible ??

I came to know that for .SAR files, we can place the file inside META-INF. But I have to use a WAR file.

Could someone please guide me.
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
As far as I know, you will have to place the WAR within an EAR and add the *-service.xml file to the EAR also. In addition, the MBean classes would have to be in a separate JAR file within the EAR (they cannot be located within the WAR). Then you will have to add entries to but the application.xml and jboss-app.xml files.

With JBoss AS 5.x, it might be possible to locate the *-service.xml file within WEB-INF or META-INF, but I haven't tried it so am not sure.
 
Reddy Prashanth
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you Peter.

I'll try this one. But I am trying to find a way to work with only WAR file , not EAR :-). If that doesn't work, I will go with EAR.
reply
    Bookmark Topic Watch Topic
  • New Topic