Description
I would like to have a generic TransactionManagerLocator class.
I've implemented a new class called "ScriptingTransactionManagerLocator". It uses JavaScript at the server side, enabling users to implement their own logic to lookup their transaction manager.
In order to use it, the users would need to define the lookup script in a new parameter. For OpenEJB it would be:
<config-property>
<config-property-name>TransactionManagerLocatorScript</config-property-name>
<config-property-type>java.lang.String</config-property-type>
<config-property-value>
org.apache.openejb.OpenEJB.getTransactionManager();
</config-property-value>
</config-property>
Where...
org.apache.openejb.OpenEJB.getTransactionManager();
Is everything I would need to implement it.