2 Replies Latest reply on Sep 16, 2010 12:10 PM by rahul9885

    Jboss Messaging :configure Queue and Topics in destinations-service.xml

    rahul9885

      Hello All,

       

      I am trying to configure JBoss Messaging 1.4.5GA in JBoss-4.3.0 (Enterprie Edition).

       

      I am Configuring my application specific Queue and Topics in destinations-service.xml , but Queue is not getting register in jboss.

       

      I am getting following error in jboss :

       

      [ServiceConfigurator] Problem configuring service jboss.messaging.destination:service=Queue,name=jms/servers/logmon/MonitorInQueue
      org.jboss.deployment.DeploymentException: Exception setting attribute javax.management.Attribute@1e32382 on mbean jboss.messaging.destination:service=Queue,name=jms/servers/logmon/MonitorInQueue; - nested throwable: (javax.management.AttributeNotFoundException: not found: DestinationManager)
              at org.jboss.system.ServiceConfigurator.setAttribute(ServiceConfigurator.java:698)
              at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:380)
              at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:460)
              at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171)
              at org.jboss.system.ServiceController.install(ServiceController.java:226)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:585)

       

      My destinations-service.xml is unsder "jboss-4.3.0\server\MySiteServer\deploy\jboss-messaging.sar" , not in deploy directory of jboss.

       

      Is it right plcae to configure destination queue and topics ??

       

      My destinations-service.xml is like given below :

       

      <?xml version="1.0" encoding="UTF-8"?>

      <server>

      .

      .

      .

      <mbean code="org.jboss.jms.server.destination.QueueService"
         name="jboss.messaging.destination:service=Queue,name=jms/servers/logmon/MonitorInQueue"
         xmbean-dd="xmdesc/Queue-xmbean.xml"> ( what is this line for ??)
        
          <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
          <depends>jboss.messaging:service=PostOffice</depends>
          <depends optional-attribute-name="DestinationManager">jboss.messaging:service=DestinationManager</depends>
         <depends optional-attribute-name="SecurityManager">jboss.messaging:service=SecurityManager</depends>
          <attribute name="SecurityConf">
            <security>
              <role name="guest" read="true" write="true"/>
              <role name="publisher" read="true" write="true" create="false"/>
              <role name="noacc" read="false" write="false" create="false"/>
            </security>
          </attribute>
        </mbean>

       

      </server>

       

       

      Please help me in configuring DestinationManager and SecurityManager also !!!

      You can view attached destinations-service.xml.

       

      Thanks in advance for your efforts to resolve my problem, Thanks !!!

       

      Regards,

      Rahul Aahir

      mailme :rahul.aahir@tcs.com

        • 1. Re: Jboss Messaging :configure Queue and Topics in destinations-service.xml
          peterj

          Why do you have a 'depends' on the DestinationManager and SecurityManager? Those were needed for JBossMQ, but are not used with JBoss Messaging, so remove them. Take a look at the example destinations at docs/examples/jms/destinations-service.xml to see how destinations are defined for JBoss Messaging.

           

          >>My destinations-service.xml is unsder "jboss-4.3.0\server\MySiteServer\deploy\jboss-messaging.sar" , not in deploy directory of jboss. Is it right place to configure destination queue and topics ??

          Well, you could place it there, but I wouldn't. That directory is specifically for filles related to the JBoss Messaging server. Your destination file, however, is your own file to support your application. I recommend placing it in deploy.

          • 2. Re: Jboss Messaging :configure Queue and Topics in destinations-service.xml
            rahul9885

            Dear Peter,

             

            Thanks for your valuable suggesion. I got it.

             

            Thanks a lot.

             

            Regards,

            Rahul Aahir