开发者_如何转开发They seen really a lot alike.
I know one is a View and one is a EJB but the behavior is almost identical as far as I can see.
I think you are confused somewhere. There isn't any annotation called @SessionBean
in either JSF 2.1 or EJB 3.1.
There is an interface by that name, but it's old, deprecated and you should forget it ever existed.
If you meant a @SessionScoped
@ManagedBean
vs a @Stateful
bean, then the link CoolBeans posted should provide some context.
精彩评论