You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@avro.apache.org by Doug Cutting <cu...@apache.org> on 2011/09/07 00:44:48 UTC

Re: Client Thread Safety

Yes, the IPC client code should be thread-safe.  If you find it is not,
please submit a bug report.

Thanks,

Doug

On 07/20/2011 01:55 PM, Craig Landry wrote:
> Are HttpTransceiver and the object created from
> SpecificRequestor.getClient() threadsafe?
> 
> Here's an example of what I am trying to do in my client to
> communicate with the service (hosted from Tomcat):
> HttpTransceiver client = new HttpTransceiver(new
> URL("http://user.sample.com/service"));
> UserService userService =
> SpecificRequestor.getClient(UserService.class, client);
> 
> I would like to be able to have multiple concurrent threads using the
> "userService" object.  Is that safe to do?