Remote lookup using @ejb annotation

前端 未结 3 1979
-上瘾入骨i
-上瘾入骨i 2021-02-09 18:11

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

3条回答
  •  执念已碎
    2021-02-09 18:37

    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

提交回复
热议问题