M
Massimiliano
Hello,
i'm a newbie j2ee programmer and so i need an help about some pratical
problems.....please HELP ME!!
I'm testing an ejb application like this:
-server A with jsp & session bean that with a method hello() call a method
HaveNiceDay() in an entity bean on server B
i writed on the method hello this code:
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY,
"weblogic.jndi.WLInitialContextFactory");
env.put(Context.PROVIDER_URL, "t3://192.168.0.74:7001");
env.put(Context.SECURITY_PRINCIPAL, "system@pippo");
env.put(Context.SECURITY_CREDENTIALS, "inailweb");
Context ctx = new InitialContext(env);
Object obj = ctx.lookup("BackSession");
BackHome home = (BackHome) javax.rmi.PortableRemoteObject.narrow(obj,
BackHome.class);
Back back = home.create();
rit=back.HaveNiceDay();
I use weblogic 7 and i need to know:
i create a jar for server A with(session bean) and a jar for server B (with
entity),but i don't know if i need to place the second jar in the server A?
Because i think that the server A need only the home & remote interface of
entity bean on his jar...true??
Can you help me with pratical code or links....please!!!!!!!
Massi
i'm a newbie j2ee programmer and so i need an help about some pratical
problems.....please HELP ME!!
I'm testing an ejb application like this:
-server A with jsp & session bean that with a method hello() call a method
HaveNiceDay() in an entity bean on server B
i writed on the method hello this code:
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY,
"weblogic.jndi.WLInitialContextFactory");
env.put(Context.PROVIDER_URL, "t3://192.168.0.74:7001");
env.put(Context.SECURITY_PRINCIPAL, "system@pippo");
env.put(Context.SECURITY_CREDENTIALS, "inailweb");
Context ctx = new InitialContext(env);
Object obj = ctx.lookup("BackSession");
BackHome home = (BackHome) javax.rmi.PortableRemoteObject.narrow(obj,
BackHome.class);
Back back = home.create();
rit=back.HaveNiceDay();
I use weblogic 7 and i need to know:
i create a jar for server A with(session bean) and a jar for server B (with
entity),but i don't know if i need to place the second jar in the server A?
Because i think that the server A need only the home & remote interface of
entity bean on his jar...true??
Can you help me with pratical code or links....please!!!!!!!
Massi