Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-3600

[FSW 6.0.x] @Inject UserTransaction doesn't work in the SwitchYard test case

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • jboss-fuse-6.0
    • jboss-fuse-6.0
    • SwitchYard
    • None

      "@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]
      

              tcunning@redhat.com Thomas Cunningham
              rhn-support-tasato Tadayoshi Sato
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: