Priyanka Mathur commented on PROTON-1755:

My concern with creating new sessions dynamically is that, we never get 
onConnectionBound -> where we start a session on the existing connection once 
connection is established. Is there a sample or some piece of code that 
explains how to use the reactor so that we can create a new session on demand ?

[I'm not sure if this is the right group to message these kind of questions to. 
If not can you forward it to appropriate group ?]


> 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 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.

This message was sent by Atlassian JIRA

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

Reply via email to