对本地服务调用的数据交换语义按引用调用。
The data exchange semantic for calls to local services is by-reference.
True会在通过服务引用调用组件之前挂起当前全局事务。
True suspends the current global transaction before invoking a component via a service reference.
应该用变量的引用调用increment函数,而不是使用变量的值。
The increment function should be called with a reference to the variable instead of the value of the variable.
True 会在通过服务引用调用组件之前挂起当前活动会话(如果存在)。
True suspends the current activity session (if present) before invoking a component via a service reference.
当使用引用调用同一个模块内的服务组件时,数据通过引用进行传递。
When invoking service components synchronously within a module using the reference, the data is passed by-reference.
False(缺省值)指示运行时在通过服务引用调用组件之前不要挂起全局事务。
False (default) instructs the runtime not to suspend a global transaction before invoking a component via a service reference.
将清单9中所示的对象引用调用为变量将自动调用__invoke魔术方法,使类本身用作闭包。
Calling the object reference shown in Listing 9 as a variable automatically calls the __invoke magic method, making the class itself act as a closure.
如果性能很重要,可以通过EJB的本地接口访问它们(按引用调用),除非拓扑要求进行远程访问。
If performance is important, you can access the EJBs via their local interface (call-by-reference), unless your topology requires remote access.
False(缺省值)指示运行时在通过服务引用调用组件之前不要挂起任何处于活动状态的活动会话。
False (default) instructs the runtime not to suspend any active activity session before invoking a component via a service reference.
SCAWeb服务绑定用于定义服务作为Web服务提供的方式以及使用引用调用Web服务的方式。
The SCA Web service binding defines the manner in which a service can be made available as a Web service, and the manner in which a reference can be made to invoke a Web service.
可以通过周期性地扫描Map,对每一个弱引用调用get,并在get返回null时删除那个映射而消除死映射。
Dead mappings could be eliminated by periodically scanning the map, calling get on each weak reference, and removing the mapping if get returns null.
笔者系统地分析了函数参数传递中值调用和引用调用以及函数值返回和引用返回的本质,并举例进行了说明。
The paper makes in-depth analysis about essence of call by values and call by references, return by value and return by reference, also explains these through some examples.
将这些属性设置为调用组件的引用限定符。
These properties are set as reference qualifiers of the calling component.
因为隐式对象是自动声明的,所以我们只需要使用与一个给定对象相关的引用变量来调用其方法。
Because implicit objects are declared automatically, we need only use the reference variable associated with a given object to begin calling methods on it.
目标页使用此信息来创建一个完整状态的引用来调用页对象。
The target page USES this information in order to build a stateful reference to the calling page object.
一种方式是显式地将名称空间引用为调用的前缀。
One way is to explicitly reference the namespace as a prefix to the call.
要求您永远不要忘记调用引用计数函数。
It requires that you never forget to call the reference counting functions.
您的实现应该调用引用。
组件使用者定义了引用来指向需要调用的函数,无需指定目标组件、实现技术或者访问它们所使用的协议。
Component consumers define references to target the functions they need to invoke without specifying target components, implementation technology or the protocol used to access them.
不可变属性的存取器将总是具有值引用,因而调用的任何一方都不需要防御性复制,这使得它们效率更高。
Accessors for immutable properties will always have value semantics and do not need the defensive copying on either side of the call, making them more efficient.
请记下合作伙伴引用名称;在测试调用服务时将用到此名称。
Take a note of the Partner Reference name; you will need this when your test invokes the service.
它还可以导入引用的服务以进行调用。
对调用组件的引用是用 SCDL 表示的,如下所示
A reference is represented in SCDL on the calling component as shown below
thisVar:调用类的引用。
在SCA关系图中,调用的引用连接到带有Web服务绑定的导入。
In the SCA diagram, the reference for the invoke is wired to an import with Web services binding.
创建一个新的唱片,获得唱片服务的引用,然后调用服务的addAlbum()方法。
You create a new album, get a reference to the album service, and then invoke that service's addAlbum() method.
在业务流程被执行时,这个固定服务引用可用来调用Web服务。
When the business process is being carried out, this fixed service reference is used to invoke the web service.
Lookup——查找数据源引用,然后调用会话Bean来查找同一引用。
Lookup — Looks up a datasource reference and then calls a session bean to lookup the same reference.
在本系列早些时候,我们解释了一个组件实现使用引用来调用另一个组件。
Early on in this series, we explained that a component implementation calls another component using a reference.
一个闭包封闭了这些引用,所以函数调用可以安全的引用这些变量,即使它们已经超出了函数的作用域。
A closure "closes around" these references, so the function invocation can safely refer to the variables even when the variables have gone out of scope!
应用推荐