Does your bean contain references to any objects that are not serializable?
I have seen this problem before when I cached a reference to a JCA connection factory in my bean.
show your jboss.xml, you have to set:
Of course. I have written all the clustered tag!!! <clustered>True</clustered> and all the <cluster-config> too, I have tried all the possibilities, but it doesn't works.
I only have an Integer, but I have tried with an String (both of them are serializable!! I think!), nevetherless, the problem is in a clustered environment, not in a normal conf. of jboss
With the jboss 3.2.1 it works!!!!! But If I create the EJB. And I use them, but then the server crahses, If I want to reutilise them, it doesn't work.
I think that it must work because the state it must be replicated, no?
Each time you say:
- it doesn't work
- it crashes
please give details, stacktraces, thread dumps, logs, etc. I cannot guess. Which OS/JVM/etc.
The bug is in your jboss.xml: you are explicitely using the container configuration "Standard Stateful SessionBean". Either remove this line or use "Clustered Stateful SessionBean"
Post your cluster-service.xml, jboss.xml, jboss-servive.xml and farming-service.xml.
We can give you a solution at the latest.