I integrated the Transaction subsystem with the OSGi layer
[JBAS-8585] Provide TransactionManager & UserTransaction as OSGi services
I renamed the original TransactionManagerService -> ArjunaTransactionManagerService and created four new services
* TransactionManagerService
* TransactionManagerOSGiService
* UserTransactionService
* UserTransactionOSGiService
As their names suggest they provide factory services to the standard Tx API. The OSGi service are registerd PASSIVE.
When the BundleContextService comes up, the TransactionManager and UserTransaction are registerd as ServiceFactories with the OSGi registry.
Test coverage is in our example testsuite
Running org.jboss.test.osgi.example.jta.TransactionTestCase
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.722 sec
Please pull from http://github.com/jbosgi/jboss-as/tree/jbosgi-tx