Hi Tom, Both are thread-safe if they are initialized using an already connected Mapping. So if you construct a Mapping instance and call its connect() method in a single-threaded way, and then create a ModelD2RQ or GraphD2RQ from it, then you should be good.
Of potential interest here is this patch from Giovanni Mels that adds JNDI support to D2RQ. We plan to fold this in after getting v0.8.1 out of the door. https://github.com/d2rq/d2rq/pull/150 Best, Richard On 14 Jun 2012, at 22:40, Thomas Soares wrote: > Is it safe to construct a single instance of ModelD2RQ or GraphD2RQ in my > application and have multiple threads use it concurrently? > > Or is it necessary to treat them like a database connection and pool > instances for single-threaded use only? > > --Tom > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/_______________________________________________ > d2rq-map-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/d2rq-map-devel ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ d2rq-map-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/d2rq-map-devel
