batchee-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Struberg (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (BATCHEE-30) implement a TransactionManagementService which uses UserTransaction
Date Wed, 09 Jul 2014 13:01:05 GMT

    [ https://issues.apache.org/jira/browse/BATCHEE-30?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14056197#comment-14056197
] 

Mark Struberg commented on BATCHEE-30:
--------------------------------------

I've committed a solution which is purely optional. It consists of a BatchThreadPoolService
which uses an EJB with a @Asynchronous method to start new threads and a TransactionManagementService
which uses an @Resource UserTransaction. 

This solution should work on all EE6 compatible servers. I've personally tested it on TomEE
1.6.0, batchee-cli with livecycle=openejb and on WAS-8.5.0.2.

To enable those services configure the following in your batchee.properties file:

{code}
BatchThreadPoolService=org.apache.batchee.tools.services.thread.AsyncEjbBatchThreadPoolService
TransactionManagementService=org.apache.batchee.tools.services.thread.UserTransactionTransactionService
{code}

> implement a TransactionManagementService which uses UserTransaction
> -------------------------------------------------------------------
>
>                 Key: BATCHEE-30
>                 URL: https://issues.apache.org/jira/browse/BATCHEE-30
>             Project: BatchEE
>          Issue Type: Improvement
>          Components: jbatch-core
>    Affects Versions: 0.1-incubating
>            Reporter: Mark Struberg
>            Assignee: Mark Struberg
>             Fix For: 0.2-incubating
>
>
> Some containers do not provide a proper TransactionManager in the specced JNDI location.
> We should try to get a UserTransaction first. And only if this doesn't work we need the
JNDI pickup of the native (and always container specific) TransactionManager.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message