Skip to main content

Posts

How to configure a Datasource in JBoss / WildFly as a JAR Deployment

JDBC drivers can be installed as a JAR deployment using either the management CLI or the management console. As long as the driver is JDBC 4-compliant, it will automatically be recognized and installed as a JDBC driver upon deployment. 1. Download the appropriate JDBC driver from your database vendor. 2. Start the JBoss EAP/WildFly server. 3. Now most of the drivers coming with JDBC 4-compliant, but in case If the JDBC driver JAR is not JDBC 4-compliant, it can be made deployable using the following steps. i) Create a directory structure META-INF/services on your local system. $ mkdir -p META-INF/services    ii) Create a file inside META-INF/services/java.sql.Driver. $ touch META-INF/services/java.sql.Driver   iii) Add one line in the file to indicate the fully-qualified class name of the JDBC driver. $ echo “com.mysql.jdbc.Driver” > META-INF/services/java.sql.Driv...

How to configure a Datasource in JBoss / WildFly as a Module

JDBC (Java Database Connectivity) is a Java API to connect and execute the query with the database. It is a part of JavaSE (Java Standard Edition). JDBC API uses JDBC drivers to connect with the database. The JDBC driver converts the application code to the database language. This means that if the correct driver is installed, an application can be used with any supported database.  Install a JDBC Driver as a Module JDBC drivers can be installed as a core module using the management CLI using the following steps. 1. Download the appropriate JDBC driver from your database vendor. 2. Start the JBoss EAP/WildFly server. 3. Launch the management CLI with--connect argument to connect to the running instance. $ EAP_HOME/bin/jboss-cli.sh --connect And you will get the below cli [standalone@localhost:9990 /] 4. Use the module add management CLI command to add the new core module. Syntax :- module add --name=<MODULE_NAME> --resources=<PATH...

How to setup Jboss Wildfly in Domain Mode with Remote Host Controllers ?

Domain mode feature of JBoss allows to manage multiple server instances from a single control point. The server configuration of the domain is centralized in the domain.xml file of the domain controller. The domain.xml is located at domain/configuration/. It includes the main configuration for all server instances. This file is only required for the domain controller. In the domain.xml file, this file will use to define the server group configuration (which can be anyway changed at runtime). All the server groups which we will create or already created that will be define here. <server-groups> <server-group name="main-server-group" profile="full"> <jvm name="default"> <heap size="64m" max-size="512m"/> </jvm> <socket-binding-group ref="full-sockets"/> </server-group> ...

Migrate Jboss Application Server - JBoss EAP 7.0 to JBoss EAP 7.1

INTRODUCTION This post describes how to migrate your application server configuration using the JBoss Server Migration Tool from a previous release of JBoss EAP 7.0 to JBoss EAP 7.1. What is JBoss Server Migration Tool? The JBoss Server Migration Tool is a Java application which ships with JBoss EAP 7.1 and that automatically migrates JBoss EAP server configurations with minimal or no interaction required. The JBoss Server Migration Tool reads your existing source server configuration files and adds configurations for any new subsystems, updates the existing subsystem configurations with new features, and removes any obsolete subsystem configurations. Pre-Migration Tasks Download the Jboss eap 7.1 and setup on your linux machine. For example- I’m using the EAP_HOME /opt/RH/TestApp_JB7.1 for jboss eap 7.1 and /opt/RH/TestApp_JB7.0 for jboss eap 7.0 Running the JBoss Server Migration Tool You can run the JBoss Server Migration Tool in either of the fol...

Weblogic 12c Installation and Domain setup

INTRODUCTION   This post describes the installation of the WebLogic Server Version 12.2.1.3 on Linux Version 6 and 7. The following tasks are performed and described: Preparing the Operating System for the installation of the WebLogic Server 12.2.1.3 Installation JDK 1.8 and the WebLogic Server 12.2.1.3 Pre-Installation Tasks Step 1# Download the Weblogic Server 12c software from Oracle Technology Network. Java Development Kit Oracle WebLogic Server 12cR2 (12.2.1.3)   Step 2# The following actions should be performed by the "root" user. Create a new group and user (you can create your own custom user & group) #groupadd -g 501 oinstall #useradd -u 501 -g oinstall oracle #passwd oracle Step 3# Create the directories in which the Oracle software will be installed. #mkdir -p /u01/app/oracle/Middleware/Oracle_Home #chown -R oracle:oinstall /u01 #chmod -R 775 /u01 Oracle WebLogic Server Directory Structure Step 4# Append the following entri...