communications between 2 beans on different containers
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Sherine_Khoury
Posted On:   Thursday, April 18, 2002 03:42 AM

I'm trying to do a communication between 2 beans and i'm using jbuilder 5. We are using the following commands: String url1="iiop://"+destination+":1050/"; Hashtable env = new Hashtable(); env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.cosnaming."+"CNCtxFactory"); env.put(Context.PROVIDER_URL,url1); Context initial = new InitialContext(env); Object objref = initial.lookup(MyListen"); I have the following error: javax.naming.configurationException : COS Name Service not registered with ORB under the name 'NameService' . Root Exception is org.omg.CORBA.O   More>>

I'm trying to do a communication between 2 beans and i'm using jbuilder 5.



We are using the following commands:

String url1="iiop://"+destination+":1050/";

Hashtable env = new Hashtable();

env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.cosnaming."+"CNCtxFactory");

env.put(Context.PROVIDER_URL,url1);

Context initial = new InitialContext(env);

Object objref = initial.lookup(MyListen");


I have the following error:


javax.naming.configurationException : COS Name Service not registered with ORB under the name 'NameService' .

Root Exception is org.omg.CORBA.ORBPackage.InvalidName


What am I doing wrong, or what is missing?

   <<Less
About | Sitemap | Contact