Announcement Announcement Module
Collapse
No announcement yet.
HttpInvoker Thread Safety Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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).

    Comment

    Working...
    X