Uploaded image for project: 'Qpid Proton'
  1. Qpid Proton
  2. PROTON-1755

How do create sessions and links dynamically once the connection is open ?

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not A Bug
    • Affects Version/s: proton-j-0.25.0
    • Fix Version/s: None
    • Component/s: proton-j
    • Labels:
      None

      Description

      Hi Proton-j folks,

      We use proton-j library for establishing a connection and sending/receiving messages over it.Until now we never had the need to add a new session or new link to an existing and opened connection. Now that we have multiplexing, we have the need to add a new session (and)/or add a new link to already existing and opened connection. My question is how do I do that ? 

      Once we start the reactor, we receive several callbacks and callbacks of importance here are

      1. onConnectionInit

      2. onConnectionBound -> we start a session

      3. onLinkInit -> we start a link

      4. onLinkRemoteOpen -> we check if link has opened

      and the connection is now established.

      Question is now that connection is opened,

      how do I add a new session to the already opened connection ?

      how do I add a new link to the already opened session ?

      Is there any such support from proton-j ? As AMQP protocol clearly should support it.

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              prmathur@microsoft.com Priyanka Mathur
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: