File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Question about CMP and abstract schema" Watch "Question about CMP and abstract schema" New topic

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
I agree. Here's the link:
subject: Question about CMP and abstract schema
Similar Threads
Deploying on JBoss a CMP bean that uses a composite PK in EJB2.1
two processes in one ejb
EJB-QL help
Trouble understanding abstract-schema-name
Entity Bean Component Reusability