Redian新闻
>
Difference btw EJBLocalHome and EJBHome?
avatar
Difference btw EJBLocalHome and EJBHome?# Java - 爪哇娇娃
c*c
1
I am a new EJB programmer. I read some sample codes
Why in EJB web services, EJBLocalHome is used and pure EJB servlet uses
EJBHome as interface?
Thank you for all your commens
avatar
c*s
2

一般Home就行了,工作在远程(Servlet, JSP)这头。本地(EJB的Container这边)如果你
也想用它就通过LocalHome。

【在 c***c 的大作中提到】
: I am a new EJB programmer. I read some sample codes
: Why in EJB web services, EJBLocalHome is used and pure EJB servlet uses
: EJBHome as interface?
: Thank you for all your commens

avatar
r*l
3
You should know the pros and cons of local and remote interfaces, right?
In the WS case, the beans needed are local, i.e. in same JVM.
In the servlet case, the servlet container and application server may
run in different JVMs. It's also possible that they are in one JVM but
the developer plan to seperate them together, or they just like remote
interface.

【在 c***c 的大作中提到】
: I am a new EJB programmer. I read some sample codes
: Why in EJB web services, EJBLocalHome is used and pure EJB servlet uses
: EJBHome as interface?
: Thank you for all your commens

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。