Top Description Methods
javax.resource.spi

public Interface ResourceAdapterAssociation

Known Direct Subinterfaces
javax.resource.spi.ActivationSpec
Imports
javax.resource.ResourceException

This interface specifies the methods to associate a ResourceAdapter object with other objects that implement this interface like ManagedConnectionFactory and ActivationSpec.
Author
Ram Jeyaraman
Version
1.0

Method Summary

Modifier and TypeMethod and Description
public ResourceAdapter

Returns:

the associated ResourceAdapter object.
getResourceAdapter
()

Get the associated ResourceAdapter object.

public void
setResourceAdapter(ResourceAdapter
ResourceAdapter object to be associated with.
ra
)

Associate this object with a ResourceAdapter object.

Method Detail

getResourceAdapterback to summary
public ResourceAdapter getResourceAdapter()

Get the associated ResourceAdapter object.

Returns:ResourceAdapter

the associated ResourceAdapter object.

setResourceAdapterback to summary
public void setResourceAdapter(ResourceAdapter ra) throws ResourceException

Associate this object with a ResourceAdapter object. Note, this method must be called exactly once. That is, the association must not change during the lifetime of this object.

Parameters
ra:ResourceAdapter

ResourceAdapter object to be associated with.

Exceptions
ResourceException:
generic exception.
ResourceAdapterInternalException:
resource adapter related error condition.
IllegalStateException:
indicates that this object is in an illegal state for the method invocation. For example, this occurs when this method is called more than once on the same object.