Posts

Showing posts with the label Jboss

Digital Marketing

How to add Datasource to JBoss EAP 6 / WildFly 8

You can add datasource element to standalone.xml or the domain.xml file of JBoss EAP 6 / WildFly 8. The following is the example of MySQL datasource element. You can use same parameter to add the datasource from management console. <datasource jta="true" jndi-name= "java:/YourDatasourceName" pool-name= "YourDatasourceName" enabled="true" use-ccm="true" >   <connection-url> jdbc:mysql://localhost:3306/YourDataBaseName </connection-url>  <!-- You don't need driver class for JDBC 4 compliance Driver --> <driver-class>com.mysql.jdbc.Driver</driver-class>   <driver> mysql-connector-java-5.1.33-bin.jar </driver> <!--  <driver>mysql-connector-java-5.1.33-bin.jar_com.mysql.jdbc.Driver_5_1</driver> -->   <transaction-isolation> TRANSACTION_READ_COMMITTED </transaction-isolation>   <pool>     <min-pool-size> 100 </min-pool-size>  ...

How to add Datasource to JBoss EAP 6 / WildFly 8

You can add datasource element to standalone.xml or the domain.xml file of JBoss EAP 6 / WildFly 8. The following is the example of MySQL datasource element. You can use same parameter to add the datasource from management console. <datasource jta="true" jndi-name= "java:/YourDatasourceName" pool-name= "YourDatasourceName" enabled="true" use-ccm="true" >   <connection-url> jdbc:mysql://localhost:3306/YourDataBaseName </connection-url>  <!-- You don't need driver class for JDBC 4 compliance Driver --> <driver-class>com.mysql.jdbc.Driver</driver-class>   <driver> mysql-connector-java-5.1.33-bin.jar </driver> <!--  <driver>mysql-connector-java-5.1.33-bin.jar_com.mysql.jdbc.Driver_5_1</driver> -->   <transaction-isolation> TRANSACTION_READ_COMMITTED </transaction-isolation>   <pool>     <min-pool-size> 100 </min-pool-size>  ...

How to install JDBC driver to JBoss EAP 6 / WildFly 8

On JBoss EAP 6 / WildFly 8, you have two ways of installing the JDBC driver: deploy it as any other application package install it as a module Deploy the driver as application package is recommend when you have a cluster environment, since the deployments are automatically propagated in the server groups. See also: How to add Datasource to JBoss EAP 6 / WildFly 8 Deploying the JDBC Driver When the JDBC driver is installed as a deployment, it is deployed as a regular JAR. If the JBoss EAP 6 / Wildfly instance is running as a standalone server, copy the JDBC 4.0 compliant JAR into the Application_server_HOM E /standalone/deployments/ directory. For a managed domain, you must use the Management Console or Management CLI to deploy the JAR to the server groups. The following is an example of a MySQL JDBC driver installed as a deployment to a standalone server: $cp mysql-connector-java-5.1.33-bin.jar Application_server_HOME /standalone/deployments/ You can deploy from the admin console t...