2015-09-07 19:51 GMT-07:00 hkgot <[email protected]>:

> "if I read it right, activemq is using name + connection to identify a
> queue
> so referencing the same name and the right connection will do the job"
>
> What is the right connection from EAR client side? Your sample code takes
> care of remote client, what about EAR client code?
>
>
All server side code can reuse out of the box server resources, for
destinations (queues, topic) nothing different from using normal server
queues/topics. ConnectionFactory can be defined using a custom resource
(with class-name), I guess for remote connections it can be the best
solution but if parts of your ear are communicating together using local
transport would make smooth to just reuse the same server resources.


> If I call EAR client as "Server" and remote client as "Client", what is the
> simple way to reference same connection factory and queues both from Server
> and Client?
>
>
>
>
>
> --
> View this message in context:
> http://tomee-openejb.979440.n4.nabble.com/How-to-reference-connection-factory-and-queues-from-code-tp4675980p4676156.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
>

Reply via email to