[jboss-user] [Datasource Configuration] - Re: Problem while closing connection (wrappedConnection) retrieved from JBoss 5 pool.

Ayush Gupta do-not-reply at jboss.com
Mon Feb 6 15:15:01 EST 2012

Ayush Gupta [https://community.jboss.org/people/ayushgupta] created the discussion

"Re: Problem while closing connection (wrappedConnection) retrieved from JBoss 5 pool."

To view the discussion, visit: https://community.jboss.org/message/714782#714782

Thanks for the reply!!!!

In my case, I have 20 DataMaps (CopyOnWriteArrayList), each datamap being populated with data parallely. Each datamap has a dedicated thread, which is triggered first time data is written to this datamap and then repeats the process till the datamap is empty.
On each notification, thread takes the data from CopyOnWriteArrayList, on basis of some business logic and then gets the connection by looking up the datasource ( using JNDI namespace). It then looks up the EJBs to perform the rest of the business logic, but here the same connection opened at the DataMap is used by the EJB to perform the DB writes.

Reply to this message by going to Community

Start a new discussion in Datasource Configuration at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120206/ceff41db/attachment.html 

More information about the jboss-user mailing list