Bug 994420

Summary: RTGov does not work with JCA gateway
Product: [JBoss] JBoss Fuse Service Works 6 Reporter: Jiri Pechanec <jpechane>
Component: RT GovernanceAssignee: Gary Brown <gbrown>
Status: CLOSED CURRENTRELEASE QA Contact: Jiri Sedlacek <jsedlace>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.0.0 GACC: atangrin, ldimaggi, oskutka, soa-p-jira
Target Milestone: ER2   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jiri Pechanec 2013-08-07 09:09:01 UTC
Try jca-inflow-hornetq quickstart. When executed on the server the rtgov does not record a business transaction. There is no exception in the log. I believe that's because getActivityCollector().endScope() is not called in AbstractExchangeEventProcessor.

The same behaviour is present when I call a SY service from CDI bean by injecting the @Reference to the SY service into CDI bean. It thus does not go through binding effectivelly bypassing endScope() call too.

Comment 1 Jiri Pechanec 2013-08-07 09:53:14 UTC
Hmm, in fact it seems it is related to the fact that the operation in question is one-way.

Comment 2 Gary Brown 2013-08-16 16:05:26 UTC
Verified this now works after fixing the one-way issue. Output from activity server REST query:

[
    {
        "type": "RequestReceived",
        "interface": "org.switchyard.quickstarts.jca.inflow.GreetingGateway",
        "operation": "english",
        "serviceType": "{urn:switchyard-quickstart:jca-inflow-hornetq:0.1.0}GreetingService",
        "messageType": "{urn:switchyard-quickstart:jca-inflow-hornetq:0.1.0}person",
        "context": [
            {
                "value": "ID-gbrown-redhat-55705-1376668804225-0-1",
                "type": "Message"
            }
        ],
        "unitId": "f063e84a-22d9-48fd-9f1e-9e2cde4dae3f",
        "timestamp": 1376668844366
    },
    {
        "type": "ResponseSent",
        "replyToId": "ID-gbrown-redhat-55705-1376668804225-0-1",
        "interface": "org.switchyard.quickstarts.jca.inflow.GreetingGateway",
        "operation": "english",
        "serviceType": "{urn:switchyard-quickstart:jca-inflow-hornetq:0.1.0}GreetingService",
        "context": [
            {
                "value": "ID-gbrown-redhat-55705-1376668804225-0-1onewayreturn",
                "type": "Message"
            }
        ],
        "unitIndex": 1,
        "unitId": "f063e84a-22d9-48fd-9f1e-9e2cde4dae3f",
        "timestamp": 1376668844472
    }
]

Comment 3 Jiri Pechanec 2013-09-16 10:57:37 UTC
Verified in ER2