Hi - I could not find the answer to this on any of the FAQs etc. I am trying to run
the sample JMS client which tries to access "queue/testQueue" on the server. This
works fine with HSQL but not with MySQL (4.0.13).
I have the "mysql-ds.xml" file in server/default/deploy and I have copied the sample
"mysql-jdbc2-service.xml" file to deploy/jms. The datasource name has been changed
too. (the server created the JMS_MESSAGES/JMS_TRANSACTIONS table in the database). I
have made sure that the hs* files are removed from the deploy directory.
Unfortunately, running the client throws this exception -
javax.naming.NameNotFoundException: queue not bound. The server reports that this
particular queue has been configured. The client has this:
==================================
Properties properties = new Properties();
properties.put(Context.INITIAL_CONTEXT_FACTORY,
"org.jnp.interfaces.NamingContextFactory");
properties.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces");
properties.put(Context.PROVIDER_URL, "localhost");
InitialContext ctx = new InitialContext(properties);
Queue queue = (Queue) ctx.lookup("queue/testQueue");
====================================
What am I missing here ?
Thanks in advance
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3851467#3851467
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3851467
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user