[jboss-user] [JBoss Seam] - BookingListAction SFSB and Serializable interface

asookazian do-not-reply at jboss.com
Wed Nov 14 14:50:07 EST 2007


@Stateful
  | @Scope(SESSION)
  | @Name("bookingList")
  | @Restrict("#{identity.loggedIn}")
  | @TransactionAttribute(REQUIRES_NEW)
  | public class BookingListAction implements BookingList, Serializable

According to JSR 220:

"The session bean class is not required to implement the SessionBean interface or the Serializable interface. Interceptor classes for the bean are likewise not required to implement the Serializable interface."
pg. 68

So why does the BookingListAction SFSB implement the Serializable interface?  What effect does it have to do that (or not)?

Also, the JSR states:

“Declaring the session bean’s fields as transient is, in general, discouraged”
Pg. 65 – JSR 220

What's the reason?

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

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




More information about the jboss-user mailing list