Bug 1242374

Summary: @Inject UserTransaction doesn't work in the SwitchYard test case
Product: [JBoss] JBoss Fuse Service Works 6 Reporter: Tadayoshi Sato <tasato>
Component: SwitchYardAssignee: tcunning
Status: VERIFIED --- QA Contact: Matej Melko <mmelko>
Severity: high Docs Contact:
Priority: high    
Version: 6.0.0 GACC: ppecka, soa-p-jira
Target Milestone: CR1   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Support Patch
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1214695    
Attachments:
Description Flags
reproducer none

Description Tadayoshi Sato 2015-07-13 08:25:39 UTC
Cloned from https://issues.jboss.org/browse/ENTESB-3600 for FSW_6.0_2_2015.

"@Inject UserTransaction" support, which was supposed to be introduced by SWITCHYARD-1114 in SY 1.1, doesn't seem to work as expected. When you try to test from 'SwitchYardRunner' a Bean service that has a UserTransaction field @Inject'ed like this:

===
    @Inject
    private UserTransaction ut;
===

the test throws the following error and fails:

===
org.jboss.weld.exceptions.DeploymentException: WELD-001408 Unsatisfied dependencies for type [UserTransaction] with qualifiers [@Default] at injection point [[field] @Inject private com.redhat.samples.switchyard.GreetingServiceImpl.ut]
===

Comment 1 Tadayoshi Sato 2015-07-13 08:29:49 UTC
Created attachment 1051315 [details]
reproducer

Comment 2 JBoss JIRA Server 2015-07-15 22:26:43 UTC
Tom Cunningham <tcunning> updated the status of jira ENTESB-3600 to Resolved

Comment 3 JBoss JIRA Server 2015-07-16 01:46:28 UTC
Tadayoshi Sato <sato.tadayoshi> updated the status of jira ENTESB-3600 to Reopened

Comment 5 tcunning 2015-10-08 21:09:12 UTC
Backported SWITCHYARD-2481 and SWITCHYARD-2743 to 1.x branch.

Comment 6 JBoss JIRA Server 2015-10-08 21:09:49 UTC
Tom Cunningham <tcunning> updated the status of jira ENTESB-3600 to Resolved