javax.resource.spi
Interface BootstrapContext


public interface BootstrapContext

Used to pass context to the resource adapter start(BootstrapContext) method.


Method Summary
 Timer createTimer()
          Creates a new Timer that can be used to perform period work.
 WorkManager getWorkManager()
          Get the work manager, the resource adapter should use this for all work on new threads.
 XATerminator getXATerminator()
          Get the XATerminator.
 

Method Detail

createTimer

Timer createTimer()
                  throws UnavailableException
Creates a new Timer that can be used to perform period work.

Returns:
the timer instance
Throws:
UnavailableException - when not timer is available. It can be retried later.

getWorkManager

WorkManager getWorkManager()
Get the work manager, the resource adapter should use this for all work on new threads.

Returns:
the work manager

getXATerminator

XATerminator getXATerminator()
Get the XATerminator. The resource adapter should use this to gain access to the transaction and crash recovery.

Returns:
the XATerminator


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.