Issue Type: Improvement Improvement
Assignee: Unassigned
Components: data
Created: 08/Feb/13 3:14 AM
Description:

ContentFeatureSource is currently referencing a single transaction object, causing problems when it is accessed by multiple threads that work against different transactions (a common occurrence in J2EE environments).

I propose to add an indirection, so transactions can be cached and accessed on a thread-local basis:

public abstract class ContentFeatureSource {
	public void setTransactionCache(TransactionCache transactionCache){
		this.transactionCache = transactionCache;
	}
}

public interface TransactionCache {
   // returns a thread-local transaction
   Transaction getTransaction();

}
Project: GeoTools
Priority: Major Major
Reporter: Jan De Moerloose
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
GeoTools-Devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to