This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes J2EE1.3 / JNDI .... and jms Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "J2EE1.3 / JNDI .... and jms" Watch "J2EE1.3 / JNDI .... and jms" New topic
Author

J2EE1.3 / JNDI .... and jms

benoit rolland
Greenhorn

Joined: May 31, 2001
Posts: 2
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();
env.put(Context.SECURITY_PRINCIPAL,"guest");
env.put(Context.SECURITY_CREDENTIALS,"guest123");
env.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.enterprise.naming.SerialInitContextFactory");
env.put(Context.PROVIDER_URL,"iiop://172.20.1.208:1050/");

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

Could anyone help ?
 
Consider Paul's rocket mass heater.
 
subject: J2EE1.3 / JNDI .... and jms
 
Similar Threads
JMSAdmin
JNDI Lookup running on another Machine
ClassCastException with JMS.
Run JNDI example problem
Should I install J2EE on Client side?