Logging is an important part of any application, the only mean to know what’s happened in a production environment before that nasty error. The Java virtual machine took a while to provide a proper logging system (no, System.out is not a proper logging system) and in the meantime an Apache library, Log4J, had become the [...]
Archive for the ‘JBoss’ Category
Log4J & Chainsaw
Posted in JBoss on June 20, 2009 | Leave a Comment »
JBoss IP address binding – configuration
Posted in JBoss on May 19, 2009 | Leave a Comment »
By default JBoss 4.x plus will be available only on localhost. To make it available on LAN with a IP address or its network name, start run.bat with -b IP address. For example suppose your IP address on network is 192.168.2.44 and JBoss_Home is e:\jboss422, go to e:\jboss422\bin and type run -b 192.168.2.44
Now you should [...]
Validating connections in a pool in JBoss application server for MySQL
Posted in JBoss on May 18, 2009 | Leave a Comment »
MySQL connections in a pool times out after a long period of inactivity [I believe 8 hours is the time period by default.] Hence the connections in the pool become stale and this results in exceptions like java.sql.SQLException: Communication link failure.(The same scenario can also be
simulated by bringing JBoss up when MySQL is up and [...]