Hi,

I'm currently writing an example JCA Resource Adapter to evaluate the work 
involved and the benefits, etc of using JCA. Thanks to many articles (including 
posts on this and other forums) I have been able to create, deploy and invoke a 
dummy operation via a Servlet against my own Non-Transactional Resource 
Adapter. For the actual ResourceAdapter implementation, I am using the 
DummyResourceAdapter provided by JBossJCA.

But (!) I am having problems getting connection pooling to work properly. I 
have (arbitrarily) set the MaxPool to 5 to test connection pooling. I am 
calling close() from my connection at the end of each call to the servlet. The 
implementation of this simply releases the reference to the ManagedConnection 
implementation. However, when I try to call the servlet 6 times in succession, 
on the 6th it throws an exception claiming there are no available connections. 
I have read the posts regarding this message, but can't see how or why I would 
be leaking connections.

Have I implemented all that I need to, in order that the ConnectionManager will 
pool (and more importantly re-use) my connections?

I can attach code if required, thought I would omit this to start with as it 
might be a trivially stupid mistake I'm making! :)

Cheers,
Dan

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3900913#3900913

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3900913


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to