7 Replies Latest reply on May 16, 2011 2:40 PM by jass

    jbossesb-4.7 & hornetq-2.0.0.CR1

    Steven Cohn Newbie

      I tried getting this to work with AS 6 and so far no luck. Has anyone gotten hornet to work with AS 5 or 6 and ESB 4.6 or 4.7?

      I modified the build.xml to recognize hornetq.sar for jms and it does install but get lots of errors when I try to run.

      2009-12-09 12:16:30,433 INFO [org.jboss.system.server.profileservice.ProfileServiceBootstrap] (Thread-2) Loading profile: ProfileKey@1d33544[domain=default, server=default, name=default-with-hornetq]
      2009-12-09 12:16:30,433 ERROR [org.jboss.system.server.profileservice.ProfileServiceBootstrap] (Thread-2) Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

      DEPLOYMENTS MISSING DEPENDENCIES:
      Deployment "jboss.esb.destination:name=CallbackQueue,service=Queue" is missing the following dependencies:
      Dependency "jboss.messaging:service=ServerPeer" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss.messaging:service=ServerPeer' **")
      Deployment "jboss.esb.destination:name=DataCollectorQueue,service=Queue" is missing the following dependencies:
      Dependency "jboss.messaging:service=ServerPeer" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss.messaging:service=ServerPeer' **")
      Deployment "jboss.esb.destination:name=DeadMessageQueue,service=Queue" is missing the following dependencies:
      Dependency "jboss.messaging:service=ServerPeer" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss.messaging:service=ServerPeer' **")
      Deployment "jboss.esb.destination:name=OperationsCollectorQueue,service=Queue" is missing the following dependencies:
      Dependency "jboss.messaging:service=ServerPeer" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss.messaging:service=ServerPeer' **")

        • 1. Re: jbossesb-4.7 & hornetq-2.0.0.CR1
          Tim Fox Master

          I don't really know much about JBoss ESB, but I assume there is some documented procedure for integrating a JMS provider into it.

          One of the JBoss ESB team will be able to answer that for sure, but have you looked in the JBoss ESB docs?

          Looking at your logs:

          Dependency "jboss.messaging:service=ServerPeer" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss.messaging:service=ServerPeer' **")
          


          ServerPeer is a JBoss Messaging thing, it doesn't exist in HornetQ, so I guess you're trying to integrate HornetQ with JBoss Messaging config which won't work.

          • 2. Re: jbossesb-4.7 & hornetq-2.0.0.CR1
            Tim Fox Master

            BTW - how did you install HornetQ in AS 5?

            This should be done by running a script that we supply in the distro.

            This is described in the quick start guide:

            http://hornetq.sourceforge.net/docs/hornetq-2.0.0.CR1/quickstart-guide/en/html/installation.html#installation.jboss.as5

            Once you have installed HornetQ, you can verify that the install worked correctly by running the JEE examples, also described in the quick start guide and user manual.

            • 3. Re: jbossesb-4.7 & hornetq-2.0.0.CR1
              Kevin Conner Master

               

              "timfox" wrote:
              ServerPeer is a JBoss Messaging thing, it doesn't exist in HornetQ, so I guess you're trying to integrate HornetQ with JBoss Messaging config which won't work.


              This is the issue, he has replaced JBoss Messaging but not updated the associated configs for the queues.

              Kev

              • 4. Re: jbossesb-4.7 & hornetq-2.0.0.CR1
                Steven Cohn Newbie

                I searched the deploy directory and here are a list of file that include ServerPeer. Can I get ESB to work with HornetQ by modifying these? Any suggestions on how the would need to change? Seems like they all have the same line that needs to change:

                depends optional-attribute-name="ServerPeer"> jboss.messaging:service=ServerPeer /depends>


                server\default-with-hornetq\deploy\jbossesb.esb\jbm-queue-service.xml
                server\default-with-hornetq\deploy\jbpm.esb\config\jmsscheduler\jbm-queue-service.xml.config
                server\default-with-hornetq\deploy\jbpm.esb\config\quartzscheduler\jbm-queue-service.xml.config
                server\default-with-hornetq\deploy\jbpm.esb\jbm-queue-service.xml

                • 5. Re: jbossesb-4.7 & hornetq-2.0.0.CR1
                  Daniel Bevenius Master

                  Hi Steven,

                   

                  like Kev said you need to create hornetq specific definitions which will replace the jbm-queue-service.xml files.

                  So, in jbossesb.esb add the following file hornetq-jms.xml:

                   

                  <configuration xmlns="urn:hornetq" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:hornetq /schema/hornetq-jms.xsd">
                  
                     <connection-factory name="NettyConnectionFactory">
                        <connectors>
                           <connector-ref connector-name="netty"/>
                        </connectors>
                        <entries>
                           <entry name="/ConnectionFactory"/>
                           <entry name="/XAConnectionFactory"/>
                        </entries>
                     </connection-factory>
                  
                     <connection-factory name="InVMConnectionFactory">
                        <connectors>
                           <connector-ref connector-name="in-vm"/>
                        </connectors>
                        <entries>
                           <entry name="java:/ConnectionFactory"/>
                           <entry name="java:/XAConnectionFactory"/>
                        </entries>
                     </connection-factory>
                  
                     <queue name="DeadMessageQueue">
                        <entry name="/queue/DeadMessageQueue"/>
                     </queue>
                  
                     <queue name="DataCollectorQueue">
                        <entry name="/queue/DataCollectorQueue"/>
                     </queue>
                  
                     <queue name="OperationsCollectorQueue">
                        <entry name="/queue/OperationsCollectorQueue"/>
                     </queue>
                  
                     <queue name="OperationsResultCollectorQueue">
                        <entry name="/queue/OperationsResultCollectorQueue"/>
                     </queue>
                  
                  </configuration>
                  
                  
                  Next update jbossesb.esb/META-INF/deployment.xml and remove the dependencies to the jbm queues.
                  I've not been able to add dependencies for hornetq queue. I've tried this without success:
                    <depends>org.hornetq:module=JMS,type=Queue,name="DeadMessageQueue"</depends>
                   
                  
                  If Tim is watching perhaps he can help out and see if this looks right to him?
                  You will also need to add a file containing an empty service definition. For example named dummy-service.xml
                  <server>
                  </server>
                   
                  
                  For information about why you need please refer to this jira.
                  Next you'll need to replace the jbm-queue-service.xml in jbpm.esb with a hornetq-jms.xml:
                  <configuration xmlns="urn:hornetq"
                              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                              xsi:schemaLocation="urn:hornetq /schema/hornetq-jms.xsd">
                   
                     <connection-factory name="NettyConnectionFactory">
                        <connectors>
                           <connector-ref connector-name="netty"/>
                        </connectors>
                        <entries>
                           <entry name="/ConnectionFactory"/>
                           <entry name="/XAConnectionFactory"/>
                        </entries>
                     </connection-factory>
                   
                     <connection-factory name="InVMConnectionFactory">
                        <connectors>
                           <connector-ref connector-name="in-vm"/>
                        </connectors>
                        <entries>
                           <entry name="java:/ConnectionFactory"/>
                           <entry name="java:/XAConnectionFactory"/>
                        </entries>
                     </connection-factory>
                   
                     <queue name="DeadMessageQueue">
                        <entry name="/queue/DeadMessageQueue"/>
                     </queue>
                   
                     <queue name="DataCollectorQueue">
                        <entry name="/queue/DataCollectorQueue"/>
                     </queue>
                   
                     <queue name="OperationsCollectorQueue">
                        <entry name="/queue/OperationsCollectorQueue"/>
                     </queue>
                   
                     <queue name="CallbackQueue">
                        <entry name="/queue/CallbackQueue"/>
                     </queue>
                   
                  </configuration>
                   
                  
                  Again you'll need to remove the jbm queue from jbpm.esb/META-INF/deployment.xml.
                  This is the first time I've tried Hornetq with JBossESB so please let us know if you run into any issue?
                  Regards,
                  /Daniel
                  • 6. Re: jbossesb-4.7 & hornetq-2.0.0.CR1
                    Tomas Fecko Newbie
                    Anybody tried this? Is there some more usefull post about configuring hornetQ for jboss ESB?
                    • 7. Re: jbossesb-4.7 & hornetq-2.0.0.CR1
                      jass Newbie

                      Hi All,

                       

                      I am stuck at the same issue, I have tried all the Steps as listed in the Wiki Page http://community.jboss.org/wiki/HornetQ212OnJBossAS510GA pointed out by Daniel, but after that, Queue Dependency issue is coming.

                       

                      I had to access JBOSS ESB for my Organisation, so tried the Community Builds first ...