does anyone know how I can retrieve datasource information inside the code? The project I'm currently working on requires me to log the name of the data source when encountering a StaleConnection. The reason they want this is that the code is to be deployed twice, connecting to two different instances of the database.
I'm using WebSphere and WSAD 5.1
Entia non sunt multiplicanda praeter necessitatem
posted 10 years ago
Just one hint: check your container's documentation and try to understand how it supports JMX. Regards.