On Dec 5, 2008, at 8:46 AM, Oliver Günther wrote:
Also, if the server should use the same ConnectionFactory as the
remote
client (which is needed, then the client and and a server bean what to
send/receive messages on the same topic/queue) the openejb.xml needs
to be
changed:
Resource
-
Olli
--
View this message in context:
http://www.nabble.com/JMS-ConnectionFactory-tp20610921p20857906.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
I don't think there's an OpenEJB specific way to lookup the connection
factory, but you could deploy a session bean like the MessageClientBean
in the simple-mdb sample
.
-
Olli
--
View this message in context:
http://www.nabble.com/JMS-ConnectionFactory-tp20610921p20717939.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
Create a field like this in your EJB (or Servlet in Tomcat embedded
mode).
@Resource
ConnectionFactory connectionFactory;
IIRC the JNDI name of the connectionFactory is logged during setup,
but I suggest you use injection instead of JNDI as it is way more
portable.
-dain
On Nov 20,
Hi,
if OpenEJB running in embedded and remoteable mode are there any JMS
ConnectionFactory's via JINI requestable and what are the default names.
-
Olli