Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Customized Resource Adapters (Java Connector Architecture)

Status
Not open for further replies.

solmyr72

Programmer
Aug 8, 2004
20
IL
Hi,

I'm writing a Resource Adapter (Connector), and would like to rely on websphere to pool my connections.
However, whenever there's a communication error (IOException), i'd like to report it back to Websphere, and ask Websphere throw the connection away from the pool and not re-use it.... can this be done ?

In detail:
I'm writing a Resource Adapter, providing customized connections to our legacy system.
I'm hoping websphere will manage the pool for me (more accurately, it would be Websphere's implementation of ConnectionManager).

Now, my connections may sometimes throw IOException, indicating errors in the communication channel. I can easily arrange it so that my Connection (and ManagedConnection) knows about each such error, and can report it to whoever needs to know...
But how exactly do I report it back to websphere (its ConnectionMananger) ? And how do I tell it to remove the erronous connection from the pool ?

Thanx
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top