Oracle Fusion Middleware User Messaging Service 11.1.1.6.0 Java API Reference
E14011-04

oracle.sdp.messaging.driver
Interface DriverContext

All Superinterfaces:
Serializable

public interface DriverContext
extends Serializable

Context info passed to Driver. It provides access to the Bootstrap Context, JNDI Context and WorkManager.

Since:
11.0.0

Method Summary
 javax.resource.spi.BootstrapContext getBootstrapContext()
          Get the BootstrapContext passed to the resource adapter by the container.
 javax.naming.Context getJNDIContext()
          Get the JNDI Initial Context to perform JNDI lookups.
 MessageListener getMessageListener()
          All inbound messages received by the Driver should be delivered to this message listener's onMessage and/or onStatus callback methods.
 WorkingStateListener getWorkingStateListener()
          All working state changes should be delivered to this listener.
 javax.resource.spi.work.WorkManager getWorkManager()
          Provides a handle to a WorkManager instance.
 

Method Detail

getBootstrapContext

javax.resource.spi.BootstrapContext getBootstrapContext()
Get the BootstrapContext passed to the resource adapter by the container. The bootstrap context contains references to useful facilities that could be used by the resource adapter instance.

Returns:
returns the Bootstrap Context.

getJNDIContext

javax.naming.Context getJNDIContext()
Get the JNDI Initial Context to perform JNDI lookups.

Returns:
returns the JNDI Context.

getMessageListener

MessageListener getMessageListener()
All inbound messages received by the Driver should be delivered to this message listener's onMessage and/or onStatus callback methods.

Returns:
returns the Message Listener.

getWorkingStateListener

WorkingStateListener getWorkingStateListener()
All working state changes should be delivered to this listener.

Returns:
returns the working state listener.

getWorkManager

javax.resource.spi.work.WorkManager getWorkManager()
Provides a handle to a WorkManager instance. The WorkManager instance could be used by a resource adapter to do its work by submitting Work instances for execution.

Returns:
returns a WorkManager instance.

Oracle Fusion Middleware User Messaging Service 11.1.1.6.0 Java API Reference
E14011-04

Copyright © 2009, 2011 Oracle and/or its affiliates. All rights reserved.