JBoss Community

Transaction OSGi Integration

created by Thomas Diesler in JBoss AS7 Development - View the full discussion

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

Reply to this message by going to Community

Start a new discussion in JBoss AS7 Development at Community