Hi ,
My webserver is java webserver 2.0 and application server is weblogic 5.1 . web server and weblogic server resides in two different machine . What JNDI setup is required to lookup a home interface from a servlet in JWS 2.0
thanks in advance
Ashim Chakraborty
-
Setting up JNDI tree (6 messages)
- Posted by: Ashim Chakraborty
- Posted on: March 27 2001 05:38 EST
Threaded Messages (6)
- Setting up JNDI tree by kiran killedar on March 27 2001 06:17 EST
- Setting up JNDI tree by Ashim Chakraborty on March 27 2001 06:57 EST
-
Setting up JNDI tree by Monica Pradhan on March 27 2001 04:52 EST
-
Setting up JNDI tree by Ashim Chakraborty on March 28 2001 12:08 EST
-
Setting up JNDI tree by sahil gupta on March 28 2001 03:25 EST
- Setting up JNDI tree by Koshy Cherian on March 29 2001 07:08 EST
-
Setting up JNDI tree by sahil gupta on March 28 2001 03:25 EST
-
Setting up JNDI tree by Ashim Chakraborty on March 28 2001 12:08 EST
-
Setting up JNDI tree by Monica Pradhan on March 27 2001 04:52 EST
- Setting up JNDI tree by Ashim Chakraborty on March 27 2001 06:57 EST
-
Setting up JNDI tree[ Go to top ]
- Posted by: kiran killedar
- Posted on: March 27 2001 06:17 EST
- in response to Ashim Chakraborty
Properties p=new Properties();
p.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.TengahInitialContextFactory");
p.put(Context.PROVIDER_URL,"t3://localhost:7001");
Context ctx = new InitialContext(p);
AccountHome1 home =
(AccountHome1) ctx.lookup("AccountHome");
Instead of localhost use the machines ip address or name of that machine from ur servlet which is residing in ur javawebserver.
bye
-kiran -
Setting up JNDI tree[ Go to top ]
- Posted by: Ashim Chakraborty
- Posted on: March 27 2001 06:57 EST
- in response to kiran killedar
Thanks kiran ,
but it is not working . what i have tried is
import javax.naming.*;
import java.util.*;
public class testJndi
{
public static void main( String args[]) throws Exception
{
Properties p=new Properties();
p.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.TengahInitialContextFactory");
p.put(Context.PROVIDER_URL,"t3://80.0.0.12:7001");
Context ctx = new InitialContext(p);
System.out.println(ctx);
}
}
giving exception cann't instantiate weblogic.jndi.TengahInitialContextFactory nested exception is java.lang.ClassNotFound exception
-
Setting up JNDI tree[ Go to top ]
- Posted by: Monica Pradhan
- Posted on: March 27 2001 16:52 EST
- in response to Ashim Chakraborty
Try this instead of the Tengah class name
"weblogic.jndi.WLInitialContextFactory" -
Setting up JNDI tree[ Go to top ]
- Posted by: Ashim Chakraborty
- Posted on: March 28 2001 00:08 EST
- in response to Monica Pradhan
Thanks Monica ,
but the same problem is still there
Pls help me out -
Setting up JNDI tree[ Go to top ]
- Posted by: sahil gupta
- Posted on: March 28 2001 15:25 EST
- in response to Ashim Chakraborty
Could u post the error that it throws?
Sahil -
Setting up JNDI tree[ Go to top ]
- Posted by: Koshy Cherian
- Posted on: March 29 2001 07:08 EST
- in response to sahil gupta
put the Weblogic.InitialContextFactory in our classpath. It will be in weblogic classes. Take it and put it in the machine where your webserver resides.. in classpath.
regards,
Koshy