You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by mauro2java2011 <ma...@gmail.com> on 2016/06/08 14:25:50 UTC
jms configuration default jms resource adaptor ActiveMQ into tomee
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.
Re: jms configuration default jms resource adaptor ActiveMQ into tomee
Posted by Romain Manni-Bucau <rm...@gmail.com>.
localhost, check this service provider:
https://github.com/apache/tomee/blob/master/container/openejb-core/src/main/resources/META-INF/org.apache.openejb/service-jar.xml#L659
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 18:35 GMT+02:00 mauro2java2011 <ma...@gmail.com>:
> escuse me , but when i start tomee or when i use jms , the default
> configuration generated automatically from tomee without put any
> configuration into tomee.xml , the value of
> BrokerXmlConfig it is:
>
>
> BrokerXmlConfig = broker:(tcp://someHostName:61616)
> or
> BrokerXmlConfig = broker:(tcp://localhost:61616)
> ??
>
>
>
>
>
> --
> View this message in context:
> http://tomee-openejb.979440.n4.nabble.com/jms-configuration-default-jms-resource-adaptor-ActiveMQ-into-tomee-tp4678801p4678804.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
>
Re: jms configuration default jms resource adaptor ActiveMQ into
tomee
Posted by mauro2java2011 <ma...@gmail.com>.
escuse me , but when i start tomee or when i use jms , the default
configuration generated automatically from tomee without put any
configuration into tomee.xml , the value of
BrokerXmlConfig it is:
BrokerXmlConfig = broker:(tcp://someHostName:61616)
or
BrokerXmlConfig = broker:(tcp://localhost:61616)
??
--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/jms-configuration-default-jms-resource-adaptor-ActiveMQ-into-tomee-tp4678801p4678804.html
Sent from the TomEE Users mailing list archive at Nabble.com.
Re: jms configuration default jms resource adaptor ActiveMQ into tomee
Posted by Romain Manni-Bucau <rm...@gmail.com>.
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 <ma...@gmail.com>:
> 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.
>