[JBoss JIRA] (JBTM-1859) Remove classname Strings from XTS subsystem
by Paul Robinson (JIRA)
[ https://issues.jboss.org/browse/JBTM-1859?page=com.atlassian.jira.plugin.... ]
Paul Robinson updated JBTM-1859:
--------------------------------
Assignee: Gytis Trikleris (was: Paul Robinson)
> Remove classname Strings from XTS subsystem
> -------------------------------------------
>
> Key: JBTM-1859
> URL: https://issues.jboss.org/browse/JBTM-1859
> Project: JBoss Transaction Manager
> Issue Type: Task
> Components: Application Server Integration, XTS
> Reporter: Gytis Trikleris
> Assignee: Gytis Trikleris
> Priority: Minor
> Fix For: 6.0.0
>
> Original Estimate: 4 hours
> Remaining Estimate: 4 hours
>
> THe XTS SubSystem has many classnames passed to Jandex as raw Strings. It would be better to use Class#getName as it is type-safe.
> When this code was written, this was not possible, due to the nature of the order in which class-loading was done and the fact that the code in question was executed very early in the server boot. I don't remember the specific details.
> However, something seems to have changed in WildFly, such that we can now use Class#getName on the classes we require. This issue it to replace all the classname Strings with Class#getName() and to also simplify the code under org.jboss.as.xts.jandex, as a lot of that verbose code was added to to cope with the limitation of not being able to use Class#getName().
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
9 years, 7 months
[JBoss JIRA] (JBTM-2213) Remove deprecation warnings for org.jboss.narayana.txframework.api.annotation.lifecycle.ba
by Paul Robinson (JIRA)
[ https://issues.jboss.org/browse/JBTM-2213?page=com.atlassian.jira.plugin.... ]
Paul Robinson updated JBTM-2213:
--------------------------------
Assignee: Gytis Trikleris (was: Paul Robinson)
> Remove deprecation warnings for org.jboss.narayana.txframework.api.annotation.lifecycle.ba
> ------------------------------------------------------------------------------------------
>
> Key: JBTM-2213
> URL: https://issues.jboss.org/browse/JBTM-2213
> Project: JBoss Transaction Manager
> Issue Type: Task
> Components: TXFramework
> Affects Versions: 5.0.2
> Reporter: Gytis Trikleris
> Assignee: Gytis Trikleris
>
> If you run:
> ./build.sh clean install -DskipTests | grep "org.jboss.narayana.txframework.api.annotation.lifecycle.ba"
> You will see:
> [WARNING] /home/tom/projects/jbosstm/narayana/txframework/src/main/java/org/jboss/narayana/txframework/impl/handlers/wsba/WSBAParticipantCompletionParticipant.java:[45,130] org.jboss.narayana.txframework.api.annotation.lifecycle.ba.Unknown in org.jboss.narayana.txframework.api.annotation.lifecycle.ba has been deprecated
> [WARNING] /home/tom/projects/jbosstm/narayana/txframework/src/test/java/org/jboss/narayana/txframework/functional/ws/ba/coordinatorCompletion/BACoordinatorCompletionService.java:[31,66] org.jboss.narayana.txframework.api.annotation.lifecycle.ba.Unknown in org.jboss.narayana.txframework.api.annotation.lifecycle.ba has been deprecated
> [WARNING] /home/tom/projects/jbosstm/narayana/txframework/src/test/java/org/jboss/narayana/txframework/functional/ws/ba/participantCompletion/BAParticipantCompletionService.java:[31,66] org.jboss.narayana.txframework.api.annotation.lifecycle.ba.Unknown in org.jboss.narayana.txframework.api.annotation.lifecycle.ba has been deprecated
> [WARNING] /home/tom/projects/jbosstm/narayana/txframework/src/test/java/org/jboss/narayana/txframework/impl/handlers/wsba/WSBACoordinatorCompletionParticipantTest.java:[112,10] org.jboss.narayana.txframework.api.annotation.lifecycle.ba.Unknown in org.jboss.narayana.txframework.api.annotation.lifecycle.ba has been deprecated
> [WARNING] /home/tom/projects/jbosstm/narayana/txframework/src/test/java/org/jboss/narayana/txframework/functional/ws/ba/coordinatorCompletion/BACoordinatorCompletionService.java:[154,6] org.jboss.narayana.txframework.api.annotation.lifecycle.ba.Unknown in org.jboss.narayana.txframework.api.annotation.lifecycle.ba has been deprecated
> [WARNING] /home/tom/projects/jbosstm/narayana/txframework/src/test/java/org/jboss/narayana/txframework/impl/handlers/wsba/WSBAParticipantCompletionParticipantTest.java:[115,10] org.jboss.narayana.txframework.api.annotation.lifecycle.ba.Unknown in org.jboss.narayana.txframework.api.annotation.lifecycle.ba has been deprecated
> [WARNING] /home/tom/projects/jbosstm/narayana/txframework/src/test/java/org/jboss/narayana/txframework/functional/ws/ba/participantCompletion/BAParticipantCompletionService.java:[162,6] org.jboss.narayana.txframework.api.annotation.lifecycle.ba.Unknown in org.jboss.narayana.txframework.api.annotation.lifecycle.ba has been deprecated
> [WARNING] /home/tom/projects/jbosstm/narayana/txframework/src/test/java/org/jboss/narayana/txframework/impl/handlers/wsba/WSBACoordinatorCompletionParticipantTest.java:[57,146] org.jboss.narayana.txframework.api.annotation.lifecycle.ba.Unknown in org.jboss.narayana.txframework.api.annotation.lifecycle.ba has been deprecated
> [WARNING] /home/tom/projects/jbosstm/narayana/txframework/src/test/java/org/jboss/narayana/txframework/impl/handlers/wsba/WSBACoordinatorCompletionParticipantTest.java:[115,32] org.jboss.narayana.txframework.api.annotation.lifecycle.ba.Unknown in org.jboss.narayana.txframework.api.annotation.lifecycle.ba has been deprecated
> [WARNING] /home/tom/projects/jbosstm/narayana/txframework/src/test/java/org/jboss/narayana/txframework/functional/ws/ba/coordinatorCompletion/BACoordinatorCompletionService.java:[158,18] org.jboss.narayana.txframework.api.annotation.lifecycle.ba.Unknown in org.jboss.narayana.txframework.api.annotation.lifecycle.ba has been deprecated
> [WARNING] /home/tom/projects/jbosstm/narayana/txframework/src/test/java/org/jboss/narayana/txframework/impl/handlers/wsba/WSBAParticipantCompletionParticipantTest.java:[62,27] org.jboss.narayana.txframework.api.annotation.lifecycle.ba.Unknown in org.jboss.narayana.txframework.api.annotation.lifecycle.ba has been deprecated
> [WARNING] /home/tom/projects/jbosstm/narayana/txframework/src/test/java/org/jboss/narayana/txframework/impl/handlers/wsba/WSBAParticipantCompletionParticipantTest.java:[65,130] org.jboss.narayana.txframework.api.annotation.lifecycle.ba.Unknown in org.jboss.narayana.txframework.api.annotation.lifecycle.ba has been deprecated
> [WARNING] /home/tom/projects/jbosstm/narayana/txframework/src/test/java/org/jboss/narayana/txframework/impl/handlers/wsba/WSBAParticipantCompletionParticipantTest.java:[118,32] org.jboss.narayana.txframework.api.annotation.lifecycle.ba.Unknown in org.jboss.narayana.txframework.api.annotation.lifecycle.ba has been deprecated
> [WARNING] /home/tom/projects/jbosstm/narayana/txframework/src/test/java/org/jboss/narayana/txframework/functional/ws/ba/participantCompletion/BAParticipantCompletionService.java:[166,18] org.jboss.narayana.txframework.api.annotation.lifecycle.ba.Unknown in org.jboss.narayana.txframework.api.annotation.lifecycle.ba has been deprecated
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
9 years, 7 months
[JBoss JIRA] (JBTM-1680) Allow 2PC participants to enlist in a compensation-based transaction
by Paul Robinson (JIRA)
[ https://issues.jboss.org/browse/JBTM-1680?page=com.atlassian.jira.plugin.... ]
Paul Robinson updated JBTM-1680:
--------------------------------
Assignee: Gytis Trikleris (was: Paul Robinson)
> Allow 2PC participants to enlist in a compensation-based transaction
> --------------------------------------------------------------------
>
> Key: JBTM-1680
> URL: https://issues.jboss.org/browse/JBTM-1680
> Project: JBoss Transaction Manager
> Issue Type: Feature Request
> Components: TXFramework, XTS
> Reporter: Gytis Trikleris
> Assignee: Gytis Trikleris
> Priority: Minor
> Fix For: 6.0.0
>
> Original Estimate: 1 week
> Remaining Estimate: 1 week
>
> In some situations a developer may need to coordinate multiple resources, where some are 2PC and some are not. Here it could be possible to use enlist the 2PC participants in a compensation-based transaction. The xa.prepare happens in the complete phase, the xa.commit during close and xa.rollback during compensate.
> This could provide an alternative to LRCO, where the last resource is compensation-based and the other resources remain 2PC. The benefit of this approach is that the failure window associated with LRCO does not exist. The negative of this approach is that the isolation of the compensation-based participant is reduced.
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
9 years, 7 months
[JBoss JIRA] (JBTM-1715) NPE when using CompensationManager within an in-flowed WS-BA transaction
by Paul Robinson (JIRA)
[ https://issues.jboss.org/browse/JBTM-1715?page=com.atlassian.jira.plugin.... ]
Paul Robinson updated JBTM-1715:
--------------------------------
Assignee: Gytis Trikleris (was: Paul Robinson)
> NPE when using CompensationManager within an in-flowed WS-BA transaction
> ------------------------------------------------------------------------
>
> Key: JBTM-1715
> URL: https://issues.jboss.org/browse/JBTM-1715
> Project: JBoss Transaction Manager
> Issue Type: Bug
> Components: TXFramework
> Reporter: Gytis Trikleris
> Assignee: Gytis Trikleris
> Priority: Minor
> Fix For: 6.0.0
>
> Original Estimate: 4 hours
> Remaining Estimate: 4 hours
>
> The following error occurs if an injected CompensationManager is invoked within the scope of a compensation-based transaction that was in-flowed via a WS-BA transaction.
> {quote}
> 16:17:09,879 ERROR [org.jboss.as.ejb3.invocation] (default task-18) JBAS014134: EJB Invocation failed on component TestServiceService for method public void org.jboss.narayana.compensations.functiona[617/9100]
> ted.TestServiceService.saveDataCancelOnFailure(java.lang.Boolean): javax.ejb.EJBException: java.lang.NullPointerException
> at org.jboss.as.ejb3.tx.CMTTxInterceptor.handleExceptionInOurTx(CMTTxInterceptor.java:166) [wildfly-ejb3-8.0.0.Alpha2-SNAPSHOT.jar:8.0.0.Alpha2-SNAPSHOT]
> at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:251) [wildfly-ejb3-8.0.0.Alpha2-SNAPSHOT.jar:8.0.0.Alpha2-SNAPSHOT]
> at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:316) [wildfly-ejb3-8.0.0.Alpha2-SNAPSHOT.jar:8.0.0.Alpha2-SNAPSHOT]
> at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:215) [wildfly-ejb3-8.0.0.Alpha2-SNAPSHOT.jar:8.0.0.Alpha2-SNAPSHOT]
> at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:289)
> at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41) [wildfly-ejb3-8.0.0.Alpha2-SNAPSHOT.jar:8.0.0.Alpha2-SNAPS
> HOT]
> {quote}
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
9 years, 7 months