Hello comments inline
Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://blog-rmannibucau.rhcloud.com> | Old Wordpress Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> | LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber <http://www.tomitribe.com> | JavaEE Factory <https://javaeefactory-rmannibucau.rhcloud.com> 2016-06-08 16:25 GMT+02:00 mauro2java2011 <[email protected]>: > 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) ???? > > Yes you have to set localhost (or any host), it means open a network connector on the tcp address > *2) *where is configurated the default resorceadaptor into tomee ? > Programmatically or into what xml file? > > tomee.xml, this is actually what you are doing ( http://tomee.apache.org/ng/admin/configuration/resources.html#_activemqresourceadapter ) > do you have the java source where the default jmsresourceadapter is > created? > > It is in AutoConfig as any automatically created resource. it just get the matching resource type from META-INF/org.apache.openejb/service-jar.xml and creates it > 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. >
