站内搜索: 请输入搜索关键词

当前页面: 开发资料首页J2EE 专题请问EJB的问题??

请问EJB的问题??

摘要: 请问EJB的问题??


1.Generate the class (AcmeRemoteCart) that implements the session bean’s remote interface.The tools also generate the classes that implement the communication protocol specific artifacts for the remote interface.

2.Generate the implementation of the session bean class suitable for the Acme container(AcmeCartBean). AcmeCartBean includes the business logic from the CartBean class.mixed with the services defined in the AcmeBean class. Acme tools can use inheritance, delegation,and code generation to achieve a mix-in of the two classes.

这是规范里的两段,讲的是容器的职责方面
第一个是根据远程或本地接口生成class
第二个是根据bean class生成class
那通过home接口获得的实例是哪一个的实例???那另外一个是什么用途的呢?????


home获得远程对象的实例 另一个指什么?


只是用而已,没钻进去看,工作用不上。可能我失去上进心了。现实。


第一个是根据远程或本地接口生成class
第二个是根据bean class生成class
--------------------------------

我看规范里的说明,home接口返回的实例应该是上面的两个class中其中一个的实例
但却不知道到底是哪一个??

如果是第一个,那第二个有什么用?
如果是第二个,那第一个又什么用?

虽然只是用的话,这些的确不需要深入了解,但总是不时的想起这个问题,感觉不爽


up


home得到的是remote或localEJBOject的一个委托后的代理,你可以在class目录里看到生成的类文件,不会直接调用你列出的2个生成类的


↑返回目录
前一篇: 2.0无状态会话bean到底和有状态的有什么区别?
后一篇: 请高手介绍几本hibernet相关的书下栽