qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robbie Gemmell (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (PROTON-1755) How do create sessions and links dynamically once the connection is open ?
Date Fri, 02 Feb 2018 18:04:00 GMT

     [ https://issues.apache.org/jira/browse/PROTON-1755?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Robbie Gemmell closed PROTON-1755.
    Resolution: Not A Bug

As mentioned before, please use the mailing lists for questions, not the issue tracker.

You would add any new sessions/links in essentially the same manner as you added previous
ones, and the event flow would be interweaved for the different sessions/links based on what
happens on the wire.

The main concern is just that, like every other use of the reactor, youd need to do it on
the thread running the reactor, e.g by calling the reactor wakeup and having an onReactorQuiesced
handler somewhere able to pick up the task of doing the new work, or having your own timer
task that picks it up, or your own selectable thing, etc.

> How do create sessions and links dynamically once the connection is open ?
> --------------------------------------------------------------------------
>                 Key: PROTON-1755
>                 URL: https://issues.apache.org/jira/browse/PROTON-1755
>             Project: Qpid Proton
>          Issue Type: Bug
>          Components: proton-j
>    Affects Versions: proton-j-0.25.0
>            Reporter: Priyanka Mathur
>            Priority: Major
> 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
> 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.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org

View raw message