[jbossts-issues] [JBoss JIRA] (JBTM-2704) Compensations framework cannot instantiate bean from ear archive

Gytis Trikleris (JIRA) issues at jboss.org
Thu Jul 28 08:26:00 EDT 2016

    [ https://issues.jboss.org/browse/JBTM-2704?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13272052#comment-13272052 ] 

Gytis Trikleris commented on JBTM-2704:

I mean should I move to open so that it could be resolved once WFLY issue is resolved?
But there isn't any documentation on this at the moment. Wouldn't the docs section look weird only with one note? 
I've also linked a docs JIRA as a follow up.

> Compensations framework cannot instantiate bean from ear archive
> ----------------------------------------------------------------
>                 Key: JBTM-2704
>                 URL: https://issues.jboss.org/browse/JBTM-2704
>             Project: JBoss Transaction Manager
>          Issue Type: Bug
>          Components: Compensations
>            Reporter: Gytis Trikleris
>            Assignee: Gytis Trikleris
>             Fix For: 5.next
> BeanManagerUtil is using CDI BeanManager to instantiate classes from the deployment to be used by the compensations framework. It works fine with war and jar archives, because all deployment classes are accessible for the root bean manager. However, ear archives have multiple bean managers and some classes cannot be accessed.
> Martin Kouba has provided a workaround for this on Weld forum by using weld-core to get the correct bean manager.
> It would be better to find a solution for this without adding a direct dependency on weld-core and instead injecting the correct bean manager once by the subsystem. However, if that is not possible, we should use the provided workaround.

This message was sent by Atlassian JIRA

More information about the jbossts-issues mailing list