-
1. Re: mdb forwarding to another queue (where to keep connectio
adrian.brock Dec 9, 2003 10:49 AM (in response to rjst)java:/JmsXA
Regards,
Adrian -
2. Re: mdb forwarding to another queue (where to keep connectio
rjst Jan 9, 2004 9:46 AM (in response to rjst)java:/JmsXA works fine while the MDB and the destination queue are on the same server.
When I move the destination queue to another server, it doesn't work.
Can I get a local connection pool to a remote queue ? -
3. Re: mdb forwarding to another queue (where to keep connectio
genman Jan 9, 2004 12:46 PM (in response to rjst)
If you're talking about where to store a single remote JMS connection, I would wrap in a MBean and add an attribute that returns it. This way, you can manually stop/start it, check on its status, etc.
In you MDB, then, it is only a matter of getting the MBeanServer and calling server.getAttribute(ObjectName, "Connection"). -
4. Re: mdb forwarding to another queue (where to keep connectio
rjst Jan 13, 2004 7:35 AM (in response to rjst)What I want to do is forward a message to a queue on a different server, but I want to have a managed connection pool.
I made a copy of jms-ds.xml, reconfigured the IL to one other that the in vm, added a ProviderUrl argument to point to the other server.
Then in my mdb, I added res-refs to point to my connection factory. when I lookup the queue I'm sending to, I use jnp://remoteserver:1099.
Even doing this, messages still go to the local queue. -
5. Re: mdb forwarding to another queue (where to keep connectio
adrian.brock Jan 13, 2004 9:59 AM (in response to rjst)I've added your question to the FAQ.
Regards,
Adrian -
6. Re: mdb forwarding to another queue (where to keep connectio
rjst Jan 13, 2004 12:08 PM (in response to rjst)I think there is an error in your FAQ :
you say JMSProviderAdapterJNDI, but only JmsProviderAdapterJNDI works.
jboss throws an exception saying it hasn't a method for JMS..., I checked CVS and it's Jms
thanks
Ricardo -
7. Re: mdb forwarding to another queue (where to keep connectio
rjst Jan 13, 2004 1:59 PM (in response to rjst)Hi, it's trying to create the connection now, but I fails saying it doens't have password credentials.
I tried with guest/guest inside the MDB create, where I create the connection, but it still fails.
I don't really have security requirements at this point, can I just turn off the security for my connection pool ?
thanks
Ricardo -
8. Re: mdb forwarding to another queue (where to keep connectio
rjst Jan 13, 2004 2:20 PM (in response to rjst)Regarding server disconnects/reconnects, are there any parameters that can help me survive this ?
this would be a good one for the FAQ :))
thanks
Ricardo -
9. Re: mdb forwarding to another queue (where to keep connectio
adrian.brock Jan 13, 2004 8:24 PM (in response to rjst)WRT JMS/Jms thanks for the catch, you are correct.
For the security, you can configure the user/password on the JmsXARealm
in conf/login-config.xml (you might consider creating an alternate configuration)
e.g. WhateverJMSXARealm
Your last point is a bug. The jms resource adapter should be installing
an onException listener on the real connection that removes the connection from the
pool when it fails.
Regards,
Adrian -
10. Re: mdb forwarding to another queue (where to keep connectio
rjst Jan 14, 2004 5:30 PM (in response to rjst)do you have any idea when it will be fixed ?
till then, how could I get around it ?
thanks
ricardo -
11. Re: mdb forwarding to another queue (where to keep connectio
adrian.brock Jan 14, 2004 7:21 PM (in response to rjst)I have added processing for the exception listener.
The patches will appear at these two locations in the next 24 hours or so:
http://cvs.sourceforge.net/viewcvs.py/jboss/jbosscx/src/main/org/jboss/resource/adapter/jms/JmsManagedConnection.java
http://cvs.sourceforge.net/viewcvs.py/jboss/jbosscx/src/main/org/jboss/resource/connectionmanager/InternalManagedConnectionPool.java
A also updated the FAQ to explain the security configuration.
Regards,
Adrian