开发者

What's the difference between @Stateful and @SessionBean using JSF 2 and EJB 3.1?

开发者 https://www.devze.com 2023-04-11 07:31 出处:网络
开发者_如何转开发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 anno

开发者_如何转开发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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号