EJBControl Interface

Base interface for all EJB controls. Subclasses EntityEJBControl and SessionEJBControl are used directly by EJB controls.

# Syntax

    package weblogic.jws.control;

    public class EJBControl extends Control

# Remarks

The methods of this interface may be invoked by any web service with a EJB control instance.

# Members

## Constructors

none.

## Methods

Object getEJBBeanInstance()

Returns the current target instance of the bean business interface used for business interface method invocations.

Throwable getEJBException()

Returns the last EJB exception serviced by the EJB control on the developers behalf.

Object getEJBHomeInstance()

Returns an instance of the home interface associated with the target bean component.

boolean hasEJBBeanInstance()

Returns true if the EJB control currently has a bean instance upon which business interface methods may be invoked.

## Fields

none.

## Events

none.

Related Topics

EJB Control: Using Enterprise Java Beans from a Web Service

Overview: Enterprise Java Beans (EJBs)

EntityEJBControl Interface

SessionEJBControl Interface

TraderEJBClient.jws Sample

AccountEJBClient.jws Sample