
<?xml version="1.0"?>
<!DOCTYPE rhino-config PUBLIC
"-//Open Cloud Ltd.//DTD Rhino Config 0.5//EN"
"http://www.opencloud.com/dtd/rhino-config_0_5.dtd">
<rhino-config>
<!-- Other elements not shown here -->
<ejb-resources>
<!-- Other elements not shown here -->
<remote-ejb>
<!--
The <ejb-name> element specifies the logical name of this EJB as known to Rhino. It should
correspond to the logical name used by SBBs in their deployment descriptors to reference
the EJB.
-->
<ejb-name>external:AccountHome</ejb-name>
<!--
The <home> element identifies the Java type of the home interface of the referenced EJB
-->
<home>test.rhino.testapps.integration.callejb.ejb.AccountHome</home>
<!--
The <remote-url> element is the URL to use to obtain the remote EJB home interface from
the J2EE server. It should generally be of the form:
"iiop://serverhost:serverport/internal-server-path".
The "internal-server-path" part of the URL should correspond to the name the J2EE server
uses to identify the EJB in its CosNaming implementation.
For example, BEA Weblogic Server uses the "jndi-name" of the deployed EJB component as the
CosNaming path
-->
<remote-url>iiop://server.example.com:7001/AccountHome</remote-url>
</remote-ejb>
</ejb-resources>
</rhino-config>
When Rhino is configured in this way, the remote EJB home interface is automatically available to all SBBs under the name
specified in <
ejb-name
> tag. To obtain the interface, SBBs should declare a dependency on a EJB via the <
ejb-ref
> tags
in their deployment descriptor (
sbb-jar.xml
), using the configured EJB name as the <
ejb-link
> value.
For example, if Rhino is configured as above, an SBB could obtain and use the interface by declaring an EJB dependency in
sbb-jar.xml
:
Open Cloud Rhino 1.4.3 Administration Manual v1.1 119
Komentarze do niniejszej Instrukcji