Blueprint components can access WebSphere® Application Server resource references. Each reference is declared in a Blueprint XML file, and can be secured using a Java™ Platform, Enterprise Edition (Java EE) Connector Architecture (JCA) authentication alias. Each bundle in an OSGi application can contain any number of resource reference declarations in its various Blueprint XML files.
To view this panel in the administrative console, click the following path:
When you secure resource references, those resource references can be bound only to JCA authentication aliases that exist on every server or cluster that the OSGi application is deployed to. An OSGi application can be deployed to multiple servers and clusters that are in the same security domain. Therefore, each JCA authentication alias must exist in either the security domain of the target servers and clusters, or the global security domain.
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
xmlns:rr="http://www.ibm.com/appserver/schemas/8.0/blueprint/resourcereference">
<!-- Other Blueprint declarations ... -->
<rr:resource-reference id="resourceRef"
interface="javax.sql.DataSource"
filter="(osgi.jndi.service.name=jdbc/Account)">
<rr:res-auth>Container</rr:res-auth>
<rr:res-sharing-scope>Shareable</rr:res-sharing-scope>
</rr:resource-reference>
</blueprint>
This declaration includes the resource
reference ID (for example resourceRef), the service
filter (for example jdbc/Account), the authentication
type (for example Application), and the sharing setting
(for example Shareable).<eba-bnd>
<resource-ref>
<jndi-name>jdbc/Acount</jndi-name>
<authentication-alias>Alias1</authentication-alias>
<interface>javax.sql.DataSource</interface>
<authentication>Container</authentication>
<sharing-scope>Shareable</sharing-scope>
<id>resourceRef</id>
</resource-ref>
</eba-bnd>
The non-localizable name for this bundle.
The version of this bundle.
The bundle symbolic name, together with the bundle version, identifies a unique bundle.
The ID of the resource reference as declared in the Blueprint.
The interface for this resource reference.
The name of the service filter that is the mapping target of the resource reference. For example, jdbc/AccountDS2.
The resource reference is either authenticated by the application, or by the container.
The resource reference is either shareable or non-shareable.
The authentication alias (if any) that is used for securing the resource reference.
For each reference, you can optionally select an authentication alias from the drop-down list. Default authentication aliases (from ibm-eba-bnd.xml files) are offered only if they exist on every target server or cluster.