File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes Entity and session beans orgnization Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Entity and session beans orgnization" Watch "Entity and session beans orgnization" New topic
Author

Entity and session beans orgnization

Shyam kumar
Ranch Hand

Joined: May 21, 2006
Posts: 146
Greetings Ranchers,

In a J2EE application should we have the session beans and entity beans within the same ejbmodule or should we have a different ejb project for entity beans and different one for session beans? In my project session beans and entity beans are orgnized in different ejb modules. What is the general practice? I'm using WSAD 5.0.

Thanks in advance,

Naveen
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Up to you really. Normally entity bean are not needed ouside the scope of a particular EJB application so they tend to get bundled with that application.

Personally, I wouldn't use Entity Beans at all.


I'm using WSAD 5.0.


That's a fairly old application server. Any reason why you don't use a more up to date one?
[ March 19, 2007: Message edited by: Paul Sturrock ]

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Shyam kumar
Ranch Hand

Joined: May 21, 2006
Posts: 146
Hi Paul, I'm sorry but I didn't get you... you mean to say that we DON'T NEED TO have a different ejb project for entity beans and different one for session beans?
One more thing... you said "Personally, I wouldn't use Entity Beans at all." can you please elaborate?

Thanks in advance,
Naveen
 
Don't get me started about those stupid light bulbs.
 
subject: Entity and session beans orgnization