aspose file tools
The moose likes JBoss/WildFly and the fly likes Configure JBoss to connect to remote queues Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Configure JBoss to connect to remote queues" Watch "Configure JBoss to connect to remote queues" New topic
Author

Configure JBoss to connect to remote queues

Scott Selikoff
author
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3739
    
  10

I've completely the integration of MDBs on JBoss using ActiveMQ and everything works fine. In particular:

  • The header of my MDB has references to the ActiveMQ Adapter


  • Added activemq-jms-ds.xml to the deploy directory and configured it properly
  • Created directory activemq-rar-5.2.0.rar in the deploy directory and configured it properly


  • My question is this... without breaking the current setup, how do I allow an MDB to connect to a remote ActiveMQ instance?

    Also, let's say I want to run ActiveMQ as a stand alone process outside of JBoss. Is there a simple switch to turn off ActiveMQ from starting up without breaking the connectors? Every time I tried to turn off ActiveMQ, my MDBs failed to deploy properly. Basically, I'd like the connector aspect of ActiveMQ to be used with the server as being optional.


    [OCA 8 Book] [Blog]
    Scott Selikoff
    author
    Saloon Keeper

    Joined: Oct 23, 2005
    Posts: 3739
        
      10

    Figured it out, all the changes can be made in:
    activemq-rar-5.2.0.rar\META-INF\ra.xml

    To use a remote source, change the resourceadapter/config-property ServerURL to something like this:

    Where myServer is the address of the remote server.

    The second step to disable the embedded broker is to disable the resourceadapter/config-property BrokerXmlConfig section all together. It's the one that calls the broker-config.xml file in the JBoss solution. Removing this section will keep the connector in tact but not cause the broker to start.
     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: Configure JBoss to connect to remote queues