• Post Reply Bookmark Topic Watch Topic
  • New Topic

J2EE1.3 / JNDI .... and jms  RSS feed

benoit rolland
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tried sun's jms example provided with the J2ee1.3 beta release
(the jms api and a jms server are included in j2ee1.3)
SimpleQueueSender.java and SimpleQueueReceiver.java http://java.sun.com/products/jms/tutorial/html/client.fm.html
It worked perfectly locally, but i didn't manadged to have the SimpleQueueSender working distantly.
This is what i get:
E:\benoit\jmsClient>java -Djms.properties=.\jndi.properties SimpleRemoteQueueSender MyQueue 3
Queue name is MyQueue
JNDI lookup failed: javax.naming.CommunicationException: Can't find SerialContextProvider

This the code i added to try to connect to my jndi server:
Properties env = new Properties();

* Create a JNDI InitialContext object if none exists yet.
try {
jndiContext = new InitialContext(env);

Could anyone help ?
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!