Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Connecting EJB from client program using WAS

Status
Not open for further replies.

GooDog

Programmer
Feb 11, 2002
34
IN
Hi,
I have deployed a bean in the websphere.But i am unable to connect it from the client.So far i have used weblogic.I heard that we have to change the following code:

Hashtable ht = new Hashtable();
ht.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi. WLInitialContextFactory");
ht.put(Context.PROVIDER_URL,"t3://localhost:7001");
Context ct = new InitialContext(ht);
Please help me out to solve the problem by sending the code

Thanks in advance.
 
Hi
You are using Weblogic INITIAL_CONTEXT_FACTORY and PROVIDER_URL.That will not work with WebSphere
The Folllowing are Initial_con.. and Pro_URL.. for WAS

(Context.PROVIDER_URL,"iiop://localhost:900")
(Context.INITIAL_CONTEXT_FACTORY,
"com.ibm.ejs.ns.jndi.CNInitialContextFactory")

I u have any doubt let me know.
Thanks And Regards

Kishore Kumar K
Covansys India
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top