-
1. Re: NameNotFoundException: QueueConnectionFactory not bound
diyengar Feb 21, 2003 12:13 PM (in response to noda)are u sure that the follwing is not a typo
QueueConnection connection = actory.createQueueConnection(); -
2. Re: NameNotFoundException: QueueConnectionFactory not bound
diyengar Feb 21, 2003 12:18 PM (in response to noda)> --- Source codes ---
> QueueConnectionFactory factory =
> (QueueConnectionFactory)context.lookup("java:comp/env/
> ms/queue/QueueConnectionFactory");
> QueueConnection connection =
> actory.createQueueConnection();
are you sure that you do not have actory.createQueueConnection instead of factory.createQueueCoonection?
D -
3. Re: NameNotFoundException: QueueConnectionFactory not bound
noda Feb 22, 2003 1:51 AM (in response to noda)Sorry, yes that's mis-spell, "factory." But my source code is fine (otherwise, it must be a compile error).
-
4. Re: NameNotFoundException: QueueConnectionFactory not bound
adrian.brock Feb 22, 2003 4:39 AM (in response to noda)Try comparing yours with this.
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/jboss/jbosstest/src/resources/jmsra/META-INF/
I would think you want to use java:/JmsXA as this uses
an in VM connection with pooling and interacts
with the ejb transaction manager.
"ConnectionFactory" by default is OIL which is
designed for use by a client so it uses
a pair of sockets and the JMS notion of a
transaction.
Regards,
Adrian -
5. Re: NameNotFoundException: QueueConnectionFactory not bound
noda Feb 22, 2003 12:22 PM (in response to noda)Thank you, Adrian,
Unfortunately, I still have a problem. I tried JVM Invocation Layer that has JNDIRef="java:/(XA)ConnectionFactory", but it keeps saying "QueueConnectionFactory not bound." I don't think I have JNDI ref like java:/JmsXA and I think you're talking about JVM Invocation Layer (actually I tried JmsXA, but a same problem). I checked both jmx-console and jbossmq-service.xml, and I'm sure it's java:/(XA)ConnectionFactory on my server.
I'm wondering why it keeps saying "QueueConnectionFactory." None of my ref or JNDI name uses "QueueConnectionFactory." Where does this come from? Is this javax.jms.QueueConnectionFactory?
-tom -
6. Re: NameNotFoundException: QueueConnectionFactory not bound
adrian.brock Feb 22, 2003 2:23 PM (in response to noda)Look at JNDIView for your bean is your
resource-ref appearing for the bean?
It is likely you have it in the incorrect place
in the xml.
Regards,
Adrian -
7. Re: NameNotFoundException: QueueConnectionFactory not bound
noda Feb 22, 2003 5:44 PM (in response to noda)Hi Adrian,
Finally I made it. It turns out that <jndi-name> tag was missing in my session bean which has a res-ref to connection factory (in jboss.xml). I looked into JNDIView and figured it out. You saved my life! Thanks.
-tom