2009/7/9 Viktor Klang <[email protected]> > > > On Thu, Jul 9, 2009 at 11:24 AM, Stuart McCulloch <[email protected]>wrote: > >> 2009/7/9 Viktor Klang <[email protected]> >> >>> Grettings fellow posse people, >>> >>> I'm facing a need to pool Thrift TTransport objects for a use case very >>> much similar to JDBC pooling (Proxool, C3P0 etc) >>> >>> My Google-fu is failing me and before I start to write my own pool, I was >>> wondering if anyone know of any existing solutions? >>> >>> My second option would be to try to locate some pooling impl. that I >>> could gut out and replace the business end with TTransports. >>> >>> How would you solve this? >>> >> >> http://commons.apache.org/pool/ ? >> > > Yeah, had a look at it, but it seems to be caught in Java 1.4 (No > generics). > I'll try it out and genericize it (doing this in Scala anyway) > > Thanks for the tip! >
I'd also take a look at the pooling / scheduling classes in java.util.concurrent: http://java.sun.com/j2se/1.5.0/docs/api/java/util/concurrent/ExecutorService.html which are covered in Alex's concurrency refcard (also well worth reading imho): http://refcardz.dzone.com/refcardz/core-java-concurrency HTH > >> >> >>> Cheers, >>> >>> -- >>> Viktor Klang >>> >>> Java Specialist >>> Scala Loudmouth >>> Lift Committer >>> >>> >> -- >> Cheers, Stuart >> >> >> > > > -- > Viktor Klang > > Java Specialist > Scala Loudmouth > Lift Committer > > > > -- Cheers, Stuart --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "The Java Posse" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/javaposse?hl=en -~----------~----~----~----~------~----~------~--~---
