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 ?
 
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 ??
 
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> ??
 
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 -----
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

Reply via email to