RE: [Sparql4j-devel] Design issue: connection management and pooling
Status: Pre-Alpha
Brought to you by:
jsaarela
From: Seaborne, A. <and...@hp...> - 2005-11-16 18:05:58
|
-------- Original Message -------- > From: Janne Saarela <> > Date: 15 November 2005 12:28 >=20 > Hi all >=20 > Can I have some of your cpu time for thinking how we should manage > connection objects in sparql4j project?=20 >=20 > As sparql currently does not support state management (cursors or > anything of the sort), there is no need to manage state in the > Connection object internally. =20 >=20 > How the connections are passed between Driver, Connection and Statement > (or PreparedStatement) classes is something we should design right so > that eventual state management would be easier to add in the future. =20 >=20 > I am thinking that the Driver.getConnection() method could return > nothing but a Connection object which internally manages HTTP > connections to SPARQL servers. =20 >=20 > Once a (Prepared)Statement.execute() method (or variants of it) is > executed, the actual protocol call is created within the Connection > object. This would centralize HTTP code management to the Connection > class leaving room for internal connection pool management if HTTP > connections were e.g. persisted and left open for future calls. Good idea - we *might* be able to get this for free by having swappable HTP clients. Maybe httpClient does the necessary work for use (although this should not be a system prerequiste). =20 Andy >=20 > I don't see a reason to pool Connection objects in the Driver level at > this time.=20 >=20 > Janne > -- > Janne Saarela <janne.saarela at profium.com> Profium, Lars Sonckin > kaari 12, 02600 Espoo, Finland=20 > Internet: http://www.profium.com >=20 >=20 >=20 > ------------------------------------------------------- > This SF.Net email is sponsored by the JBoss Inc. Get Certified Today > Register for a JBoss Training Course. Free Certification Exam > for All Training Attendees Through End of 2005. For more info visit: > http://ads.osdn.com/?ad_id=3D7628&alloc_id=3D16845&op=3Dclick > _______________________________________________ > Sparql4j-devel mailing list > Spa...@li... > https://lists.sourceforge.net/lists/listinfo/sparql4j-devel |