You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by diegoc <di...@hotmail.com> on 2013/02/22 15:46:42 UTC

Java Stomp client - connection and session handling

Hi there

I am using this Stomp client:
http://grepcode.com/project/repo1.maven.org/maven2/org.fusesource.stompjms/stompjms-client/

I have seen in the code and in the apache logs that for each session a new
physical connection is created to the apollo server.

My idea was to have one shared connection (or a pool) and then multiple
sessions to avoid so many connection start's and close's.

I tried with one shared session and several producers and it was slower than
creating a new session each time.

Does anyone know how to avoid the creation of a physical connection for each
session?

Thanks in advance
Diego



--
View this message in context: http://activemq.2283324.n4.nabble.com/Java-Stomp-client-connection-and-session-handling-tp4663929.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Java Stomp client - connection and session handling

Posted by Hiram Chirino <hi...@hiramchirino.com>.
Hi Diego,

So ActiveMQ has a JMS API wrapper that can under the covers proxy the
sessions from the wrapped connection.  Perhaps we should try to port that
to work with stompjms too.


On Fri, Feb 22, 2013 at 9:46 AM, diegoc <di...@hotmail.com> wrote:

> Hi there
>
> I am using this Stomp client:
>
> http://grepcode.com/project/repo1.maven.org/maven2/org.fusesource.stompjms/stompjms-client/
>
> I have seen in the code and in the apache logs that for each session a new
> physical connection is created to the apollo server.
>
> My idea was to have one shared connection (or a pool) and then multiple
> sessions to avoid so many connection start's and close's.
>
> I tried with one shared session and several producers and it was slower
> than
> creating a new session each time.
>
> Does anyone know how to avoid the creation of a physical connection for
> each
> session?
>
> Thanks in advance
> Diego
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/Java-Stomp-client-connection-and-session-handling-tp4663929.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>



-- 

**

*Hiram Chirino*

*Engineering | Red Hat, Inc.*

*hchirino@redhat.com <hc...@redhat.com> | fusesource.com | redhat.com*

*skype: hiramchirino | twitter: @hiramchirino<http://twitter.com/hiramchirino>
*

*blog: Hiram Chirino's Bit Mojo <http://hiramchirino.com/blog/>*