此内容没有您所选择的语言版本。

13.6.2. EJBProcessor


Expand
Input Type EJB method name and parameters
Output Type EJB specific object
Class org.jboss.soa.esb.actions.EJBProcessor
Takes an input Message and uses the contents to invoke a Stateless Session Bean. This action supports EJB2.x and EJB3.x.
Expand
Table 13.16. EJBProcessor Properties
Property Description Required
ejb3
When calling to an EJB3.x session bean.
ejb-name
The identity of the EJB. Optional when ejb3 is true.
jndi-name
Relevant JNDI lookup.
initial-context-factory
JNDI lookup mechanism.
provider-url
Relevant provider.
method
EJB method name to call.
lazy-ejb-init
Whether EJBs should be lazily initialised at runtime rather than at deploy time. Default is false.
No
ejb-params
The list of parameters to use when calling the method and where in the input Message they reside.
esb-out-var
The location of the output. Default value is DEFAULT_EJB_OUT.
No

Example 13.11. Sample Configuration for EJB 2.x

<action name="EJBTest" class="org.jboss.soa.esb.actions.EJBProcessor">
    <property name="ejb-name" value="MyBean" />
    <property name="jndi-name" value="ejb/MyBean" />
    <property name="initial-context-factory" value="org.jnp.interfaces.NamingContextFactory" />
    <property name="provider-url" value="localhost:1099" />
    <property name="method" value="login" />
    <!-- Optional output location, defaults to "DEFAULT_EJB_OUT"
    <property name="esb-out-var" value="MY_OUT_LOCATION"/> -->
    <property name="ejb-params">
    <!-- arguments of the operation and where to find them in the message -->
        <arg0 type="java.lang.String">username</arg0>
        <arg1 type="java.lang.String">password</arg1>
    </property>
</action>
Copy to Clipboard Toggle word wrap

Example 13.12. Sample Configuration for EJB 3.x

<action name="EJBTest" class="org.jboss.soa.esb.actions.EJBProcessor">
    <property name="ejb3" value="true" />
    <property name="jndi-name" value="ejb/MyBean" />
    <property name="initial-context-factory" value="org.jnp.interfaces.NamingContextFactory" />
    <property name="provider-url" value="localhost:1099" />
    <property name="method" value="login" />
    <!-- Optional output location, defaults to "DEFAULT_EJB_OUT"
    <property name="esb-out-var" value="MY_OUT_LOCATION"/> -->
    <property name="ejb-params">
        <!-- arguments of the operation and where to find them in the message -->
        <arg0 type="java.lang.String">username</arg0>
        <arg1 type="java.lang.String">password</arg1>
    </property>
</action>
Copy to Clipboard Toggle word wrap

返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2025 Red Hat