What you want to do is provide your own orion-ejb-jar.xml. place it in
your XXX-ejb.jar under orion/orion-ejb-jar.xml
It will get copied at deployment time. Orion will fill-in all that is
missing but will start with your own copy. You can
then specify tables and attributes for your CMP mappings.
Today, Sergei Batiuk ([EMAIL PROTECTED]) wrote:
Is there any way to customize deployment of CMP bean - to indicate the table
name in the database to which the entity bean should map its persistence (in
case the name of the table is different from the bean name) or the data
source to connect
You can put fragments of orion-ejb-jar.xml in your deployment package.
It should go in a directory called "orion" sibling to META-INF. Check
the list archives for more details.
FYI, you can do the same thing with orion-application.xml, but it goes
in the ear's META-INF directory. Very useful.
Once the application-deployment directory is created update the
orion-ejb-jar.xml and change the Table tag.
entity-deployment name="BeanName" location="BeanName"
wrapper="BeanNameHome_EntityHomeWrapper2" table="New-Table-Name-Here"
data-source="jdbc/yourDataSource"
Later...
Greg
-Original