Results 1 to 1 of 1
- 03-09-2009, 11:52 AM #1Member
- Join Date
- Mar 2009
- NAMUR, Belgium
- Rep Power
EJB3 Entity Bean, POJO, without annotations
I develop an application where the EJB3 is used.
According to some advises got from the net, POJO classes are used as entity beans and they contain some EJB3 annotations like @Entity, @Id, @GeneratedValue, @ManyToMany etc. The application server is JBOSS.
To manage and communicate with the server side, a web GUI was created.
It communicates with server by means of EJB3 interface (@Remote).
At the moment I'm introducing a web interface (webservice) for one of a server side interfaces.
Doing this I realized, that the output parameter (an entity bean (POJO)) hardly depends on all the packages that support all the annotations stuff that is used in it.
Therefore, the web service client must be aware of them (when it uses the POJO declaration for the unmarchalling).
My question is:
How is it possible to stay in the frame of the EJB3 model (beans, persisting) and get rid of annotations in POJO?
What is (if any) the standard practice for such a case? (POJO Inheritance, XML descriptions, etc...) ?
- By parimal in forum Enterprise JavaBeans (EJB)Replies: 1Last Post: 08-28-2008, 02:34 PM
- By RobertoWIN_MX in forum Enterprise JavaBeans (EJB)Replies: 0Last Post: 05-01-2008, 06:17 AM
- By narayanrec in forum Enterprise JavaBeans (EJB)Replies: 4Last Post: 01-06-2008, 03:40 AM
- By Java Tip in forum Java TipReplies: 0Last Post: 12-28-2007, 11:41 AM