Hi.
I've reported http://issues.apache.org/jira/browse/OPENEJB-1027 in may, which 
is modifying a bit the heuristics to resolve a data source by matching the app 
name (web app context in our case) if the data source has not been explicitly 
specified. This was previously discussed with David Blevings, and he suggested 
that way.

Just to explain the use case: We're migrating cyclos (http://www.cyclos.org), 
an open source struts / hibernate application to gwt / ejb3. Many people host 
several instances of the very same application in the same tomcat, and to keep 
supporting that it would be necessary to unpack, change every persistence.xml 
from each and repack each instance again. With this feature implemented, we 
can just assume there will be a data source with the same name of the 
application context and we're done, and our users will be happy :)

We can try patching ourselves, but we need some guidance on both fundamental 
questions:
* Where is this heuristic implemented?
* How to get the current application name?

Thanks.

Luis Fernando Planella Gonzalez

Reply via email to