benoit rolland

Greenhorn
+ Follow
since May 31, 2001
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by benoit rolland

I encountered a similar problem:
Could any one help ?
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 ?

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 ?