Atomikos Forum |
|
Hi all,
I'm working on a brand new app, and am wondering which artifacts I should use for the latest version (3.7.0); it looks like transactions-essentials-all no longer exists. See below for what I'm currently using. Questions: 1. Why would I want to include transactions-jdbc-deprecated & transactions-jms-deprecated? 2. Is transactions-osgi required in non-OSGi environments? 3. What does transactions-osgi get me in OSGi environments (where I intend to use Atomikos)? Thanks, Matthew <dependency> <groupId>com.atomikos</groupId> <artifactId>atomikos-util</artifactId> <version>3.7.0</version> </dependency> <dependency> <groupId>com.atomikos</groupId> <artifactId>transactions-api</artifactId> <version>3.7.0</version> </dependency> <dependency> <groupId>com.atomikos</groupId> <artifactId>transactions-jdbc-deprecated</artifactId> <version>3.7.0</version> </dependency> <dependency> <groupId>com.atomikos</groupId> <artifactId>transactions-jdbc</artifactId> <version>3.7.0</version> </dependency> <dependency> <groupId>com.atomikos</groupId> <artifactId>transactions-jms-deprecated</artifactId> <version>3.7.0</version> </dependency> <dependency> <groupId>com.atomikos</groupId> <artifactId>transactions-jms</artifactId> <version>3.7.0</version> </dependency> <dependency> <groupId>com.atomikos</groupId> <artifactId>transactions-jta</artifactId> <version>3.7.0</version> </dependency> <dependency> <groupId>com.atomikos</groupId> <artifactId>transactions</artifactId> <version>3.7.0</version> </dependency> <dependency> <groupId>com.atomikos</groupId> <artifactId>transactions-hibernate3</artifactId> <version>3.7.0</version> </dependency> <dependency> <groupId>com.atomikos</groupId> <artifactId>transactions-osgi</artifactId> <version>3.7.0</version> </dependency>
Actually transactions-osgi 3.7.0 do not export any from JDBC nor JMS packages.
It exports only a services - UserTransaction and TransactionManager. It would be nice to put at least one property to these services - service.vendor set to Atomikos. Also the rest of the modules do not have proper manifests. Fo these who wish to get it running uder OSGi I recommend to stay with 3.6.4 (which provides OSGi manifest for all modules). Then you will need to initialize your TransactionManager and UserTransaction manualy, but it will work. |