See response inline...
I have a directory called META-INF that contains all 3 xml files.
Hope these help.
Gordon Dickens
Bank One CIG
302.282.1546
[EMAIL PROTECTED]
> -----Original Message-----
> From: A mailing list for Enterprise JavaBeans development
> <[EMAIL PROTECTED]>@BANCONE On Behalf Of Sundari S
> <[EMAIL PROTECTED]>
> Sent: Friday, February 08, 02 2:38 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Deploying Multiple beans from a single JAR
>
>
> Hi Gordon Dickens,
>
> Thanks for your reply.
>
> I still have a subtle clarification in that issue. Do let me know, if you
> can help.
>
> I have a directory called <META-INF> which contains the following files :
> weblogic-ejb-jar.xml and ejb-jar.xml.
>
> In the weblogic-ejb-jar.xml file, an sample content looks thus :
>
> <weblogic-ejb-jar>
> <weblogic-enterprise-bean>
> <ejb-name>Data.ILifeCycleDataHome</ejb-name>
> <caching-descriptor>
> <max-beans-in-free-pool>20</max-beans-in-free-pool>
> <max-beans-in-cache>1000</max-beans-in-cache>
> <idle-timeout-seconds>5</idle-timeout-seconds>
> </caching-descriptor>
> <persistence-descriptor>
> <delay-updates-until-end-of-tx>true</delay-updates-until-end-of-tx>
> <persistence-type>
> <type-identifier>WebLogic_CMP_RDBMS</type-identifier>
> <type-version>5.1.0</type-version>
> <type-storage>META-INF/weblogic-cmp-rdbms-jar.xml</type-storage>
> </persistence-type>
> <db-is-shared>false</db-is-shared>
> <persistence-use>
> <type-identifier>WebLogic_CMP_RDBMS</type-identifier>
> <type-version>5.1.0</type-version>
> </persistence-use>
> </persistence-descriptor>
> <jndi-name>Data.ILifeCycleDataHome</jndi-name>
> </weblogic-enterprise-bean>
>
> <weblogic-enterprise-bean>
> <ejb-name>Data.ILifeCycleServerDataHome</ejb-name>
> <caching-descriptor>
> <max-beans-in-free-pool>20</max-beans-in-free-pool>
> <max-beans-in-cache>1000</max-beans-in-cache>
> <idle-timeout-seconds>5</idle-timeout-seconds>
> </caching-descriptor>
> <persistence-descriptor>
> <delay-updates-until-end-of-tx>true</delay-updates-until-end-of-tx>
> <persistence-type>
> <type-identifier>WebLogic_CMP_RDBMS</type-identifier>
> <type-version>5.1.0</type-version>
> <type-storage>META-INF/weblogic-cmp-rdbms-jar.xml</type-storage>
> </persistence-type>
> <db-is-shared>false</db-is-shared>
> <persistence-use>
> <type-identifier>WebLogic_CMP_RDBMS</type-identifier>
> <type-version>5.1.0</type-version>
> </persistence-use>
> </persistence-descriptor>
> <jndi-name>Data.ILifeCycleServerDataHome</jndi-name>
> </weblogic-enterprise-bean>
> </weblogic-ejb-jar>
>
> The confusion is that, both the above beans, refer to
> META-INF/weblogic-cmp-rdbms-jar.xml.
>
> Do let me know if you could answer the following questions, based on the
> above context.
>
> 1. Where should the weblogic-cmp-rdbms-jar.xml be placed ?? Under the
> same META-INF directory where the ejb-jar.xml and weblogic-ejb-jar.xml
> are ?
> YES
>
> 2. In that case, if there are multiple beans referring to their specific
> copies of weblogic-cmp-rdbms-jar.xml, how do we combine the
> weblogic-cmp-rdbms-jar's of the various beans ??
YES
>
> 3. The weblogic-cmp-rdbms-jar.xml seems to have only ONE MAIN
> ELEMENT...called, <weblogic-rdbms-bean> ..... </weblogic-rdbms-bean>. So,
> incase the various rdbms Deployment Descriptors of the different beans
> needs to be combined into one, at which place do we insert it inside the
> main element <weblogic-rdbms-bean> ??
If you look in the DTD it indicates that there can be more than one
element: "weblogic-rdbms-bean+"
<!ELEMENT weblogic-rdbms-jar (
weblogic-rdbms-bean+,
weblogic-rdbms-relation*,
create-default-dbms-tables?,
validate-db-schema-with?
)>
<weblogic-rdbms-bean>
<ejb-name>ejbOne</ejb-name>
<data-source-name>ejbPoolDev</data-source-name>
<table-name>tableOne</table-name>
<field-map><cmp-field>cola</cmp-field><dbms-column>ColA</dbms-column></field
-map>
<field-map><cmp-field>colb</cmp-field><dbms-column>ColB</dbms-column></field
-map>
.....
</weblogic-rdbms-bean>
<weblogic-rdbms-bean>
<ejb-name>ejbTwo</ejb-name>
<data-source-name>ejbPoolDev</data-source-name>
.....
</weblogic-rdbms-bean>
> Hope I have been clear, in letting you know what our problem exactly is.
>
> Thanks a lot for your interest.
>
> Expecting a reply soon.
>
> Thanks and Regards,
> Sundari. S
>
>
>
> ----- Original Message -----
> From: Dickens, Gordon (Bank One)
> To: 'Sundari S' ; [EMAIL PROTECTED]
> Sent: Thursday, February 07, 2002 8:39 PM
> Subject: RE: Deploying Multiple beans from a single JAR
> Sundari,
> I have done this with my beans, you combine the sections into one
> weblogic-ejb-jar.xml (also the ejb-jar.xml and weblogic-rdbms-jar.xml).
> <weblogic-enterprise-bean>
> <ejb-name>beanOne</ejb-name>
> <entity-descriptor>
> <pool>
> <max-beans-in-free-pool>20</max-beans-in-free-pool>
> </pool>
> <entity-cache>
> <max-beans-in-cache>1000</max-beans-in-cache>
> <idle-timeout-seconds>10</idle-timeout-seconds>
> <concurrency-strategy>Database</concurrency-strategy>
> </entity-cache>
> <lifecycle>
> </lifecycle>
> <persistence>
>
> <delay-updates-until-end-of-tx>True</delay-updates-until-end-of-tx>
> <persistence-type>
> <type-identifier>WebLogic_CMP_RDBMS</type-identifier>
> <type-version>6.0</type-version>
> <type-storage>META-INF/weblogic-rdbms-jar.xml</type-storage>
> </persistence-type>
> <db-is-shared>True</db-is-shared>
> <persistence-use>
> <type-identifier>WebLogic_CMP_RDBMS</type-identifier>
> <type-version>6.0</type-version>
> </persistence-use>
> </persistence>
> <entity-clustering>
> <home-is-clusterable>True</home-is-clusterable>
> </entity-clustering>
> </entity-descriptor>
> <transaction-descriptor>
> <trans-timeout-seconds>600</trans-timeout-seconds>
> </transaction-descriptor>
> <local-jndi-name>beanOne</local-jndi-name>
> </weblogic-enterprise-bean>
> <weblogic-enterprise-bean>
> <ejb-name>beanTwo</ejb-name>
> ...
> </weblogic-enterprise-bean>
> Hope this helps,
> Gordon Dickens
> > -----Original Message-----
> > From: A mailing list for Enterprise JavaBeans development
> > <[EMAIL PROTECTED] >@BANCONE On Behalf Of Sundari S
> > <[EMAIL PROTECTED] >
> > Sent: Thursday, February 07, 02 6:54 AM
> > To: [EMAIL PROTECTED]
> > Subject: Deploying Multiple beans from a single JAR
> >
> >
> > Hi,
> >
> > Incase we need to deploy more than one bean packed inside the same JAR
> -
> >
> > If each of the bean has a weblogic-cmp-rdbms.jar file, how do we
> combine
> > them into one while deploying the JAR file ?? There is also a
> reference
> > to this, from the welogic-ejb-jar.xml. Is any changes required in this
> > file also ??
> >
> > Do let me know .
> >
> > Regards,
> > Sundari.S
>
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".