javax.ejb.MessageDrivenBean翻訳



<!-- -->
<!-- -->
Overview
Package
Class
Tree
Deprecated
Index
Help
JavaTM 2 PlatformEnt. Ed. v1.4
PREV CLASS NEXT CLASS
FRAMES NO FRAMES All Classes
SUMMARY:NESTED|FIELD|CONSTR| METHOD
DETAIL:FIELD|CONSTR| METHOD


javax.ejb Interface MessageDrivenBean


All Superinterfaces:
EnterpriseBean ,
Serializable
public interface
MessageDrivenBean
extends
EnterpriseBean
The MessageDrivenBean interface is implemented by every message-driven enterprise Bean class. The container uses the MessageDrivenBean methods to notify the enterprise Bean instances of the instance's life cycle events. 各メッセージドライバ企業Beanのクラスは、MessageDrivenBeanインタフェースを実装する必要があります.コンテナは、MessageDrivenBeanメソッドを使用して、インスタンスのライフサイクルイベントをエンタープライズBeanに通知します.
<!-- -->
Method Summaryvoid ejbRemove() A container invokes this method before it ends the life of the message-driven object. コンテナは、メッセージ駆動beanオブジェクトを終了するためにメソッドを呼び出します.void setMessageDrivenContext(MessageDrivenContextctx) Set the associated message-driven context. 関連するメッセージドライバbeanコンテキストを設定します.
<!-- -->
Method Detail
<!-- -->

setMessageDrivenContext

public void setMessageDrivenContext(MessageDrivenContextctx)
                             throws EJBException

Set the associated message-driven context. The container calls this method after the instance creation. 関連するメッセージドライバbeanコンテキストを設定します.コンテナは、インスタンスの作成後にメソッドを呼び出します.
The enterprise Bean instance should store the reference to the context object in an instance variable. エンタープライズBeanインスタンスは、インスタンス変数にコンテキストオブジェクトの参照を保存する必要があります.
This method is called with no transaction context. メソッド呼び出しにはトランザクションコンテキストが含まれていません.
Parameters: ctx - A MessageDrivenContext interface for the instance. インスタンスのMessageDrivenContextインタフェース.
Throws: EJBException - Thrown by the method to indicate a failure caused by a system-level error. メソッドは、システムレベルのエラーによる失敗を表す異常を放出します.
<!-- -->

ejbRemove

public void ejbRemove()
               throws EJBException

A container invokes this method before it ends the life of the message-driven object. This happens when a container decides to terminate the message-driven object. コンテナは、メッセージ駆動beanオブジェクトを終了するためにメソッドを呼び出します.コンテナがメッセージ駆動beanの終了を決定すると発生する.
This method is called with no transaction context. メソッド呼び出しにはトランザクションコンテキストが含まれていません.
Throws: EJBException - Thrown by the method to indicate a failure caused by a system-level error. メソッドは、システムレベルのエラーによる失敗を表す異常を放出します.


<!-- -->
<!-- -->
Overview
Package
Class
Tree
Deprecated
Index
Help
JavaTM 2 PlatformEnt. Ed. v1.4
PREV CLASS NEXT CLASS
FRAMES NO FRAMES All Classes
SUMMARY:NESTED|FIELD|CONSTR| METHOD
DETAIL:FIELD|CONSTR| METHOD

Submit a bug or feature
Copyright 2003 Sun Microsystems, Inc. All rights reserved.