I am having difficulty re-establishing connection in the onException callback using JBoss-3.0.4.
All the resources I have looked at imply that I can simply use the same queueConnectionFactory from JNP and obtain a new QueueConnection, Queue(?), Session, Producer.
However if I bounce JBoss I get a null queue, even though it is bound. No JNDI exception is raised. Note I am fetching the queue again which may be a redundant call.
I am assuming the problem lies with my initialContext as we are using a ServiceLocator which still has a reference to the old initialContext.
Any help is much appreciated.
It sounds like your RMI stub is invalid.
You will need to reget the initial context.
The jboss initial context is lazyly loaded
which makes this hard to spot, since the connection
is not actually tried until you do the lookup().