This content has been marked as final.
Show 4 replies
-
1. Re: Sending to queue from non-EJB class
starksm64 Nov 10, 2004 10:17 PM (in response to morgan)A POJO does not have a java:comp/env JNDI context. This is an indirection context available to J2EE components that requires configuration via the deployment descriptor. You have to use the global binding of the QueueConnectionFactory which is just "ConnectionFactory" by default.
-
2. Re: Sending to queue from non-EJB class
morgan Nov 11, 2004 11:57 AM (in response to morgan)Thanks Scott for the answer (and the explanation).
Paul -
3. Re: Sending to queue from non-EJB class
genman Nov 11, 2004 8:57 PM (in response to morgan)
If you're using the queue in the context of a web app, you can bind the connection factory into the java:comp/env context if you like. -
4. Re: Sending to queue from non-EJB class
morgan Nov 12, 2004 6:50 PM (in response to morgan)Yes, the queue is being used in the context of a web app. Is there an advantage to binding the connection factory into the "java:comp/env" context? .... and, regardless of the answer to the previous question, where might I find info on how to do that?
Paul