[jboss-user] [JBoss Seam] - Re: SFSB vs. JavaBean
pete.muir@jboss.org
do-not-reply at jboss.com
Fri Jan 25 05:03:05 EST 2008
@Name @Stateful (default scope is conversation)
@Name @Stateless (default scope is event, but the bean is truly stateless)
@Name (default scope is event)
anonymous wrote : If I put just @Name, it's a POJO, and you're saying it's request scoped?
Yes.
anonymous wrote : This still doesn't fully answer the question. Most things can be done with POJOs. For example most beans aren't message-driven. For many simple things there is no performance benefit to clustering beans. So, should we be using EJBs or POJOs? POJOs have a benefit of simplicity: no need to write an interface.
You've summed up the arguements well, and so can now make an informed decision for which to use ;)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123371#4123371
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123371
More information about the jboss-user
mailing list