# com.bea.control
ServiceControl.Callback Interface

public static interface ServiceControl.Callback

Provides a way for the Service control to pass callback events to its clients.

Enclosing interface
  `ServiceControl`

## Method Summary

`public void` | `onAsyncFailure`(`String` methodName, `Object`[] argv) Received when a service control's JCX file has a method marked with the annotation `message-buffer enable="true"`, and an exception occurs when trying to call out.
`public void` | `onDeliveryFailure`(`String` messageID, `String` methodName, `String` faultCode, `String` faultDetail) Received on failure of a method's attempt to send a message for reliable delivery.

## Method Detail

### onAsyncFailure(String, Object[]) Method

    public void onAsyncFailure(String methodName,
                               Object[] argv)

Received when a service control's JCX file has a method marked with the annotation `message-buffer enable="true"`, and an exception occurs when trying to call out.

#### Parameters

methodName
  The Service control method from which the exception was thrown.

argv
  The Service control method's parameters.

### onDeliveryFailure(String, String, String, String) Method

    public void onDeliveryFailure(String messageID,
                                  String methodName,
                                  String faultCode,
                                  String faultDetail)

Received on failure of a method's attempt to send a message for reliable delivery.

#### Parameters

messageID
  The ReliableMessageID property

methodName
  The method that attempted to deliver the message reliably.

faultCode
  The fault code associated with the failure.

faultDetail
  Details about the fault associated with the failure.