Skip to Content
0
Former Member
Dec 04, 2006 at 08:53 AM

Remote EJB Call from J2EE Application

149 Views

Hi,

I have been trying to call a remote ejb from the web module project in my j2ee application. I have added the client jar of the bean to my project. and trying to get the ejb like the following.

Context ctx = new InitialContext();
ejbLocalHome orderHome = (ejbLocalHome) ctx.lookup("corbaname:iiop:xx.xx.xx.xx:xxxx#xxx/xxx/xxxx/xxx/xxxxxHome");
return orderHome.create();

When i deploy my applicatoin to the portal, and call it from the browser, i get the following exception.

[Ljava.lang.StackTraceElement;@1855b95
org.omg.CORBA.BAD_PARAM: string_to_object() failed : Could not connect to host and port xxxxxx:9100, useSSL=false.  vmcid: 0x0  minor code: 10  completed: No
Invalid URL or IOR: corbaloc:iiop:10.20.10.192:2809/NameService

How do you call a remote ejb? What is wrong above?

Thank you.