• Post Reply Bookmark Topic Watch Topic
  • New Topic

Realistic Utility of Entity Beans

 
anand singhITBHU
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have been using Entity beans for quite sometime now. However, I have always found that Entity beans do not deliver the goods when it comes to practical scenarios..... where we have a lot of complex table joins to take care of. These scenarios are not isolated. Instead, one to one mapping of a bean to a table is generally an isolated case.
What options do we have other than using Session Beans with Helper classes performing the complex join operation?
 
Remesh Govind
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
To Think differntly why dont you use a View?
Might help .
Regards
Remesh Govind
 
Rick Hightower
Author
Ranch Hand
Posts: 350
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you tried EJB CMP CMR 2.0?
 
Pho Tek
Ranch Hand
Posts: 782
Chrome Python Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rick,
I know what CMP stands for. But does CMR mean actually ?
Thanks
Pho
 
Gayan Balasooriya
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I know what CMP stands for. But does CMR mean actually ?

CMR stands for Container-Managed Relationships in
EJB 2.0
Gayan Balasooriya
Sun Certified Java Programmer
Sun Certified Web Component Developer for J2EE
http://www.gayanb.com
 
Ajith Kallambella
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just my opinion - when it comes to complex table relationships, nothing can beat BMP unless you are willing to wait for another year for vendor support to mature....
 
Rick Hightower
Author
Ranch Hand
Posts: 350
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think you have to wait. Things are pretty mature now. Could they be better? Yes. But it is good enough to start using.
I wrote a EJB CMP 2.0 tutorial with CMR and EJB QL.

The examples work with Resin EE, JBoss and WebLogic. I am sure they could be easily ported to other app servers.
I am not going to lie to you and tell you that it is perfect. But I strongly suggest using it.
The link to the tutorial is in my signature.

If you forget... just go to goole and search for: ejb cmp... it is the first link.
See for yourself....
http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=ejb+cmp
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!