This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Question about CMP and abstract schema Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Question about CMP and abstract schema" Watch "Question about CMP and abstract schema" New topic
Author

Question about CMP and abstract schema

Surasak Leenapongpanit
Ranch Hand

Joined: May 10, 2002
Posts: 341
Hi all,
I'm new in developing CMP entity EJBs.
My basic question is how can I associate an abstract schema to a specific table in the DB?
I know by EJB QL queries I refer to abstract schema in the FROM clause, but how does container know which phisical table I refer to?
Thank you.
Sany Bel
Ranch Hand

Joined: Mar 12, 2004
Posts: 51
You do the bean name to table mapping in container provided configuration files. For eg., if you are using weblogic, you would do that in "weblogic-cmp-rdbms-jar.xml".


--------------<br />Sany Bel<br />SCJP 1.4, SCBCD
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Question about CMP and abstract schema
 
Similar Threads
two processes in one ejb
Trouble understanding abstract-schema-name
EJB-QL help
Deploying on JBoss a CMP bean that uses a composite PK in EJB2.1
Entity Bean Component Reusability