Bug 778810 (SOA-1260)

Summary: QS helloworld_bridge references sending message to wrong queue
Product: [JBoss] JBoss Enterprise SOA Platform 4 Reporter: Martin Vecera <mvecera>
Component: JBossESB, ExamplesAssignee: nwallace <nwallace>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 4.3 CP01CC: dlesage
Target Milestone: ---   
Target Release: 4.3 CP04 ER1   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/SOA-1260
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-03-23 14:26:54 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Martin Vecera 2009-03-30 11:51:04 UTC
Affects: Interactive Demo/Tutorial
Date of First Response: 2009-11-27 20:20:28
Workaround Description: build.xml
24c24
< description="sends a JMS message to queue/quickstart_helloworld_Request_gw">
---
> description="sends a JMS message to queue/quickstart_helloworld_Request_bridge"> 
project_key: SOA

In helloworld_bridge there is a bridge queue which bridges messages to GW queue for a helloworld service. In build.xml there is a message send directly to GW queue, hence it is not using the bridged one. I think that the original message should be sent to the bridge.

Comment 1 Martin Vecera 2009-03-30 11:52:04 UTC
Link: Added: This issue depends JBESB-2498


Comment 2 Martin Vecera 2009-03-30 11:55:09 UTC
Link: Added: This issue related JBQA-2218


Comment 3 Kevin Conner 2009-03-30 12:00:44 UTC
Link: Removed: This issue depends JBESB-2498 


Comment 4 Kevin Conner 2009-03-30 12:02:00 UTC
Workaround Description: Added: build.xml
24c24
< description="sends a JMS message to queue/quickstart_helloworld_Request_gw">
---
> description="sends a JMS message to queue/quickstart_helloworld_Request_bridge"> 


Comment 5 Len DiMaggio 2009-11-28 01:20:28 UTC
I think that SOA-1260 is minor - the reference to the wrong queue is only in the wrong queue is only in the description field in the build.xml file - the SendJMSMessage program does send a message to the correct queue.

It's worth fixing - as it may confuse users - but it's a minor bug.

Here's the code from src/org/jboss/soa/esb/samples/quickstart/helloworld/test/SendJMSMessage.java

        Object tmp = iniCtx.lookup("ConnectionFactory");
        QueueConnectionFactory qcf = (QueueConnectionFactory) tmp;
        conn = qcf.createQueueConnection();
        que = (Queue) iniCtx.lookup("queue/quickstart_helloworld_Request_bridge");
        session = conn.createQueueSession(false, QueueSession.AUTO_ACKNOWLEDGE);
        conn.start();
        System.out.println("Connection Started");


Comment 6 nwallace 2010-01-06 13:37:10 UTC
build.xml updated.
Committed revision 4653

Comment 7 David Le Sage 2010-02-25 04:06:05 UTC
Please review following draft text for Resolved Issues section of the Release Notes:


https://jira.jboss.org/jira/browse/SOA-1260

    The helloworld_bridge quick start's build.xml file contained a minor error: the description
    field referred to the wrong queue (GW queue instead of Bridge queue.) This has no functional
                                                                                                 7
    impact as the messages were, in fact, being sent to the right queue but the erroneous description
    was potentially confusing and so has now been corrected.


Comment 8 Martin Vecera 2010-03-23 14:26:54 UTC
Verified in 4.3.CP03 ER1.