Results 1 to 2 of 2

Thread: HttpInvoker Thread Safety

  1. #1
    Join Date
    Jul 2006
    Posts
    1

    Default HttpInvoker Thread Safety

    Hi,

    Does anyone know of any thread safety issues regarding the use of Http Invoker either on the client or server side? I am using a HttpInvokerProxyFactoryBean in a multi-threaded Servlet environment. I discovered that the HttpInvokerProxyFactoryBean uses a singleton meaning I will be using the same Proxy Instance in multiple threads, possibly concurrently. Is this an issue? Should I provide my own synchronization.

    Thanks,
    Jim

  2. #2
    Join Date
    Nov 2004
    Location
    Hilversum - The Netherlands
    Posts
    1,054

    Default

    In most cases concurrent calls are not an issue. You can add your own synchronisation if you have shared state (if you keep data that is shared between threads). But in most cases you can let the (database)transaction worry about all the isolation problems (this is handy if you have no shared state: a stateless server).

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •