c***c 发帖数: 6234 | 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 | c*****s 发帖数: 214 | 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
| r*****l 发帖数: 2859 | 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
|
|