Results 1 to 1 of 1
- 03-09-2009, 10:52 AM #1
Member
- Join Date
- Mar 2009
- Location
- NAMUR, Belgium
- Posts
- 1
- Rep Power
- 0
EJB3 Entity Bean, POJO, without annotations
Hello,
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...) ?
Merci.
Similar Threads
-
UREGENT-accessing session bean ok but entity bean
By parimal in forum Enterprise JavaBeans (EJB)Replies: 1Last Post: 08-28-2008, 01:34 PM -
Error deploying Entity Bean
By RobertoWIN_MX in forum Enterprise JavaBeans (EJB)Replies: 0Last Post: 05-01-2008, 05:17 AM -
Can I use annotations in superclass, and .cfg.xml files in subclasses in EJB3
By narayanrec in forum Enterprise JavaBeans (EJB)Replies: 4Last Post: 01-06-2008, 02:40 AM -
Sample Entity Bean
By Java Tip in forum Java TipReplies: 0Last Post: 12-28-2007, 10:41 AM
Bookmarks