JBoss Community

Sateful session bean in cluster environment

created by Chandra Shekhar in EJB Development - View the full discussion

Hi there,

 

I need suggestion during Statful Session Bean implementation in cluster enviroment.

 

My questions are,

1. Is mandatory to implements java.io.Serializable when develop Sateful session bean?

 

public class MySessionBean
    implements SessionBean {
       public void ejbActivate() {}

       private SessionContext ctx;
       public void ejbRemove() {}

       public void ejbPassivate() {}

       public void setSessionContext(SessionContext ctx) {
         this.ctx = ctx;
       }

       public void ejbCreate() throws CreateException {}

}

 

2. what steps has to be performed If stateful session bean is not replicated in cluster enviornment either coding prospective or server side.

Reply to this message by going to Community

Start a new discussion in EJB Development at Community