true if the resource could be enlisted with
this transaction, otherwise false.

Throws:

javax.transaction.RollbackException - If the transaction is marked for rollback
only.

java.lang.IllegalStateException - If the transaction is in a state
where resources cannot be enlisted. This could be because the
transaction is no longer active, or because it is in the
prepared state.

javax.transaction.SystemException - If the transaction service fails in an
unexpected way.

javax.transaction.RollbackException - If the transaction is marked for rollback
only.

java.lang.IllegalStateException - If the transaction is in a state
where Synchronization callbacks cannot be registered.
This could be because the transaction is no longer active,
or because it is in the
prepared state.

javax.transaction.SystemException - If the transaction service fails in an
unexpected way.