Currently, I have a session EJB that sends messages to a queue (and this works
fine). Now I'd like to be able to send messages to that queue from a plain old
java class, say "Foo" (which is a part of my web app). Naturally, it's not
going as planned. The following
InitialContext context = new InitialContext();
| QueueConnectionFactory factory = null;
| try {
| factory = (QueueConnectionFactory) (context.lookup(
"java:comp/env/jms/QueueFactory" ));
| }
| catch( NamingException exception ) {
| System.err.println(exception);
| }
works fine in the EJB but when I transplant it to "Foo" I get the error message:
anonymous wrote : javax.naming.NameNotFoundException: jms not bound
I've been away from Java/J2EE for almost 2 years, and it's taking me a little
while to get back into the swing of things, so any thoughts on how to fix my
problem or pointers to the appropriate documentation would be greatly
appreciated.
Thanks,
Paul
p.s., this is with JBoss 3.2.3
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3854708#3854708
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3854708
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user