Tomcat transaction resource is defined globally, which doesn't work in tomcat 5.5 or 6

Description

In cargo 1.0, tomcats resources are all defined globally (in conf/context.xml). This doesn't work for transaction resources in tomcat 5.5 (or it seems 6). See this thread for some details:

http://www.nabble.com/UserTransaction,-JOTM-and-Tomcat-5.5.x-td2793244.html

Additionally, defining resources globally means that two deployments that require different datasources with the same name won't work. The resources should be defined locally. There's a comment in the source code saying "In Tomcat 5.5+, we use context.xml to avoid configuration problems.", but no explanation as to what these configuration problems are. If there really are configuration problems, then maybe the contexts should be defined in conf/Catalina/localhost/path.xml.

Status

Assignee

Savas Ali Tokmen

Reporter

James Roper

Components

Fix versions

Affects versions

1.0

Priority

Major