按照步骤6中说明的,将这两个方法提升为远程接口。
Promote the two methods to the remote interface as described in Step 6.
这个编译器为定义在接口中的每个支持的远程过程创建方法,并为RPC的参数生成属性。
The compiler generates a method for each supported remote procedure defined in the interface and properties for the arguments of the RPCs.
在实践上,这意味着开发人员必须通过手工编写兼容接口、处理WSDL文件甚至动态方法和自我度量,以便为远程对象创建存根。
What this means in practice is that developers create stubs for remote objects by writing compatible interfaces by hand, processing WSDL files, or even dynamic methods and introspection.
改进远程接口中相应的方法。
业务接口模式不是避免远程对象设计中不匹配的方法的唯一方法。
Note that the Business Interface pattern isn't the only way to get around mismatched methods in remote object design.
该文件提供在远程接口中定义的所有方法以及应用服务器所需的方法(例如回调方法)的实现。
This file provides an implementation of all the methods defined in the remote interface, in addition to methods required by the application server (for example, callback methods).
总的来说,OR B通过引用传递选项基本上将调用的EJB方法作为本地调用对待(甚至对于带远程接口的EJB),并避免必需的对象复制操作。
To summarize, the ORB pass by reference option basically treats the invoked EJB method as a local call (even for EJBs with remote interfaces) and avoids the requisite object copy.
例如,实现类的实用程序方法不必放在远程接口上。
For example, utility methods on the implementation class don't have to exist on the remote interface.
将下面三个“业务”方法添加到HelloWorldBean中,然后将它们提升到远程接口。
Add the following three "business" methods to the HelloWorldBean and then promote them to the remote interface.
切换到J2EEHierarchy,然后检查这个新的EJB项目,它使用远程接口中的方法verifyFundsOrder包含了一个名为 VerifyOrderPT 的会话bean。
Switch to the J2EE Hierarchy and inspect the new EJB project. It contains a session bean called VerifyOrderPT with the method verifyFundsOrder in the remote interface.
信用链接接口是一个远程服务,它的查询是通过getUrl()方法进行的。
The credit linking interface is a remote service whose lookup is made through the getUrl() method.
请注意,此远程接口并没有任何create或find方法。
Notice how this remote interface does not have any create or find methods.
将下面三个业务方法添加到HelloWorldBean中,并将它们扩展到远程接口中。
Add the following three business methods to the HelloWorldBean and then promote them to the remote interface.
位置独立性是由远程接口使用RMIover IIOP提供给无状态会话Bean或封装服务的实体home方法的。
Location independence is provided by remote interfaces using RMI over IIOP to stateless session beans or entity home methods that encapsulate the services.
把这四个方法提升为 HelloWorldSessionbean的远程接口。
Promote those four methods to the remote interface of the HelloWorldSession bean.
通过直接使用值对象,而不是反复使用bean的远程接口,我们可以将R mi通信减少到一次方法调用。
By using the value object directly, instead of repeatedly using the bean's remote interface, we can reduce our RMI traffic to a single method invocation.
当页面左侧出现CustSession远程接口的实例时,展开它直到找到它的方法。
When an instance of CustSession remote interface appears on the left side of the page, expand it see its methods.
通过注入对代理对象的引用而不是注入实际的EJB远程接口存根,Spring还可以捕获在业务方法调用过程中引发的异常。
Spring can also catch exceptions thrown during business method calls by injecting a reference to a proxy object instead of the actual EJB remote interface stub.
现在已经创建了一个接口,那么如何指定一个方法是远程的还是本地的?
Now that you have one interface, how do you specify whether the methods are remote or local? Of course, you can use an annotation.
使用PortableRemoteObject .narrow方法将返回的远程对象压缩为ejb本地接口的类型。
Use the PortableRemoteObject.narrow method to narrow the returned remote object to the type of EJB home interface.
现在我们有一个接口,那么我们如何指定某方法是远程的还是本地的?
Now that we have one interface, how do we specify whether a method is remote or local? Of course, we can use an annotation
缺省情况下,EJB远程接口上的所有方法具有TRANSACTION _ REQUIRED的事务设置(请参见10)。
By default, all methods on the EJB remote interface have a transaction setting of TRANSACTION_REQUIRED (see Figure 10).
将方法添加到了bean实现类中,但随后忘记将它添加到远程接口。
You add the method to your bean implementation class, but then forget to add it to the remote interface.
现在测试添加到Librarybean的远程接口中的方法。
Now the methods that were added to the remote interface of the Library bean can be tested.
按照如下的步骤来改进这些方法以适合于远程接口。
Follow the steps below to promote these methods to the remote interface.
这个业务方法添加在一个远程的接口中,使客户能够访问这个方法。
This business method is added to a remote interface to give clients access to this method.
对于EJB服务实现,SEI方法必须是EJB组件远程接口方法的一个子集。
For EJB service implementation, the SEI methods must be a subset of the EJB component's remote interface methods.
必须注意要确保在EJB远程实现类中实际实现了远程接口中声明的方法。
Care must be taken to ensure that methods declared in the remote interface are actually implemented in the EJB remote implementation class.
更高一层通过远程门户网站Web服务(WebServicesfor Remote Portlet,WSRP)标准或其它面向人的表示层的方法来将Web服务应用于应用程序接口中。
The next higher layer leverages Web services at the application interface through the Web services for Remote Portlet (WSRP) standard or other means at the human-facing presentation level.
remote接口是通过home接口检索得到的,为您提供了对远程对象的公共方法的访问。
The remote interface, retrieved through the home interface, gives you access to the public methods of the remote object.
应用推荐