I am using the JBoss 4.1 version to test the clusteing my EJB components. I am 
pleasently surprised to see most of the things working out of the box(Infact at 
times i doubt whether i am seeing the right thing). 

My concern is whether JBoss supports the concept of idempotency. Currently, i 
have clustered a stateful session bean and the moment i crash one instance (say 
CTRL-C) the other instance picks up the invocation, start from scratch and 
completes the invocation (without returning a RemoteException to the client). 
Now the issue is if the CTRL-C was done just after the bean had completed its 
operation (including the DB activity) and before it was replying back to the 
client the other instance re-executes the invocation which would mean redoing 
the activity twice.
  My expectation was that it will re-execute if it is marked as idempotent 
only. Is JBoss marking all the methods as idempotent by default. If yes then 
how to configure it otherwise.

The second issue is that i have a stateful session bean. Now the failover for 
this bean is executing without me specifying the state replication mechanism in 
the jboss.xml (regarding the /HASessionState/Default). Additionally, i was 
trying to check the failover when the call is inside a method (for which i have 
induced SLEEP within the method). To test the same i disconnected the network 
cable (to simulate network failure) from the instance where the call was being 
serviced and the client endlessly waited for something to happen, can someone 
tell me how to specify the SFSB timeout for the client so that it doesn't wait 
endlessly.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3909046#3909046

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3909046


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to