• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Bear Bibeault
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • salvin francis
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Frits Walraven
Bartenders:
  • Jj Roberts
  • Carey Brown
  • Scott Selikoff

question about CMP?

 
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm using BEA Weblogic8.1.

I have two CMP entity beans and there is a 1 to N relationship between them. I know that when you call home methods of a CMP, it would randomly select an instance in the pool, and act like a Stateless Session Bean.

so, I'm using Home method, which calls ejbSelect method, to get a record set from the CMP entity bean. and EJB-QL is used in ejbSelect method.

my question is that: in the ejbSelect Methods of a CMP, I'd write EJB-QL that use CMR references to include attributes of the related CMP in result set. it worked fine, but I don't know behind the scene how it works in container? will it just generate a join select SQL statement, or will it access an instance of the related CMP?

thank you!!!
 
Ranch Hand
Posts: 143
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The implementation part is not specified in the EJB Spec and hence its upto the vendor. I would think they would generate a join sql query.
 
Ranch Hand
Posts: 264
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
is there a way in WebLogic to see the container generated code?

I know in WebSphere Studio, you can ...
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic