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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Urgent - creating the right InitialContext..

Status
Not open for further replies.

patnim17

Programmer
Jun 19, 2005
111
0
0
US
Hi,
I need to create the initialcontext to connect to Each Instance of the Weblogic 8.1 Cluster. There are 2 machines in the cluster.

Is this the right way to connect to ONE of them if I know the IP address:

hashMap.put(Context.INITIAL_CONTEXT_FACTORY, JNDI_FACTORY);
hashMap.put(Context.PROVIDER_URL, "t3://15.21.41.11:19015");

InitialContext ic= new InitialContext(hashMap);

thanks
pat
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top