Professional Documents
Culture Documents
Wildfly Installation Steps
Wildfly Installation Steps
5- Start the server using the 'standalone.bat' in (ROOT_FOLDER)\bin and wait until
you read line 'Server started'
7- Add database drivers from Deployments -> click add to open the wizard -> upload
a new deployment -> upload your Connector (i.e. JDBC Driver)
a- for Oracle: ojdbc7.jar (You can find this jar at the WEB-INF\lib at the
project workspace)
b- for SQL Server: mssql-jdbc-6.2.1.jre8.jar (You can find this jar at the
WEB-INF\lib at the project workspace)
c- for PostgreSQL: postgresql-42.1.4.jar (You can find this jar at the WEB-
INF\lib at the project workspace)
8- Add 3 datasources from Configuration -> Subsystems -> Datasources -> Non-XA ->
Add
a- from popup windows choose datasource type -> next, write name and JNDI
name. -> next
b- JNDI name has to start with 'java:/' or 'java:jboss/', we chose to start
with 'java:/' -> next (i.e. Oracle JNDI name will be java:/jdbc/ETR_HCM_PKG)
c- Choose JDBC Driver from detected drivers. -> next
d- Write connection settings (URL, username, password). (From Direct
Connection in hibernate.cfg.xml) -> next
e- Finish.
f- Click the created datasource and choose view
g- Disable datasource so you can apply next changes
h- Click Pool panel -> Edit
i- Min Pool Size: 10, Max Pool Size: 20, check Prefill = true
j- Save changes -> and enable datasource
f- Reload the server to apply changes.
f- jboss-deployment-structure.xml content:
<?xml version="1.0" encoding="UTF-8"?>
<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.2">
<deployment>
<!-- exclude-subsystem prevents a subsystems deployment
unit processors running on a deployment -->
<!-- which gives basically the same effect as removing the
subsystem, but it only affects single deployment -->
<exclude-subsystems>
<subsystem name="jsf" />
</exclude-subsystems>
</deployment>
</jboss-deployment-structure>