I'm using the latest TomEE Plume, and had some nice success doing JMS/queue
development using the embedded ActiveMQ Broker.

Now I need to point to a proper, external broker ... but none of my
XML-kung-fu is working, and the dreaded embedded activemq broker appears to
start every time.   I'm unable to see any activity against my remote broker.


I've tried setting this in $CATALINA_HOME/conf/tomee.xml, and in my
webapps/appname/WEB-INF/tomee.xml and in resources.xml.  

The instructions for this appear to drop dead easy ... and yet I cannot seem
to correctly get this.  All of my other resources, such as datasources and
such all work great.

    <Resource id="OmegaJmsResourceAdapter" type="ActiveMQResourceAdapter">
        # Do not start the embedded ActiveMQ broker
        BrokerXmlConfig  =
        ServerUrl tcp://someremotehost:61616
        UserName admin
        Password thepassword
    </Resource>
 
I've tried researching, and grepping, to find where this dreaded embedded
configuration is even coming from, and unable to find it.

Here is what the startup logs typically look like. 

Dec 28, 2014 9:47:38 PM org.apache.openejb.assembler.classic.Assembler
createRecipe
INFO: Creating Resource(id=Default JMS Resource Adapter)
Dec 28, 2014 9:47:38 PM org.apache.openejb.assembler.classic.Assembler
createResource
INFO: Thread pool size for 'Default JMS Resource Adapter' is (30)
Dec 28, 2014 9:47:38 PM
org.apache.openejb.resource.activemq.ActiveMQ5Factory createBroker
INFO: ActiveMQ5Factory creating broker
Dec 28, 2014 9:47:38 PM
org.apache.openejb.resource.activemq.ActiveMQ5Factory createBroker
INFO: Using ActiveMQ startup timeout of 10000ms
Dec 28, 2014 9:47:38 PM
org.apache.openejb.resource.activemq.ActiveMQ5Factory$1 run
INFO: Starting ActiveMQ BrokerService
Dec 28, 2014 9:47:38 PM org.apache.activemq.broker.BrokerService
doStartPersistenceAdapter
INFO: Using Persistence Adapter: MemoryPersistenceAdapter
Dec 28, 2014 9:47:38 PM org.apache.activemq.broker.BrokerService
doStartBroker
INFO: Apache ActiveMQ 5.10.0 (localhost, ID:BBeast-51748-1419824858237-0:1)
is starting
Dec 28, 2014 9:47:38 PM
org.apache.activemq.transport.TransportServerThreadSupport doStart
INFO: Listening for connections at: tcp://127.0.0.1:61616
Dec 28, 2014 9:47:38 PM org.apache.activemq.broker.TransportConnector start
INFO: Connector tcp://127.0.0.1:61616 started
Dec 28, 2014 9:47:38 PM org.apache.activemq.broker.BrokerService
doStartBroker
INFO: Apache ActiveMQ 5.10.0 (localhost, ID:BBeast-51748-1419824858237-0:1)
started
Dec 28, 2014 9:47:38 PM org.apache.activemq.broker.BrokerService
doStartBroker
INFO: For help or more information please see: http://activemq.apache.org

Here's a full shot of what I've been trying in the various xml config:

    <Resource id="OmegaJmsResourceAdapter" type="ActiveMQResourceAdapter">
        # Do not start the embedded ActiveMQ broker
        BrokerXmlConfig  =
        ServerUrl tcp://externalhost:61616
        UserName admin
        Password thepassword
    </Resource>
 
    <Resource id="OmegaJmsConnectionFactory"
type="javax.jms.ConnectionFactory">
        ResourceAdapter = OmegaJmsResourceAdapter
    </Resource>
           
    <Container id="OmegaJmsMdbContainer" ctype="MESSAGE">
        ResourceAdapter = OmegaJmsResourceAdapter
    </Container>
    
        <Resource id="bpopen.omega.delivery.in" type="javax.jms.Queue" />

        <Resource id="bpopen.omega.delivery.ack" type="javax.jms.Queue" />

        <Resource id="bpopen.omega.delivery.error" type="javax.jms.Queue" />





--
View this message in context: 
http://tomee-openejb.979440.n4.nabble.com/Unable-to-prevent-embedded-activemq-broker-from-starting-Cannot-configure-remote-broker-connection-tp4673299.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Reply via email to