Remote lookup using @ejb annotation

前端 未结 3 2019
-上瘾入骨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条回答
  •  猫巷女王i
    2021-02-09 18:37

    I found a forum post that answers your question: https://community.jboss.org/thread/228789

    In it he refers to https://docs.jboss.org/author/display/AS71/EJB+invocations+from+a+remote+server+instance

    And to accomplish the jndi lookup with the @EJB annotaion he uses

    @EJB(lookup = "ejb:earname/modulename/BeanClass!fully.qualified.RemoteInterface")
    private RemoteInterface bean;
    

提交回复
热议问题