This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes JCA 1.5 - how do I return my connections to the connection pool? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Reply locked New topic
Author

JCA 1.5 - how do I return my connections to the connection pool?

Kevin Halk
Greenhorn

Joined: Feb 09, 2010
Posts: 10
Hello,
I am implementing my own JCA 1.5 resource adapter. I have used Iron Jacamar to auto-generate corresponding skeleton code for JCA 1.5.

My question is, where/how do I actually return the connection to the connection pool?

From the end user's perspective, this would entail something like connect.close(), however I'm not sure where exactly in the JCA stuff I'm supposed to handle this. Somewhere in the the ManagedConnection I'm assuming? There are two functions destroy and cleanup however there is no implemention for them and they sound like they actually physically close the connection.

Also wouldn't I need to somehow call a function on the connection pool to let it know? This may be accomplished by triggering an event to a listener but again I'm not sure the details of implementing this or where it should occur.

Thank you!
Kevin
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60050
    
  65

Hey there... it's a tad unfriendly to post same question in multiple forums or more than once. It can waste the time of the people who are trying to help you when multiple redundant conversations take place. You can read more about this at this link ⇒ CarefullyChooseOneForum ⇐. Please help us keep the Ranch a friendly place by not posting multiple times. Thanks!


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JCA 1.5 - how do I return my connections to the connection pool?
 
Similar Threads
how we should return a connection to connectio pool
SCEA Certified
apache commons pool: out of memory
JBoss JCA 1.5 - how do I return my connections to the connection pool?
PreparedStatement's - how do you use them CORRECTLY?