Tomcat and Apache Web Server Integration with mod_proxy connector

Use case: I have only one public IP assigned to my hosting/private cloud, and I want to host multiple websites on a single machine. Scenario as given below. Site can be simple html or php or JSP/Servlet (Java). Prerequisites: Java, Tomcat, Apache, PHP installed. Steps to integrate Tomcat and Apache: Enable mod_proxy, mod_proxy_http, mod_proxy_ajp Configure virtual [...]
Continue reading…

 

How to create a data source/connection pool in JBoss?

Today we shall talk about creating data source in JBoss. You can create a data source in JBoss for any RDBMS in five simple steps. 1. Find your RDBM’s data source xml from JBOSS_HOME\docs\examples\jca, for example if you wanted to create a data source for DB2 then pick db2-ds.xml. 2. Edit the db2-ds.xml file and [...]
Continue reading…

 

How to increase connection pool size in JBoss?

You can increase the connection pool size in JBoss application server in simple three steps. 1. Figure out the datasource.xml from JBOSS_HOME/SERVER_INSTANCE/deploy. In case of Oracle the file will be named as oracle-ds.xml. 2. Add below given tags into the xxxx-ds.xml file. 3. Restart the JBoss application server. You can verify the pool size in [...]
Continue reading…

 

How to print the JBoss JNDI tree?

Even though JBoss comes with JMX console which gives you the graphical view of JNDI tree sometime you might need to print the JNDI tree to look at the absolute path of your boud resources. Here is an example program that can be used to print JBoss JNDI tree.

Continue reading…