Hello, how do I call an EJB in a remote J2EE server from an EJB.
I have tried the following (the remote J2EE is at 192.168.1.1):
Context context = new InitialContext();
context.addToEnvironment("org.omg.CORBA.ORBInitialHost", "192.168.1.1");
context.addToEnvironment("java.naming.provider.url", "iiop://192.168.1.1:1050");
java.lang.Object objref =
context.lookup("java:comp/env/ejb/CNTestEntity");
testEntityHome = (TestEntityHomeEJB)PortableRemoteObject.narrow(objref,
TestEntityHomeEJB.class);
TestEntity testEntity = testEntityHome.create(33, "Beskrivning");
but the TestEntity object is still created in my local J2EE server...
I am using suns reference implementation of the J2EE.
Any suggestions?
Regards,
Lars
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".