1 Reply Latest reply on Dec 17, 2008 11:45 AM by szymon_z

    Deploy jboss cache within an EAR

    erezharari

      is it possible to deploy jboss cache within an EAR? say i create cache-service.xml with Mbean def within it. can i just put it under my EAR META-INF folder?
      will the service then be deployed within the EAR? will jboss-cache jar be able to 'see' my other jars within the ERA?

        • 1. Re: Deploy jboss cache within an EAR
          szymon_z

          yes, you can deploy it, I have done it the following way:

          - put the cache MBean configuration in file named jboss-service.xml
          - put jboss-service.xml inside META-INF dir of a newly created SAR file (you can name it jbosscache.sar for example)
          - in your application's EAR you put the SAR at root level and in jboss-app.xml you add:

          <module>
          <service>jbosscache.sar</service>
          </module>


          That's it :)