public class RAWrapperFactory
extends java.lang.Object
Resource ref from the xml file:
<resource-ref id="ResourceRef_ID">
<description>com.ibm.ejs.models.base.resources.j2c.J2CActivationSpec</description>
<res-ref-name>ExampleResAuthName</res-ref-name>
<res-type>J2CActivationSpec</res-type>
<res-auth>Container</res-auth> <-- This could also be set to application, but for the resource ref to use it, it must be set to container
<res-sharing-scope>Unshareable</res-sharing-scope>
</resource-ref>
Bindings information from the bindings file.Constructor and Description |
---|
RAWrapperFactory() |
Modifier and Type | Method and Description |
---|---|
static javax.resource.spi.ResourceAdapter |
getRAWrapper()
This static method is called to obtain a new instance of a resource
adapter object and is the entry point for users wishing to use the
RAWrapper functionality.
|
public static javax.resource.spi.ResourceAdapter getRAWrapper()
This method will perform a java 2 security check (using the RAFactoryPermission object with the permission name getRAWrapper).
If the feature has not been enabled (by setting the server property com.ibm.wsspi.rawrapper.enabled to true) then a null will be returned.
java.security.AccessControlException
- if the calling code fails the java 2 security check