然后,别忘了使这两个方法成为本地接口。
Then, don't forget to promote these two methods to the local interface.
当本地接口用在相同的JVM中时,性能是最优的。
Performance is the best when local interfaces are used within the same JVM.
我们能够利用ejb本地接口作为提高性能的方法。
We are able to take advantage of EJB local interfaces as a means of enhancing performance.
EJ b组件将公开远程接口和本地接口。
这里比较一下代理和对无状态bean本地接口的引用。
Compare the proxy to a reference to a stateless session bean's local interface.
这需要部署描述符、bean类以及更新过的本地接口。
This requires that the deployment descriptor, bean class, and local interface get updated.
为了性能的优化,可以将一个本地接口添加到会话Facade。
For performance optimization, a local interface can be added to the session facade.
您也可以将此模式用于远程和本地接口(两者都继承了业务接口)。
You can also use remote and local interfaces (both extending the business interface) with this pattern.
EJB 3.0引入了业务接口概念,而非单独的远程和本地接口。
EJB 3.0 introduces the notion of a business interface, rather than separate remote and local interfaces. An example of this is shown below.
作为迁移过程的一部分,您可以为现有的企业bean添加本地接口。
As part of the migration process, you can add local interfaces to existing enterprise beans.
EJBWeb服务可以模型化为本地接口而不是远程接口。
The EJB web services can be modeled as local rather than remote interfaces.
EJB 2.0通过添加一个可选的本地接口解决此问题,如清单3所示。
EJB 2.0 solved this problem by adding an optional local interface, as seen in Listing 3.
TestLocal——通过查找EJB引用来调用会话Bean本地接口。
TestLocal — Calls the session bean local interface via lookup of EJB reference.
ejb本地接口(从ejb 2.0规范开始使用)为共存的EJB提供了性能优化方法。
EJB local interfaces, introduced as part of the EJB 2.0 specification, provide performance optimization for co-located EJBs.
您具有了home接口和远程接口,以及本地接口和本地home接口,还有一个实现类。
You've got home and remote interfaces, along with the possibility of local and local home interfaces, as well as an implementation class.
使用EJB 本地接口创建或提取EJB的实例,与服务器端的 EJB编程方法一样
Use the EJB home interface to create or fetch instances of EJBs, in the same manner as server-side EJB programming
该属性告诉XDoclet在会话bean的本地接口、远程接口或两种接口中生成相应方法。
This tells XDoclet to generate the appropriate methods in the local interface, remote interface, or both interfaces for the session bean.
你应该停止创建这样的远程api:对你使用的同样的本地接口进行简单的重新打包。
You must stop creating remote APIs that are simply a repackaging of the same local interfaces that you use.
SCA部署逻辑和绑定实现将对引用接口类进行自检,以确定是本地接口还是远程接口。
SCA deployment logic and the binding implementation will introspect the reference interface class to determine whether it is local or remote.
下一步是对本地接口进行编码,这部分留给您,作为一个练习(只需按照示例使用远程接口即可)。
The next step is to code your local interface, which I'll leave as an exercise for you (just use the remote interface as your working example).
如果性能很重要,可以通过EJB的本地接口访问它们(按引用调用),除非拓扑要求进行远程访问。
If performance is important, you can access the EJBs via their local interface (call-by-reference), unless your topology requires remote access.
精简客户端可以给分布式团队更大的灵活性及可移动性,但是也许不能支持工具所有的本地接口特性。
Thin clients can give distributed teams more flexibility and mobility, but may not support all the features of a tool's native interface.
在调用EJB对象的远程或本地接口时,通过参数传递 RequestContext对象。
When calling the remote or local interfaces of EJB objects, it passes the RequestContext object as a parameter.
该配置仍然安全,因为应用程序CMPEJB只提供了本地接口,因此只能从同一ejb容器中访问。
This configuration is still secure, because application CMP EJBs provide only local interfaces and, therefore, can only be accessed from the same EJB container.
如果Web应用程序组件和EJB组件通过不同的类加载器来加载,那么EJB组件的本地接口是不能使用的。
If the Web application component and the EJB component are loaded by means of separate class loaders, then the local interfaces of the EJB components cannot be used.
本地接口必须被您的应用程序显式地进行访问,这需要代码的改变和防止以后配置EJB时需要应用程序的改变。
Local interfaces must be explicitly called by your application, requiring code changes and preventing the ability to later distribute the EJB without application changes.
我确实只需要一个指示器,可以是JNDI名称或者注释,就可以知道该接口是本地接口还是远程接口。
I really only need one indicator, be it a JNDI name or an annotation, to let me know if it is local or remote.
分布ejb组件的核心是能够将bean的实现(由bean类表示)与其接口(由远程或本地接口表示)分开。
Core to distributing EJB components is the ability to separate a bean's implementation (represented by a bean class) from its interface (represented by a remote or local interface).
作为外观的会话Bean将通过其本地接口访问实体Bean,从其收集数据,然后将此信息返回发出调用的应用程序。
Instead, session beans acting as facades can access entity beans via their local interfaces, gather data from them, and then return this information to the calling application.
我想,我真正想问的是:您在建议使用实体e JB组件的本地接口时,从实体cmp返回d TO是否是在“喊狼来了”?
I guess my real question boils down to this: isn't it "crying Wolf" to return DTOs from entity CMPs when you recommend using local interfaces to entity EJB components anyway?
应用推荐