tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mauro2java2011 <mauro2java2...@gmail.com>
Subject jms configuration default jms resource adaptor ActiveMQ into tomee
Date Wed, 08 Jun 2016 14:25:50 GMT
i would use the default configuration for jms .
i read from activeMQ web site:

* <https://activemq.apache.org/tomee.html>
https://activemq.apache.org/tomee.html* 
------------------------------------------------------------------------------------------
Configuring an Embedded Broker

If no broker is configured and JMS is used in the webapp, TomEE will create
a broker equivalent to the following declaration:

<tomee>
    <Resource id="MyJmsResourceAdapter" type="ActiveMQResourceAdapter">
       * BrokerXmlConfig =  broker:(tcp://someHostName:61616)*
        ServerUrl       =  vm://localhost
    </Resource>
 
    <Resource id="MyJmsConnectionFactory"
type="javax.jms.ConnectionFactory">
        ResourceAdapter = MyJmsResourceAdapter
    </Resource>
</tomee>

This creates an ActiveMQ Broker that runs inside TomEE and is bound to the
address *someHostName:61616*. This broker will start when TomEE starts and
shutdown when TomEE shuts down. All JMS communication happening inside TomEE
itself will happen using the embedded ActiveMQ Broker over the ActiveMQ "vm"
transport which is optimized for sending and receiving messages when in the
same JVM as the Broker.


----------------------------------------------------------------------------

but i ask:
*1)*  the         BrokerXmlConfig =  broker:(tcp://someHostName:61616)

how it is interpreted? 
How it can work? the dns for the value  someHostName not esixt .
or i have to put  BrokerXmlConfig =  broker:(tcp://localhost:61616) ????

*2) *where is configurated the default resorceadaptor into tomee ?
Programmatically or into what xml file?

do you have the java source where the default jmsresourceadapter is created?

tank you MAuro





--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/jms-configuration-default-jms-resource-adaptor-ActiveMQ-into-tomee-tp4678801.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Mime
View raw message