facebook

EJB3 creation wizard suggestion

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #274456 Reply

    Francesc Rosés
    Participant

    Hello,
    I’m a newcomer in EJB3 and I’m testing MyEclipse 6.0 GA new features and I am playing with the EJB 3.x Tutorial. I followed the steps in the tutorial and I observed when I create the session bean “MyBean”, the two interfaces “MyBeanLocal” and “MyBeanRemote” are created but I must specify by hand in “MyBeanLocal” and “MyBeanRemote” code sources “extends IMyBean”.

    May be interesting the “New EJB3 Session Bean” wizard includes an entry field allowing specify the Interface to extend (i.e. IMyBean)?

    Thanks for your excellent work!

    Francesc Rosés

    #274486

    Riyad Kalla
    Member

    Francesc,
    There might be some confusion here. The Facades (DAOs really) are marked with the state annotation, remote and local. Your code should access the Facade, and then use the Facade to find the specific instance of the entity you want. So the entity itself is just a DTO, it doesn’t need to be annotated, the facade does.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: EJB3 creation wizard suggestion

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