-
1. Re: OSGi Web Service needing to invoke EJB hosted in a separate JVM ?
davsclaus Sep 25, 2011 7:04 AM (in response to ranthyreddy)You could possible encapsulate the EJB details inside a Java bean, and then from Fuse ESB invoke the java bean.
Then you could develop this java bean and unit test it outside the Fuse ESB. Then when its working, you can then deploy the bean and the needed WebLogic EJB client JARs.
-
2. Re: OSGi Web Service needing to invoke EJB hosted in a separate JVM ?
davsclaus Sep 25, 2011 7:06 AM (in response to davsclaus)There is also a Camel EJB component
However the trick is when using EJB is the client side need vendor specific JARs, as well setting up a InitialContext to the remote EJB server in a vendor specific way.
Often using a platform/language neutral protocol can be easier. For example HTTP/REST with XML/JSon, or for binary protocols Google protobuf or something else, even plain Java serialization.
-
3. Re: OSGi Web Service needing to invoke EJB hosted in a separate JVM ?
ranthyreddy Sep 26, 2011 10:00 AM (in response to davsclaus)Hi,
I already have a Web Service (OSGi bundle) and from within want to invoke this EJB service hosted in a remote JVM. You mean to say, write another bean that invokes this EJB client jar and then that bean in turn is instantiated in the Web Service.
thanks,
RR