[jboss-jira] [JBoss JIRA] (DROOLS-62) improve handling of subclasses of Spring transaction manager in SingleSessionCommandService.initTransactionManager(..)
kgeis (JIRA)
jira-events at lists.jboss.org
Fri Mar 1 18:10:56 EST 2013
kgeis created DROOLS-62:
---------------------------
Summary: improve handling of subclasses of Spring transaction manager in SingleSessionCommandService.initTransactionManager(..)
Key: DROOLS-62
URL: https://issues.jboss.org/browse/DROOLS-62
Project: Drools
Issue Type: Enhancement
Security Level: Public (Everyone can see)
Affects Versions: 5.5
Reporter: kgeis
Assignee: Mark Proctor
SingleSessionCommandService.initTransactionManager(..) checks the transaction manager that is passed in to see if it is from the Spring Framework:
{code}
if ( tm != null && tm.getClass().getName().startsWith( "org.springframework" ) ) {
{code}
By checking the class by name, it misses the case of a subclass of a Spring transaction manager (e.g. org.codehaus.groovy.grails.orm.hibernate.GrailsHibernateTransactionManager which extends org.springframework.orm.hibernate3.HibernateTransactionManager.)
It would have saved me some headache and it will save me a few lines of code if this code checks superclasses as well.
--
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
More information about the jboss-jira
mailing list