Skip to Content
0
Former Member
Dec 12, 2007 at 01:43 AM

Local Vs Remote EJB

128 Views

Hi All,

Local Ejb works but Remote EJB Fails to work in lookup.

I am facing Remote EJB problem, I am able to look ejb locally on same server, but remotely it is not working.

here is the sample code!

env.put(Context.PROVIDER_URL, "10.48.121.207:53004"); //p4 port

// env.put("force_remote", "true");

env.put(Context.SECURITY_PRINCIPAL, "Administrator");

env.put(Context.SECURITY_CREDENTIALS, "sapxxx");

InitialContext ctx = new InitialContext(env);

//Object obj = ctx.lookup("RiskAnalysis");

Object obj = ctx.lookup("java:comp/env/ejb/RiskAnalysisBean");

Please advise, what could be the problem, I did all possible things, adding ejb-ref and updating the .xml files with required ref attributes on both EJB and client applications, but still remote lookup is failing!

Please send me sample working ejb and client example for remote lookup, I am working on NW700 with sp12.

Thanks for your information,

Anil