@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

_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to