• 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
  • Ron McLeod
  • Junilu Lacar
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Piet Souris
  • Carey Brown
  • Stephan van Hulst
Bartenders:
  • Frits Walraven
  • fred rosenberger
  • salvin francis

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 ...
reply
    Bookmark Topic Watch Topic
  • New Topic