Oracle Fusion Middleware
Oracle WebLogic Server API Reference
11g Release 1 (10.3.4)

Part Number E13941-04

weblogic.connector.extensions
Interface ExtendedBootstrapContext


public interface ExtendedBootstrapContext

This class provides WebLogic extensions to the standard javax.resource.spi.BootstrapContext. Any customer wishing to access these features simply needs to cast the BootstrapContext received on the ResourceAdapter bean .start() method to ExtendedBootstrapContext


Method Summary
 void complete()
          To be called by RA when all activity has quiesced and it is safe to undeploy the adapter.
 String getDiagnosticContextID()
           
 byte getDyeBits()
          Sets the low-order 4 bits as a "dye" on the current thread.
 void setDiagnosticContextID(String id)
          Sets the specified String in the Diagnostic Context payload associated with the current Thread.
 void setDyeBits(byte bits)
          Sets the low-order 4 bits as a "dye" on the current thread.
 

Method Detail

setDiagnosticContextID

void setDiagnosticContextID(String id)
Sets the specified String in the Diagnostic Context payload associated with the current Thread. This can be used to trace client requests all the way through the system from inbound messages coming in on a proprietary mechanism in the resource adapter.

Parameters:
String - the id to set in the diagnostic context payload

getDiagnosticContextID

String getDiagnosticContextID()
Returns:
String the diagnostic payload id set on the current thread or null if not set.

setDyeBits

void setDyeBits(byte bits)
                throws ResourceException
Sets the low-order 4 bits as a "dye" on the current thread. Can be used to mark the thread ala the Diagnostic Framework request dyeing.

Parameters:
bits - -- the bits to set as the "dye"
Throws:
ResourceException

getDyeBits

byte getDyeBits()
                throws ResourceException
Sets the low-order 4 bits as a "dye" on the current thread. Can be used to mark the thread ala the Diagnostic Framework request dyeing.

Returns:
the bits set as the "dye" on the current thread
Throws:
ResourceException

complete

void complete()
To be called by RA when all activity has quiesced and it is safe to undeploy the adapter.


Copyright 1996, 2010, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

Oracle Fusion Middleware
Oracle WebLogic Server API Reference
11g Release 1 (10.3.4)

Part Number E13941-04