on 05-04-2011 3:39 PM
Hi,
I have a CustomAdapterModule being used in many differents interfaces.
In interface A the module will implement a Class A and in interface B, the same module implements Class B for message transformation.
There's seems to be some concurrency problems where Class B is loaded for interface A when both interface (A&B) are executed in parallel.
Anyone experienced that kind of behaviour?
Does a new instance of the Custom Adapter Module is instantiated for each message or is it reused?
I don't store values in any static variable. I was wondering if I should use thread-safe variable type inside the process() method?
i deal mainly with String for configuration parameters. Could go for StringBuffer, at some performance cost.
I would appreciate if someone can point to documentation on Adapters Module behaviors' in concurrency/threading env.
Thanks,
Martin
I had a method calling another method and using instance variable in the class.
since the Adapter Module is a stateless session bean, you have no guarantee that the functions will be called inside the same bean, therefore all variables must be passed as argument between methods.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.