[jboss-user] [EJB 3.0] - Re: SLSB basic design question

vanyatka do-not-reply at jboss.com
Mon Aug 18 13:00:57 EDT 2008

"ALRubinger" wrote : SLSBs *do* have state, as the instance is returned to the Pool after use.  Therefore invocation-specific data should not be kept in instance members of a SLSB. 

Thanks, Andrew. This makes good sense. However, if I only run one single facade method, and previous old state doesn't bug me (all variables are re-initialized before used), can such "temporal" use of fields be justified?

Imagine I have a chain of methods inside a SLSB.
a calls b, b calls c, c calls d, etc.

Facade method receives a parameter. I need to use that parameter down the chain of execution. Should I put that parameter in each method declaration? Ouch ... Doesn't look very appealing, don't you think?

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

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

More information about the jboss-user mailing list