From icky at inbox.ru Wed Oct 14 12:15:16 2009 From: icky at inbox.ru (Ikrom Hotamov) Date: Wed, 14 Oct 2009 08:15:16 +0400 Subject: [Json-rpc-java] Global objects (connectionPool) Message-ID: Hi people! First off, thanks a lot for supporting and contributing to the project! Like it very much! I'm new to json-rpc-java. I wanted to implement centralized global objects, like ConnectionPool, so that they could be passed to the beans or classes registered with the JSONRPCBridge. I have found an old email in the mailing list by Michael, saying they would implement such a functionality, but not sure if it's done yet. Any examples or tutorials would be truly appreciated! Thanks for consideration and hope to hear back soon. King regards, Ikrom From sasha.ov at gmail.com Wed Oct 14 12:40:25 2009 From: sasha.ov at gmail.com (sasha.ov at gmail.com) Date: Tue, 13 Oct 2009 21:40:25 -0700 Subject: [Json-rpc-java] Global objects (connectionPool) In-Reply-To: References: Message-ID: <4AD55639.9050209@gmail.com> Hi Ikrom -- I don't have the context of your pooling conversation with Michael and hope I got your requirements right. I can envision creating a servlet filter that would 1. Manage a pool of JSONBridge objects using [1]http://commons.apache.org/pool/ for example. 2. For every request, find next available pooled object and put it into the session. It may need to wait until the pooled object becomes available. 3. After the request is done, return the bridge back to the pool. For up-to-date code of json-rpc-java you may want to head to [2]http://jabsorb.org . Look around JSONRPCServlet. Regards, -- Sasha On 10/13/2009 9:15 PM, Ikrom Hotamov wrote: Hi people! First off, thanks a lot for supporting and contributing to the project! Like it very much! I'm new to json-rpc-java. I wanted to implement centralized global objects, lik e ConnectionPool, so that they could be passed to the beans or classes register ed with the JSONRPCBridge. I have found an old email in the mailing list by Michael, saying they would imp lement such a functionality, but not sure if it's done yet. Any examples or tutorials would be truly appreciated! Thanks for consideration and hope to hear back soon. King regards, Ikrom _______________________________________________ Json-rpc-java mailing list [3]Json-rpc-java at oss.metaparadigm.com [4]http://oss.metaparadigm.com/mailman/listinfo/json-rpc-java References 1. http://commons.apache.org/pool/ 2. http://jabsorb.org/ 3. mailto:Json-rpc-java at oss.metaparadigm.com 4. http://oss.metaparadigm.com/mailman/listinfo/json-rpc-java