You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@avro.apache.org by Craig Landry <cr...@gmail.com> on 2011/07/20 22:55:53 UTC
Client Thread Safety
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?
Re: Client Thread Safety
Posted by Doug Cutting <cu...@apache.org>.
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?