javax.ejb.SessionBean翻訳
<!-- -->
<!-- -->
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 SessionBean
All Superinterfaces:
EnterpriseBean ,
Serializable
public interface
SessionBean
extends
EnterpriseBean
The SessionBean interface is implemented by every session enterprise Bean class. The container uses the SessionBean methods to notify the enterprise Bean instances of the instance's life cycle events. セッション企業BeanのクラスごとにセッションBeanインタフェースを実装する必要があります.コンテナは、SessionBeanメソッドを使用して、インスタンスのライフサイクルイベントをエンタープライズBeanに通知します.
<!-- -->
Method Summary
void
ejbActivate()
The activate method is called when the instance is activated from its "passive"state. このアクティブ化メソッドは、インスタンスが不動態化状態からアクティブ化されたときに呼び出されます.void
ejbPassivate()
The passivate method is called before the instance enters the "passive"state. この不動態化メソッドは、インスタンスが不動態化状態に入ったときに呼び出されます.void
ejbRemove()
A container invokes this method before it ends the life of the session object. コンテナは、このメソッドを呼び出してセッションオブジェクトを終了します.void
setSessionContext(SessionContextctx)
Set the associated session context. 関連するセッションコンテキストを設定します.<!-- -->
Method Detail
<!-- -->
setSessionContext
public void setSessionContext(SessionContextctx)
throws EJBException,
RemoteException
Set the associated session context. The container calls this method after the instance creation. 関連するセッションコンテキストを設定します.コンテナは、インスタンスの作成後にメソッドを呼び出します.
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 SessionContext interface for the instance. インスタンスのSessionContextインタフェース.Throws:
EJBException
- Thrown by the method to indicate a failure caused by a system-level error. メソッドは、システムレベルのエラーによる失敗を表す異常を放出します.RemoteException
- This exception is defined in the method signature to provide backward compatibility for applications written for the EJB 1.0 specification. Enterprise beans written for the EJB 1.1 specification should throw the javax.ejb.EJBException instead of this exception. Enterprise beans written for the EJB2.0 and higher specifications must throw the javax.ejb.EJBException instead of this exception. メソッド署名でこの例外を定義するのは、EJB 1.0仕様に準拠するエンタープライズbeanに対して下位互換性を提供するためです.EJB 1.1の規範に合致する企業beanはjavaxを投げ出すべきである.ejb.この異常の代わりにEJBExceptionが使用されます.EJB 2.0以降の仕様に合致する企業beanもjavaxを投げ出すべきである.ejb.この異常の代わりにEJBExceptionが使用されます.<!-- -->
ejbRemove
public void ejbRemove()
throws EJBException,
RemoteException
A container invokes this method before it ends the life of the session object. This happens as a result of a client's invoking a remove operation, or when a container decides to terminate the session object after a timeout. コンテナは、このメソッドを呼び出してセッションオブジェクトを終了します.クライアントが削除メソッドを呼び出すか、セッションオブジェクトがタイムアウトした後にコンテナが終了することを決定すると発生します.
This method is called with no transaction context. メソッド呼び出しにはトランザクションコンテキストが含まれていません.
Throws:
EJBException
- Thrown by the method to indicate a failure caused by a system-level error. メソッドは、システムレベルのエラーによる失敗を表す異常を放出します.RemoteException
- This exception is defined in the method signature to provide backward compatibility for enterprise beans written for the EJB 1.0 specification. Enterprise beans written for the EJB 1.1 specification should throw the javax.ejb.EJBException instead of this exception. Enterprise beans written for the EJB2.0 and higher specifications must throw the javax.ejb.EJBException instead of this exception. メソッド署名でこの例外を定義するのは、EJB 1.0仕様に準拠するエンタープライズbeanに対して下位互換性を提供するためです.EJB 1.1の規範に合致する企業beanはjavaxを投げ出すべきである.ejb.この異常の代わりにEJBExceptionが使用されます.EJB 2.0以降の仕様に合致する企業beanもjavaxを投げ出すべきである.ejb.この異常の代わりにEJBExceptionが使用されます.<!-- -->
ejbActivate
public void ejbActivate()
throws EJBException,
RemoteException
The activate method is called when the instance is activated from its "passive"state. The instance should acquire any resource that it has released earlier in the ejbPassivate() method. このアクティブ化メソッドは、インスタンスが不動態化状態からアクティブ化されたときに呼び出されます.インスタンスは、ejbPassivate()メソッドで解放されたすべてのリソースを取得します.
This method is called with no transaction context. メソッド呼び出しにはトランザクションコンテキストが含まれていません.
Throws:
EJBException
- Thrown by the method to indicate a failure caused by a system-level error. メソッドは、システムレベルのエラーによる失敗を表す異常を放出します.RemoteException
- This exception is defined in the method signature to provide backward compatibility for enterprise beans written for the EJB 1.0 specification. Enterprise beans written for the EJB 1.1 specification should throw the javax.ejb.EJBException instead of this exception. Enterprise beans written for the EJB2.0 and higher specifications must throw the javax.ejb.EJBException instead of this exception. メソッド署名でこの例外を定義するのは、EJB 1.0仕様に準拠するエンタープライズbeanに対して下位互換性を提供するためです.EJB 1.1の規範に合致する企業beanはjavaxを投げ出すべきである.ejb.この異常の代わりにEJBExceptionが使用されます.EJB 2.0以降の仕様に合致する企業beanもjavaxを投げ出すべきである.ejb.この異常の代わりにEJBExceptionが使用されます.<!-- -->
ejbPassivate
public void ejbPassivate()
throws EJBException,
RemoteException
The passivate method is called before the instance enters the "passive"state. The instance should release any resources that it can re-acquire later in the ejbActivate() method. この不動態化メソッドは、インスタンスが不動態化状態に入ったときに呼び出されます.インスタンスはすべてのリソースを解放し、ejbActivvate()メソッドを次回呼び出した後に再取得できます.
After the passivate method completes, the instance must be in a state that allows the container to use the Java Serialization protocol to externalize and store away the instance's state. パッシベーション・メソッドが完了した後、インスタンスは、Javaシーケンス化ポリシーを使用してコンテナにインスタンス・ステータスを具体化および保存できる状態にある必要があります.
This method is called with no transaction context. メソッド呼び出しにはトランザクションコンテキストが含まれていません.
Throws:
EJBException
- Thrown by the method to indicate a failure caused by a system-level error. メソッドは、システムレベルのエラーによる失敗を表す異常を放出します.RemoteException
- This exception is defined in the method signature to provide backward compatibility for enterprise beans written for the EJB 1.0 specification. Enterprise beans written for the EJB 1.1 specification should throw the javax.ejb.EJBException instead of this exception. Enterprise beans written for the EJB2.0 and higher specifications must throw the javax.ejb.EJBException instead of this exception. メソッド署名でこの例外を定義するのは、EJB 1.0仕様に準拠するエンタープライズbeanに対して下位互換性を提供するためです.EJB 1.1の規範に合致する企業beanはjavaxを投げ出すべきである.ejb.この異常の代わりにEJBExceptionが使用されます.EJB 2.0以降の仕様に合致する企業beanもjavaxを投げ出すべきである.ejb.この異常の代わりにEJBExceptionが使用されます.<!-- -->
<!-- -->
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.