3 Replies Latest reply on May 21, 2002 11:42 AM by ben

    Muliple datasources in jaws.xml

    Bani Greyling Newbie

      Hi,

      When you deploy a couple of CMP beans, you usually use something like the following in jaws.xml:

      <?xml version="1.0" encoding="Cp1252"?>
      <jaws>
       <datasource>java:/Billing</datasource> <<== NOTE
       <type-mapping>MS SQLSERVER</type-mapping>
       ....
      


      If, however, I want to deploy multiple beans in the same JAR that use different datasources, how must I specify the datasource for each bean? I tried something like the following, but JAWS ignored it.

      <enterprise-beans>
       <entity>
       <ejb-name>PostalCode</ejb-name>
       <datasource>java:/Billing</datasource> <<== NOTE
       <table-name>dbo.PostalCode</table-name>
       <create-table>false</create-table>
       ...
      


      Alternatively I could deploy Beans using the same datasource in there own JAR, but this would be second prize :)

      Any suggestions?

      Thx
      Bani