Why Stateless session beans?

前端 未结 6 1454
谎友^
谎友^ 2020-12-03 06:09

I was reading about stateless session bean and couldn\'t understand it\'s use.

Excerpt from sun tutorial below

\"..Because stateless session beans can suppor

6条回答
  •  佛祖请我去吃肉
    2020-12-03 06:59

    Stateless object will enable you to loosely couple itself from the client and thus allows you to scale out easily.

    Stateless session beans (SLB) are server side (EJB) components which are used to abstract your business logic. Because of this very nature of stateless ness you can easily deploy your SLBs in a different container which is not running on top of the same JVM. And as per your requirement you can have one or more containers running these beans.

提交回复
热议问题