[jboss-dev-forums] [EJB Development] - Sateful session bean in cluster environment

Chandra Shekhar do-not-reply at jboss.com
Mon Jan 23 11:30:36 EST 2012


Chandra Shekhar [https://community.jboss.org/people/ChandraRSA] created the discussion

"Sateful session bean in cluster environment"

To view the discussion, visit: https://community.jboss.org/message/648235#648235

--------------------------------------------------------------
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
[https://community.jboss.org/message/648235#648235]

Start a new discussion in EJB Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2093]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20120123/ae3d5626/attachment.html 


More information about the jboss-dev-forums mailing list