facebook

JEE 5 RCP Client

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #276783 Reply

    nat101
    Member

    Using MyEclipse (6.0/3.31), How do I code/deploy an RCP app, that needs to talk to an ejb3 bean, using @EJB injection?

    For example with Glassfish, in order to do so, you need to deploy your app as an appclient and then use Glassfish’s Appclient tool to launch your client.

    Please advise how to accomplish this (even a bit manually) with ME 6 / Europa 3.31.
    Thanks
    nat

    #276806 Reply

    Riyad Kalla
    Member

    Moving to OT > Soft Dev

    Nat, you cannot do this. The @EJB annotation is used for application-server managed resources and will provide injection. A stand-alone EJB Client is not managed inside the app server, and therefore cannot be helped by the EJB annotation.

    If you are writing a stand-alone RCP client that uses an EJB, you will need to link the app server JAR files to the client program OR configure the JNDI connection manually before requesting the EJB out of the app server’s JNDI context.

    Luckily the Glassfish EJB FAQ covers all this:
    https://glassfish.dev.java.net/javaee5/ejb/EJB_FAQ.html#StandaloneRemoteEJB

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: JEE 5 RCP Client

You must be logged in to post in the forum log in