3 Replies Latest reply on Feb 19, 2020 1:23 AM by priyankajajala

    dinamic <datasource> in jbosscmp-jdbc.xml


      hi everybody,

      I have a jbosscmp-jdbc.xml file with this piece of code

      <datasource-mapping>MS SQLSERVER2000</datasource-mapping>


      This xml is on EJBs.jar file.

      And mssql-ds.xml (on jboss_home/server/default/deploy) has these lines

      <connection- url>jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=skyline3</connection-url>

      So, my client need to change dynamically the datasource for use a diferent database.
      The question is :
      Can I change dynamically the java:/skyline into the EJBs.jar file to work with other database ?
      Anybody give me some ideas to do that.
      Thank in advance !!!