I am facing a problem while deploying a web app in a clustered environment in WLS 9.2
Earlier we were working with the same application in non clustered enviroment on WLS 8.1 and it worked fine.
I have a doubt related to the internal working mechanism of cluster in serving the request.
I have a stateless session bean which needs to be deployed in clustered enviroment (on two managed servers).this stateless bean creates a user thread inside the bean code in a user defined method and this thread interacts with a remote server and receives the necessary response from the server. After the respose is received instance members of this bean (stateless) which invoked the user thread are assigned the values by calling getter methods written in the thread code.
What i am able to figure out from the logs on the server is that :
when the client for this bean (stateless ) invokes the getter methods to get the response (instance members of session bean) some of the requests are handled by one managed server(MS1) and some are handled by the other managed server(MS2) of the cluster. logs clearly show that responses returned by MS1 are OK but the services handled by the MS2 returns NULL.
I am not able to understand why this instance of stateless session bean (present on MS2 due to session replication or whatever it is as i don't have any idea) is not syncronized with that present on MS1.while it clearly shows that methods are invoked (as System.out.println() gets printed )but they return NULL.
please give me your valuable inputs and some links regarding CLuster and EJBS.