How to create datasource and driver defination in JBOSS

13 views
Skip to first unread message

Soujanya Bargavi

unread,
Mar 18, 2019, 2:27:11 AM3/18/19
to TigerVNC Developer Discussion
Make the driver definition and make the information source. 

The accompanying guidelines advise how to design JBoss for running in independent mode, utilizing the standalone.xml setup document. For directions on the most proficient method to utilize domain.xml to arrange JBoss for running in space mode, see the JBoss documentation. 

In the independent setup record JBOSS_ HOME\standalone\configuration\standalone.xml, locate the accompanying: 

<subsystem xmlns="urn:jboss:domain:datasources:1.0"> 

In that area, design the information source. The accompanying model demonstrates an arrangement for the Oracle Database, utilizing the Oracle JDBC Thin driver. For directions on designing other information sources, see the JBoss documentation.

<subsystem xmlns="urn:jboss:domain:datasources:1.0">
   <datasources>
      <datasource jndi-name="java:/EclipseLinkDS" 
            pool-name="EclipseLinkDS" 
            enabled="true" 
            jta="true" 
            use-java-context="true" 
            use-ccm="true">
         <connection-url>jdbc:oracle:thin:node_name.example.com:1521:TOPLINK</connection-url>
         <driver>oracle</driver>
         <transaction-isolation>TRANSACTION_READ_COMMITTED</transaction-isolation>
         <pool>
            <prefill>true</prefill>
            <use-strict-min>false</use-strict-min>
            <flush-strategy>FailingConnectionOnly</flush-strategy>
         </pool>
         <security>
            <user-name>Smith</user-name>
            <password>password</password>
         </security>
       </datasource>
       <driver name="oracle" module="com.oracle.ojdbc6">
         <xa-datasource-class>oracle.jdbc.OracleDriver</xa-datasource-class>
       </driver>
    </datasources>
</subsystem>
Reply all
Reply to author
Forward
0 new messages