8 Replies Latest reply on Mar 10, 2009 1:36 PM by peterj

    Jboss messaging in jboss 5.0

    svsubramanyam007

      Hi
      Am new to this messaging, recetly i have upgraded to Jboss messaging.
      I read somedid necessary changes in config files and ... when deploying it complains abt the jndi is null. can any one tell me wher am going wrong..


      My *-service.xml file is

      <server>
      
      <!--
       code="org.jboss.mq.server.jmx.Topic"
      
       <mbean
       code="org.jboss.mq.server.jmx.Topic"
       name="com.barco.event:service=Topic,name=events">
       <attribute name="JNDIName">topic/events</attribute>
       <attribute name="InMemory">true</attribute>
       <depends optional-attribute-name="DestinationManager">
       jboss.mq:service=DestinationManager
       </depends>
       <depends optional-attribute-name="SecurityManager">
       jboss.mq:service=SecurityManager
       </depends>
       </mbean> -->
      
       <mbean code="org.jboss.jms.server.destination.TopicService" name="com.barco.event:service=Topic,name=events" xmbean-dd="xmdesc/Topic-xmbean.xml">
      
       <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
       <depends>jboss.messaging:service=PostOffice</depends>
       <!-- <attribute name="SecurityConfig">
       <security>
       <role name="guest" read="true" write="true"/>
       <role name="publisher" read="true" write="true" create="false"/>
       <role name="durpublisher" read="true" write="true" create="true"/>
       </security>
       </attribute> -->
      
       </mbean>
      </server>


      MDB code goes like this..

      @MessageDriven(activationConfig = {@ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Topic"),
       @ActivationConfigProperty(propertyName = "destination", propertyValue = "topic/events")})
      @Depends({"com.barco.event.emitters:service=BarcoBroadcastService", "jboss:service=Naming"})
      public class BarcoBroadcastMDB
       implements MessageListener
      {
      
       private static Logger mLogger = Logger.getLogger(BarcoBroadcastMDB.class);
      
       @Depends({"com.barco.event.emitters:service=BarcoBroadcastService"})
       static BarcoBroadcastServiceMBean mBroadcastService;




      Jboss Console shows..

      11:47:54,179 INFO [JBossASKernel] Added bean(jboss.j2ee:jar=PerspectiveManagement.jar,name=PerspectiveMgtAPIImpl,service=EJB3) to KernelDeployment of: PerspectiveManagement.jar
      11:47:54,179 INFO [JBossASKernel] installing bean: jboss.j2ee:jar=PerspectiveManagement.jar,name=BarcoBroadcastMDB,service=EJB3
      11:47:54,179 INFO [JBossASKernel] with dependencies:
      11:47:54,179 INFO [JBossASKernel] and demands:
      11:47:54,179 INFO [JBossASKernel] jboss.ejb:service=EJBTimerService
      11:47:54,179 INFO [JBossASKernel] and supplies:
      11:47:54,179 INFO [JBossASKernel] jndi:null
      11:47:54,179 INFO [JBossASKernel] Class:javax.jms.MessageListener
      11:47:54,179 INFO [JBossASKernel] Added bean(jboss.j2ee:jar=PerspectiveManagement.jar,name=BarcoBroadcastMDB,service=EJB3) to KernelDeployment of: PerspectiveManagement.jar



      Often this exception floats....


      11:47:59,633 WARN [JmsActivation] Failure in jms activation org.jboss.resource.adapter.jms.inflow.JmsActivationSpec@874c04(ra=org.jboss.resource.adapter.jms.JmsResourceAdapter@68d0ca destination=topic/events destinationType=javax.jms.Topic tx=true durable=false reconnect=10 provider=java:/DefaultJMSProvider user=null maxMessages=1 minSession=1 maxSession=15 keepAlive=60000 useDLQ=true DLQHandler=org.jboss.resource.adapter.jms.inflow.dlq.GenericDLQHandler DLQJndiName=queue/DLQ DLQUser=null DLQMaxResent=5)
      javax.naming.NameNotFoundException: events not bound
       at org.jnp.server.NamingServer.getBinding(NamingServer.java:771)
       at org.jnp.server.NamingServer.getBinding(NamingServer.java:779)
       at org.jnp.server.NamingServer.getObject(NamingServer.java:785)
       at org.jnp.server.NamingServer.lookup(NamingServer.java:443)
       at org.jnp.server.NamingServer.lookup(NamingServer.java:399)
       at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:722)
       at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:682)
       at javax.naming.InitialContext.lookup(InitialContext.java:392)
       at org.jboss.util.naming.Util.lookup(Util.java:222)
       at org.jboss.resource.adapter.jms.inflow.JmsActivation.setupDestination(JmsActivation.java:464)
       at org.jboss.resource.adapter.jms.inflow.JmsActivation.setup(JmsActivation.java:352)
       at org.jboss.resource.adapter.jms.inflow.JmsActivation$SetupActivation.run(JmsActivation.java:729)
       at org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:213)
       at org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:260)
       at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
       at java.lang.Thread.run(Thread.java:619)
      11:47:59,711 WARN [Ejb3Configuration] Persistence provider caller does not implement the EJB3 spec correctly. PersistenceUnitInfo.getNewTempClassLoader() is null.
      11:47:59,993 INFO [AnnotationConfiguration] Mapping package com.barco.cms.openapi.sessionmgt
      11:48:00,852 INFO [AnnotationConfiguration] Mapping package com.barco.cms.openapi.exception



      am not able to get any info on this..
      please help me in solving this.

      Thanks In Advance
      Subramanyam

        • 1. Re: Jboss messaging in jboss 5.0
          gaohoward

          Jboss AS comes with jboss messaging 1.4.1.GA, your Topic config seems stay Jboss mq style, which doesn't work with the jboss messaging. Have a look at <AS5_home>/docs/examples/jms/example-destinations-service.xml and make changes to your config accordingly. Hope that can help.



          • 2. Re: Jboss messaging in jboss 5.0
            svsubramanyam007

             

            "gaohoward" wrote:
            Jboss AS comes with jboss messaging 1.4.1.GA, your Topic config seems stay Jboss mq style, which doesn't work with the jboss messaging. Have a look at <AS5_home>/docs/examples/jms/example-destinations-service.xml and make changes to your config accordingly. Hope that can help.



            Thanks a lot for your reply, i changed according JBMessaging style if you can see the my *.service file...i commented JBossMQ and so they appear..
            if am still wrong can u please point me on that



            • 3. Re: Jboss messaging in jboss 5.0
              gaohoward

              Sorry for being ignorant. It looks like the topic 'events' is not registered with jndi. Are you able to see the 'events' topic through the AS's management console?

              • 4. Re: Jboss messaging in jboss 5.0
                svsubramanyam007

                 

                "gaohoward" wrote:
                It looks like the topic 'events' is not registered with jndi. Are you able to see the 'events' topic through the AS's management console?

                Thanks for your response and looking the issue again....
                localhost:8080/jmx-console do u mean? if so under which can i have look please tell me.
                am sorry, as i really did not understand so i am posing this question where can i have look at AS's management console?


                • 5. Re: Jboss messaging in jboss 5.0
                  gaohoward

                  Yes, open the jmx-console, under the jboss.messaging.destination section, you should be able to see all deployed destinations. Check if your queue is there.

                  • 6. Re: Jboss messaging in jboss 5.0
                    svsubramanyam007

                    I got this fixed, i found that it is backward compatable to old JMQ no need to shift as of now.
                    In near days i will give try to change and come back if something goes wrong.

                    Thanks for the response.

                    • 7. Re: Jboss messaging in jboss 5.0
                      arunraai

                      I am using Jboss 5.

                      it contains C:\jboss-5.0.1.GA\server\default\deploy\messaging directory.

                      Which file i should use for the JMS configuration?

                      Can anybody tell me what i should configure in same file?

                      Thanks in advace.
                      Arun.

                      • 8. Re: Jboss messaging in jboss 5.0
                        peterj

                        arunraai, please start a new topic instead and ask your question there. But before you do, I have to ask - did you read the documentation?