Hi If you have the client API it will work as in any app (spring apps always do that and it will be exactly the same in tomee).
You can even do fun stuff like proxying the jboss calls with an endpoint redirecring the streams or redirecting an ejbd (tomee) rmi call to jboss either using a plain client or extenal jndi provider to inject the remote context config. Not sure it is good compared to having a plain client but very doable. Romain Le mer. 11 juil. 2018 02:16, Gurkan Erdogdu <[email protected]> a écrit : > Hi Joshua > AFAIK, it is not possible to propagate RMI call from TomEE to JBoss because > TomEE uses its own remote protocol (for example, you can not propagate > distributed transactions). But, you may use JBoss client JARS in TomEE to > call your EJBs in JBoss. > Regards. > Gurkan > > On Wed, Jul 11, 2018 at 2:23 AM, Jonathan S. Fisher <[email protected]> > wrote: > > > It's likely possible, but whether or not it's a "good idea" is the better > > question :) It might be best to see about getting a consultant from > > Tomitribe out there to help you. > > > > The process would be something like, use the JBoss InitialContextFactory > > and point it at the remote server. Then, you should be able to use that > to > > perform a lookup. I don't think there will be a way to use @EJB > injection, > > unless you did some magic with CDI and the @Produces annotation. > > > > A better way would be to wrap your legacy EJBs with RESTful services so > > that way you're platform independent. > > > > On Tue, Jul 10, 2018 at 4:29 PM Joshua Sharf <[email protected]> wrote: > > > > > Is there a way to make an RMI call *from* a TomEE server *to* a JBoss > > > EJB? I > > > know we can set up TomEE to host EJBs, but that's not what we want to > do. > > > We want to make the call from TomEE to the remote EJB, > > > > > > We're running TomEE Plume 7.0.4, and EAP7. > > > > > > Thanks for any help you can give us, > > > Joshua Sharf > > > > > > > > > > > > -- > > > Sent from: > > > http://tomee-openejb.979440.n4.nabble.com/TomEE-Users-f979441.html > > > > > > > > > -- > > Jonathan | [email protected] > > Pessimists, see a jar as half empty. Optimists, in contrast, see it as > half > > full. > > Engineers, of course, understand the glass is twice as big as it needs to > > be. > > >
