Chuck Rolke created QPIDJMS-277:
-----------------------------------

             Summary: Examples create unused session
                 Key: QPIDJMS-277
                 URL: https://issues.apache.org/jira/browse/QPIDJMS-277
             Project: Qpid JMS
          Issue Type: Bug
          Components: qpid-jms-client
    Affects Versions: 0.21.0
         Environment: Fedora 25; ActiveMQ Artemis broker on port 5672 with 
existing queue for test.
            Reporter: Chuck Rolke


Running any example like HelloWorld produces two sessions on the connection to 
the broker. The first session consists of a Begin in each direction with no 
other traffic.

{noformat}
◊  ◊◊ 30.693893  Frame 206  127.0.0.1:49002  -> 127.0.0.1:5672  ->   init SASL 
(3): (1.0.0)
◊  ◊◊ 30.828034  Frame 208  127.0.0.1:49002 <-  127.0.0.1:5672 <-    init SASL 
(3): (1.0.0), method Method:
◊  ◊◊ 30.836368  Frame 210  127.0.0.1:49002  -> 127.0.0.1:5672  ->   method 
Method:
◊  ◊◊ 30.841047  Frame 212  127.0.0.1:49002 <-  127.0.0.1:5672 <-    method 
Method:
◊  ◊◊ 30.841534  Frame 213  127.0.0.1:49002 <-  127.0.0.1:5672 <-    init AMQP 
(0): (1.0.0)
◊  ◊◊ 30.843338  Frame 215  127.0.0.1:49002  -> 127.0.0.1:5672  ->   init AMQP 
(0): (1.0.0)
◊  ◊◊ 30.853214  Frame 216  127.0.0.1:49002  -> 127.0.0.1:5672  ->   open [0]
◊  ◊◊ 30.859039  Frame 218  127.0.0.1:49002 <-  127.0.0.1:5672 <-    open [0]
◊  ◊◊ 30.864557  Frame 219  127.0.0.1:49002  -> 127.0.0.1:5672  ->   begin 
[0,null]
◊  ◊◊ 30.880325  Frame 220  127.0.0.1:49002 <-  127.0.0.1:5672 <-    begin [0,0]
◊  ◊◊ 30.890504  Frame 221  127.0.0.1:49002  -> 127.0.0.1:5672  ->   begin 
[1,null]
◊  ◊◊ 30.893458  Frame 222  127.0.0.1:49002 <-  127.0.0.1:5672 <-    begin [1,1]
◊  ◊◊ 30.902995  Frame 223  127.0.0.1:49002  -> 127.0.0.1:5672  ->   attach 
[1,0] sender link_0 (source: endpoint_0, target: queue)
◊  ◊◊ 30.912137  Frame 224  127.0.0.1:49002 <-  127.0.0.1:5672 <-    attach 
[1,0] receiver link_0 (source: endpoint_0, target: queue), flow [1,0] (0,100)
◊  ◊◊ 30.921187  Frame 225  127.0.0.1:49002  -> 127.0.0.1:5672  ->   attach 
[1,1] receiver link_1 (source: queue, target: null)
◊  ◊◊ 30.938664  Frame 226  127.0.0.1:49002 <-  127.0.0.1:5672 <-    attach 
[1,1] sender link_1 (source: queue, target: null)
◊  ◊◊ 30.940795  Frame 227  127.0.0.1:49002  -> 127.0.0.1:5672  ->   flow [1,1] 
(0,1000)
◊  ◊◊ 30.953207  Frame 228  127.0.0.1:49002  -> 127.0.0.1:5672  ->   transfer 
[1,0] (0)
◊  ◊◊ 30.961151  Frame 230  127.0.0.1:49002 <-  127.0.0.1:5672 <-    
disposition [1] (receiver 0-0)
◊  ◊◊ 30.970108  Frame 231  127.0.0.1:49002 <-  127.0.0.1:5672 <-    transfer 
[1,1] (0)
◊  ◊◊ 30.973945  Frame 233  127.0.0.1:49002  -> 127.0.0.1:5672  ->   
disposition [1] (receiver 0-0)
◊  ◊◊ 30.976020  Frame 234  127.0.0.1:49002  -> 127.0.0.1:5672  ->   close [0]
◊  ◊◊ 30.980397  Frame 236  127.0.0.1:49002 <-  127.0.0.1:5672 <-    close [0]
{noformat}

At issue in this trace are frames 219 and 220. Session 0 is created but not 
used. Right after that Session 1 is created and HelloWorld sends its traffic 
through it.

Examples Sender and Receiver do the same thing.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to