RE: is the Tomcat-7 WsRemoteEndpointImplBase send methods threadsafe, or should we be synchronizing until the Future<>.get() returns?

2013-10-22 Thread Bob DeRemer
> -Original Message- > From: Mark Thomas [mailto:ma...@apache.org] > Sent: Tuesday, October 22, 2013 3:32 AM > To: Tomcat Users List > Subject: Re: is the Tomcat-7 WsRemoteEndpointImplBase send methods > threadsafe, or should we be synchronizing until the Future<>

RE: is the Tomcat-7 WsRemoteEndpointImplBase send methods threadsafe, or should we be synchronizing until the Future<>.get() returns?

2013-10-22 Thread Bob DeRemer
> -Original Message- > From: Niki Dokovski [mailto:nick...@gmail.com] > Sent: Tuesday, October 22, 2013 1:11 AM > To: Tomcat Users List > Subject: Re: is the Tomcat-7 WsRemoteEndpointImplBase send methods > threadsafe, or should we be synchronizing until the Futu

Re: is the Tomcat-7 WsRemoteEndpointImplBase send methods threadsafe, or should we be synchronizing until the Future<>.get() returns?

2013-10-22 Thread Mark Thomas
On 22/10/2013 00:28, Bob DeRemer wrote: > I'm trying to understand how Tomcat's outbound message processing > works with respect to making multiple (concurrent) calls against a > single RemoteEndpoint.Async using sendText/sendObject. Based on the > ExecutionExceptions we got (see below), it seems

Re: is the Tomcat-7 WsRemoteEndpointImplBase send methods threadsafe, or should we be synchronizing until the Future<>.get() returns?

2013-10-21 Thread Niki Dokovski
On Tue, Oct 22, 2013 at 3:29 AM, David Bullock < david.bull...@machaira.com.au> wrote: > Hi Bob, > > > I tried searching the javadocs of RemoteEndpoint.Async and associated > interfaces, but could not find anything describing the threadsafe nature > (existing or not). It appears that the spec let

Re: is the Tomcat-7 WsRemoteEndpointImplBase send methods threadsafe, or should we be synchronizing until the Future<>.get() returns?

2013-10-21 Thread David Bullock
Hi Bob, > I tried searching the javadocs of RemoteEndpoint.Async and associated > interfaces, but could not find anything describing the threadsafe nature > (existing or not). It appears that the spec lets the implementation > determine how to handle stuff under the covers. This is fine, but

is the Tomcat-7 WsRemoteEndpointImplBase send methods threadsafe, or should we be synchronizing until the Future<>.get() returns?

2013-10-21 Thread Bob DeRemer
I'm trying to understand how Tomcat's outbound message processing works with respect to making multiple (concurrent) calls against a single RemoteEndpoint.Async using sendText/sendObject. Based on the ExecutionExceptions we got (see below), it seems that we should probably synchronize sends un