5 Replies Latest reply on Jun 28, 2010 5:21 PM by J J

    Adding new services (JBoss messaging)

    J J Newbie

      Hello All,

      I have read a few artciles here about thinning JBoss, or removing services from a server configuration. My question was the opposite:

       

      I am running JBoss 5.0.1 with my application deployed on the 'web' configuration. Now there is need to add a service to it. Namely the JBoss Messaging service. I can think of the following to do:

      1) In server/web/deploy: Add messaging and jms-ra.jar

       

      Is this the only thing to be done, or is there more? Please let me know.

       

      Also, is there any documentation out there which talks about a standard way of adding services?

       

      Thanks.

        • 1. Re: Adding new services (JBoss messaging)
          Peter Johnson Master

          JBoss AS 5.0.1 already contains JBoss Messaging.

          • 2. Re: Adding new services (JBoss messaging)
            Peter Johnson Master

            And for adding new services, there are two variations:

             

            First, code up your serivce and place the JAR file in the common/lib directory. Then:

             

            a) If the service is JMX-based, place a *-service.xml file in the deploy directory to instantiate and configure your MBean(s)

             

            b) If the service is POJO-based, place a *-jboss-beans.xml file in the deploy directory to instantiate and configure your POJO(s)

            • 3. Re: Adding new services (JBoss messaging)
              J J Newbie

              Hi Peter, thanks for the replies.

               

              I thought JBoss Messaging(JMS) was only included fo the 'default' server configuration in JBoss 5.0.1. I am running the 'web' server configuration. Is the messaging service also available in  the 'web' configuration?

               

              Thanks.

              • 4. Re: Adding new services (JBoss messaging)
                Peter Johnson Master

                Ah, my mind completely skipped over the part where you wrote that you were using the "web" configuration.

                 

                I have never done this but your suggestion is a good start. Also inlcude the server/default/deployers/messaging-definitions-jboss-beans.xml file. Another thing you could do is to download JBoss Messaging and examine the steps it uses to install itself into AS 4.2.x. The steps will not be exactly the same, but they should tell you what else you need. Briefly glancing over those steps it looks like you will have to add the JMS-related security domains to server/web/conf/login-config.xml.

                 

                Of course, the recommend practice is to use a configuration that has everyhting (deafult) and remove the stuff your don't want, but you are already asking about that in another thread so you appear to be tackling hte issue from both sides.

                • 5. Re: Adding new services (JBoss messaging)
                  J J Newbie

                  Thanks Peter, I'll follow the steps you noted. Yes I am trying to tackle the issue from both ends. Trying to get to a configuration that takes minimal time to start up, but has everything we need.