2 Replies Latest reply on Jun 27, 2015 3:14 PM by anilnair

    Datasource deployment using -ds.xml

    anilnair

      Hi,

      I was tying to automate the datasource deployment using -ds.xml approach. But it seems the datasource is getting deployment but cannot view the deployed datasource  using Admin console.

      The xml that  used is

      <datasources>
          <datasource jndi-name="java:jboss/datasources/AnilDS" pool-name="AnilDSDS">
              <driver-class>net.sourceforge.jtds.jdbc.Driver</driver-class>
              <connection-url>jdbc:jtds:sqlserver://172.31.30.17:1433/Companys;instance=MSSQLSERVER</connection-url>            
              <driver>jtds-1.3.1.jar</driver>
              <pool>
                  <prefill>false</prefill>
                  <use-strict-min>false</use-strict-min>
                  <flush-strategy>FailingConnectionOnly</flush-strategy>
              </pool>
              <security>
                  <user-name>sa</user-name>
                  <password>anil123</password>
              </security>
          </datasource>      
      </datasources>
      

       

      The result from the console was

       

      13:15:14,123 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1)  JBAS015876: Starting deployment of "anil-ds.xml" (runtime-name: "anil-ds.xml")

      13:15:14,138 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-5)  JBAS010400: Bound data source [java:jboss/datasources/AnilDS]

      13:15:14,248 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 1)  JBAS018559: Deployed "anil-ds.xml" (runtime-name : "anil-ds.xml")

       

      So what would be the best approach to automate the installation of datasource for production.

      Thanks

      Anil