Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

...

Choose this template when the referenced remote home interface can be found by searching in your module's EAR (when the module is included in an EAR) or your module's <dependencies>.

Code Block
XMLXML
borderStylesolid
XML

<ejb-ref>
  <ref-name>name</ref-name>
  <ejb-link>link</ejb-link>
</ejb-ref>

...

Choose this template when the referenced remote home interface can only be found with additional selection criterion. For example, if the remote home interface name is not unique within your module's EAR (when the module is included in an EAR) or your module's <dependencies> this template will remove any ambiguity.

Code Block
XMLXML
borderStylesolid
XML

<ejb-ref>
  <ref-name>name</ref-name>
  <pattern>
    <groupId>group</groupId>
    <artifactId>artifact</artifactId>
    <version>version</version>
    <module>module</module>
    <type>type</type>
    <name>link</name>
  </pattern>
</ejb-ref>

...

Choose this template when the referenced local home interface can be found by searching in your module's EAR (when the module is included in an EAR) or your module's <dependencies>.

Code Block
XMLXML
borderStylesolid
XML

<ejb-local-ref>
  <ref-name>name</ref-name>
  <ejb-link>link</ejb-link>
</ejb-local-ref>

...

Choose this template when the referenced remote home interface can only be found with additional selection criterion. For example, if the remote home interface name is not unique within your module's EAR (when the module is included in an EAR) or your module's <dependencies> this template will remove any ambiguity.

XML
Code Block
XML
borderStylesolid
XML

<ejb-local-ref>
  <ref-name>name</ref-name>
  <pattern>
    <groupId>group</groupId>
    <artifactId>artifact</artifactId>
    <version>version</version>
    <module>module</module>
    <type>type</type>
    <name>name</name>
  </pattern>
</ejb-local-ref>

...

Use this template when the WSDL for the referenced Web service is complete. This reference will target only the ports listed.

Code Block
XMLXML
borderStylesolid
XML

<service-ref>
  <service-ref-name>name</service-ref-name>
  <!-- Repeat the port element for each port available through the reference -->
  <port>
    <port-name>portName</port-name>
    <protocol>protocol</protocol>
    <host>host</host>
    <port>port</port>
    <uri>uri</uri>
    <credentials-name>credentials</credentials-name>
  </port>
</service-ref>

...

Use this template when the WSDL for the referenced service is not complete. The elements specified here will provide the information needed to complete the WSDL.

XML
Code Block
XML
borderStylesolid
XML

<service-ref>
  <service-ref-name>name</service-ref-name>
  <service-name>service</service-name>
  <!-- Repeat the port-completion element for every port available from the reference -->
  <port-completion>
    <port>
      <port-name>portName</port-name>
      <protocol>protocol</protocol>
      <host>host</host>
      <port>port</port>
      <uri>uri</uri>
      <credentials-name>credentials</credentials-name>
    </port>
    <binding-name>binding</binding>
  </port-completion>
</service-ref>

...

Choose this template when the reference is for a URL.

XML
Code Block
XML
borderStylesolid
XML

<resource-ref>
  <ref-name>name</ref-name>
  <url>url</resource-url>
</resource-ref>

...

Choose this template when the reference is used to find a connection factory that can be found by searching in your module's EAR (when the module is included in an EAR) or your module's <dependencies>. Typically, this will be a JDBC or JMS connection factory, but it could be any connection factory from a Java EE connector with an <outbound-resourceadapter>.

Code Block
XMLXML
borderStylesolid
XML

<resource-ref>
  <ref-name>name</ref-name>
  <resource-link>link</resource-link>
</resource-ref>

...

Choose this template when the referenced connection factory can only be found with additional selection criterion. For example, if the connection factory name is not unique within your module's EAR (when the module is included in an EAR) or your module's <[dependencies> this template will remove any ambiguity.

XML
Code Block
XML
borderStylesolid
XML

<resource-ref>
  <ref-name>name</ref-name>
  <pattern>
    <groupId>group</groupId>
    <artifactId>artifact</artifactId>
    <version>version</version>
    <module>module</module>
    <type>type</type>
    <name>name</name>
  </pattern>
</resource-ref>

...

Choose this template when the reference is used to find an administered object that can be found by searching in your module's EAR (when the module is included in an EAR) or your module's <dependencies>.

XML
Code Block
XML
borderStylesolid
XML

<resource-env-ref>
  <ref-name>name</ref-name>
  <!--
  <admin-object-module>module</admin-object-module>
  -->
  <admin-object-link>link</admin-object-link>
</resource-env-ref>

...

Choose this template when the referenced administered object can only be found with additional selection criterion. For example, if the administered object name is not unique within your module's EAR (when the module is included in an EAR) or your module's <dependencies>, this template will remove any ambiguity.

Code Block
XMLXML
borderStylesolid
XML

<resource-env-ref>
  <ref-name>name</ref-name>
  <pattern>
    <groupId>group</groupId>
    <artifactId>artifact</artifactId>
    <version>version</version>
    <module>module</module>
    <type>type</type>
    <name>link</name>
  </pattern>
</resource-env-ref>

...