tags:

views:

51

answers:

1

Hi!

I'm new to ejb. I've created the session bean in one computer. And i want to access that session bean from the another system. How to do this?

Thanks in advance :-)

A: 

Split the EJB into implementation and client jars, deploy the EAR, create a vendor-specific binding for the EJB, copy the client jar (with the newly created stubs) to the other system, do a JNDI lookup of the bean, and use PortableRemoteObject.narrow.

bkail