• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Realistic Utility of Entity Beans

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
To Think differntly why dont you use a View?
Might help .
Regards
Remesh Govind
 
Author
Posts: 350
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have you tried EJB CMP CMR 2.0?
 
Ranch Hand
Posts: 782
Python Chrome Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Rick,
I know what CMP stands for. But does CMR mean actually ?
Thanks
Pho
 
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 350
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic