RE: Customizing CMP deployment
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. HTH Daniel -Message d'origine- De : Sergei Batiuk [mailto:[EMAIL PROTECTED]] Envoye : 12 mars, 2001 10:51 A : Orion-Interest Objet : Customizing CMP deployment 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 to. As far as I know orion-ejb-jar.xml is responsible for these properties, but it has no effect ibefore/i the deployment. Is there an orion-specific (or some other) way to deliver such information to the container?
Re: Customizing CMP deployment
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 to. As far as I know orion-ejb-jar.xml is responsible for these properties, but it has no effect ibefore/i the deployment. Is there an orion-specific (or some other) way to deliver such information to the container? You can create a barebones instance of the orion-ejb-jar.xml in your ejb distribution (there's a specific directory you have to put it in, maybe META-INF/orion?), include in it only the specific deployment information you want to override, and it will be picked up by orion and used as the basis for the final deployment-time orion-ejb-jar.xml. It's a nice trick. I believe it's documented on the orion doc site, within the description of the orion-ejb-jar.xml file. Right at the top. Gary
RE: Customizing CMP deployment
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. Good luck, Jeff -Original Message- From: Sergei Batiuk [mailto:[EMAIL PROTECTED]] Sent: Monday, March 12, 2001 7:51 AM To: Orion-Interest Subject: Customizing CMP deployment 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 to. As far as I know orion-ejb-jar.xml is responsible for these properties, but it has no effect ibefore/i the deployment. Is there an orion-specific (or some other) way to deliver such information to the container?
RE: Customizing CMP deployment
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 Message- From: Sergei Batiuk [mailto:[EMAIL PROTECTED]] Sent: Monday, March 12, 2001 8:51 AM To: Orion-Interest Subject: Customizing CMP deployment 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 to. As far as I know orion-ejb-jar.xml is responsible for these properties, but it has no effect ibefore/i the deployment. Is there an orion-specific (or some other) way to deliver such information to the container?