Application client using @EJB annotation and Maven on Glassfish

后端 未结 2 509
天涯浪人
天涯浪人 2021-01-14 19:21

There is an example in NetBeans site how to create Application Client using simple projects (without Maven). There are 4 projects needed (EJB, EAR, Lib, Program). This tutor

2条回答
  •  太阳男子
    2021-01-14 20:05

    There is a useful EJB FAQ which mention about how to use the @EJB to access the remote EJB by using the ejb-ref together with sun-web.xml or now it is a glassfish-web.xml as the following link: -

    What if I have multiple instances of the Appserver running and I want to access a Remote EJB component between them?

    If you would like to compare between ejb-ref and ejb-local-ref, you may see further information at What is the relationship between @EJB and ejb-ref/ejb-local-ref?

    I hope this may help.

提交回复
热议问题