Unfortunately, it doesn't look like you can configure the underlying ProtocolConverter for STOMP in a WebSocket transport. Can you open a JIRA? Patches are also welcome. Take a look at
org.apache.activemq.transport.ws.StompServlet org.apache.activemq.transport.ws.StompSocket and the org.apache.activemq.transport.stomp.ProtocolConverter class which needs to know about the defaultHeartBeat. Cheers... On Wed, Apr 17, 2013 at 1:52 AM, Niels <[email protected]> wrote: > Hey there, > > I'm configuring a websocket transport connector and I'm would like to know > how I could set the heartbeat times for that connector. > > I found a post mentioning I could configure it with the > transport.defaultHeartBeat in the stomp connector. > Like this: > > <transportConnector name="stomp" > uri="stomp://0.0.0.0:61613?transport.defaultHeartBeat=10000,0"/> > <transportConnector name="websocket" uri="ws://0.0.0.0:61614"/> > > But I doesn't work properly. > I also could find any documentation regarding this topic. Is there anybody > who could point me in the right direction? > > This is the raw request and response from the server. > > CONNECT > accept-version:1.1,1.0 > heart-beat:10000,10000 > ---------------- > CONNECTED > heart-beat:0,0 > session:ID:MBP.local-50034-1366184896743-12:15 > server:ActiveMQ/5.7.0 > version:1.1 > > As you can see the response is always: "heart-beat:0,0". While I asked for > a > heartbeat 10000,10000. > > I'm using AMQ 5.7 with ServiceMix 4.5.1 at the moment. > > Regards, > > Niels > > > > > -- > View this message in context: > http://activemq.2283324.n4.nabble.com/Configure-Socket-transport-connector-tp4665986.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > -- *Christian Posta* http://www.christianposta.com/blog twitter: @christianposta
