I have 2 servers instances of Jboss 5, each of which is deployed with two EAR\'s. Say Client.Ear and Server.Ear. Server Ear expose some ejb\'s. I want to inject this to ClientE
I know this little too late . Including this for further reference
You can use the portable look up String format EJBs use RMI over IIOP and has standard mapping EJB architecture to CORBA So you can lookup by server host and portnumber by
@EJB(lookup = "corbaname:iiop:example.com:3701#java:global/mycrud/mycrud-dss-ejb/InformeBean!com.myorg.ejb.InformeRemote")
References: https://docs.oracle.com/javase/8/docs/technotes/guides/idl/corba.html https://docs.oracle.com/javase/8/docs/technotes/guides/idl/INStutorial.html