• Post Reply Bookmark Topic Watch Topic
  • New Topic

Retrieving datasource info

 
Ådne Brunborg
Ranch Hand
Posts: 208
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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
 
Valentin Tanase
Ranch Hand
Posts: 704
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Adne,

Just one hint: check your container's documentation and try to understand how it supports JMX.
Regards.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!