Ramblings

Archive for the ‘jboss’ Category

17 Dec, 2008

JBoss and Sesame Street’s Count

Posted by: Matt Williams In: jboss| tips

One, One database record!
Two, Two database record!
Muahahaha!

By default, when using datasources with JBoss, it does a count to validate a connection, both on creation and when it is requested from the connection pool.  It looks something like:
select count(*) from x
Now, this can take take a while when working with tables containing 1.8 million rows and [...]

25 Sep, 2008

JBoss run.sh may be harmful

Posted by: Matt Williams In: gotchas| jboss

A coworker and I discovered an issue with jboss’ run.sh (which starts the app server).  The problem lies in different flavours of unix (or unix-like) shells returning different values for wait.
The relevant code is:

# Wait until the background process exits
WAIT_STATUS=0
[...]


Categories

DrakNet Web Hosting