{"action":"created","issue":{"url":"https://api.github.com/repos/ebean-orm/avaje-ebeanorm/issues/541","labels_url":"https://api.github.com/repos/ebean-orm/avaje-ebeanorm/issues/541/labels{/name}","comments_url":"https://api.github.com/repos/ebean-orm/avaje-ebeanorm/issues/541/comments","events_url":"https://api.github.com/repos/ebean-orm/avaje-ebeanorm/issues/541/events","html_url":"https://github.com/ebean-orm/avaje-ebeanorm/issues/541","id":128494360,"number":541,"title":"Q: How to use my own JTA Transaction manager with Ebean?","user":{"login":"fandayrockworld","id":1926268,"avatar_url":"https://avatars.githubusercontent.com/u/1926268?v=3","gravatar_id":"","url":"https://api.github.com/users/fandayrockworld","html_url":"https://github.com/fandayrockworld","followers_url":"https://api.github.com/users/fandayrockworld/followers","following_url":"https://api.github.com/users/fandayrockworld/following{/other_user}","gists_url":"https://api.github.com/users/fandayrockworld/gists{/gist_id}","starred_url":"https://api.github.com/users/fandayrockworld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fandayrockworld/subscriptions","organizations_url":"https://api.github.com/users/fandayrockworld/orgs","repos_url":"https://api.github.com/users/fandayrockworld/repos","events_url":"https://api.github.com/users/fandayrockworld/events{/privacy}","received_events_url":"https://api.github.com/users/fandayrockworld/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ebean-orm/avaje-ebeanorm/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-01-25T09:24:37Z","updated_at":"2016-01-27T00:52:27Z","closed_at":null,"body":"How can we use Ebean with JTA tx?\r\n\r\nI found that\r\n```java\r\npackage com.avaje.ebeaninternal.server.transaction;\r\npublic class JtaTransactionManager implements ExternalTransactionManager {\r\n...\r\n     /**\r\n     * Initialise this with the Ebean internal transaction manager.\r\n     */\r\n    public void setTransactionManager(Object txnMgr) {\r\n        \r\n        // RB: At this stage not exposing TransactionManager to \r\n        // the public API and hence the Object type and casting here\r\n\r\n        // TransactionManager HERE IS com.avaje.ebeaninternal.server.transaction.TransactionManager NOT javax.transaction.TransactionManager, BUT HOW CAN WE inject a third part TXM that is a javax implement?\r\n        this.transactionManager = (TransactionManager) txnMgr;     \r\n        this.dataSource = transactionManager.getDataSource();\r\n        this.serverName = transactionManager.getServerName();\r\n    }\r\n...\r\n```\r\n`TransactionManager` HERE IS `com.avaje.ebeaninternal.server.transaction.TransactionManager` NOT `javax.transaction.TransactionManager`, BUT HOW CAN WE inject a third part TXM that is a `javax` implementation? (Like `com.atomikos.icatch.jta.UserTransactionManager` in `atomikos` )"},"comment":{"url":"https://api.github.com/repos/ebean-orm/avaje-ebeanorm/issues/comments/175317806","html_url":"https://github.com/ebean-orm/avaje-ebeanorm/issues/541#issuecomment-175317806","issue_url":"https://api.github.com/repos/ebean-orm/avaje-ebeanorm/issues/541","id":175317806,"user":{"login":"fandayrockworld","id":1926268,"avatar_url":"https://avatars.githubusercontent.com/u/1926268?v=3","gravatar_id":"","url":"https://api.github.com/users/fandayrockworld","html_url":"https://github.com/fandayrockworld","followers_url":"https://api.github.com/users/fandayrockworld/followers","following_url":"https://api.github.com/users/fandayrockworld/following{/other_user}","gists_url":"https://api.github.com/users/fandayrockworld/gists{/gist_id}","starred_url":"https://api.github.com/users/fandayrockworld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fandayrockworld/subscriptions","organizations_url":"https://api.github.com/users/fandayrockworld/orgs","repos_url":"https://api.github.com/users/fandayrockworld/repos","events_url":"https://api.github.com/users/fandayrockworld/events{/privacy}","received_events_url":"https://api.github.com/users/fandayrockworld/received_events","type":"User","site_admin":false},"created_at":"2016-01-27T00:52:27Z","updated_at":"2016-01-27T00:52:27Z","body":"Thanks Rob, I will do that after deeply study on JTA."}}