javax.ejb.SessionContext翻訳
5385 ワード
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 SessionContext
All Superinterfaces:
EJBContext
public interface
SessionContext
extends EJBContext
The SessionContext interface provides access to the runtime session context that the container provides for a session enterprise Bean instance. The container passes the SessionContext interface to an instance after the instance has been created. The session context remains associated with the instance for the lifetime of the instance. SessionContextインタフェースは、コンテナがセッション企業Beanインスタンスに提供するランタイムセッションコンテキストへのアクセスを提供します.コンテナは、インスタンス作成後にSessionContextインタフェースをインスタンスに渡します.セッションコンテキストは、インスタンスのライフサイクル中にインスタンスに関連付けられます.
Method Summary
EJBLocalObject
getEJBLocalObject()
Obtain a reference to the EJB local object that is associated with the instance. インスタンスに関連付けられたEJBローカルオブジェクト参照を取得します. EJBObject
getEJBObject()
Obtain a reference to the EJB object that is currently associated with the instance. インスタンスに現在関連付けられているEJBオブジェクト参照を取得します. MessageContext
getMessageContext()
Obtain a reference to the JAX-RPC MessageContext. JAX-RPC MessageContextリファレンスを取得します.Methods inherited from interface javax.ejb.EJBContext
getCallerIdentity, getCallerPrincipal, getEJBHome, getEJBLocalHome, getEnvironment, getRollbackOnly, getTimerService, getUserTransaction, isCallerInRole, isCallerInRole, setRollbackOnly
Method Detail
getEJBLocalObject
public EJBLocalObject getEJBLocalObject()
throws IllegalStateException
Obtain a reference to the EJB local object that is associated with the instance. インスタンスに関連付けられたEJBローカルオブジェクト参照を取得します.
An instance of a session enterprise Bean can call this method at anytime between the ejbCreate() and ejbRemove() methods, including from within the ejbCreate() and ejbRemove() methods. セッション企業BeanのインスタンスのejbCreate()とejbRemove()の間のメソッド(ejbRemove()とejbRemove()メソッドを含む)は、いつでもこのメソッドを呼び出すことができます.
An instance can use this method, for example, when it wants to pass a reference to itself in a method argument or result. インスタンスは、メソッドパラメータや結果の形式で自己参照を渡すなど、このメソッドを使用します.
Returns:
The EJB local object currently associated with the instance. 現在インスタンスに関連付けられているEJBローカルオブジェクト.
Throws:
IllegalStateException
- Thrown if the instance invokes this method while the instance is in a state that does not allow the instance to invoke this method, or if the instance does not have a local interface. インスタンスが変更メソッドを呼び出し、インスタンスが存在するステータスがメソッドを呼び出すことを許可しない場合、またはインスタンスがローカルインタフェースを持たない場合に放出されます.getEJBObject
public EJBObject getEJBObject()
throws IllegalStateException
Obtain a reference to the EJB object that is currently associated with the instance. インスタンスに現在関連付けられているEJBオブジェクト参照を取得します.
An instance of a session enterprise Bean can call this method at anytime between the ejbCreate() and ejbRemove() methods, including from within the ejbCreate() and ejbRemove() methods. セッション企業BeanのインスタンスのejbCreate()とejbRemove()の間のメソッド(ejbRemove()とejbRemove()メソッドを含む)は、いつでもこのメソッドを呼び出すことができます.
An instance can use this method, for example, when it wants to pass a reference to itself in a method argument or result. インスタンスは、メソッドパラメータや結果の形式で自己参照を渡すなど、このメソッドを使用します.
Returns:
The EJB object currently associated with the instance. インスタンスに現在関連付けられているEJBオブジェクト.
Throws:
IllegalStateException
- Thrown if the instance invokes this method while the instance is in a state that does not allow the instance to invoke this method, or if the instance does not have a remote interface. インスタンスが変更メソッドを呼び出し、インスタンスが存在するステータスがメソッドを呼び出すことを許可しない場合、またはインスタンスがリモートインタフェースを持たない場合に放出されます.getMessageContext
public MessageContext getMessageContext()
throws IllegalStateException
Obtain a reference to the JAX-RPC MessageContext. JAX-RPC MessageContextリファレンスを取得します.
An instance of a stateless session bean can call this method from any business method invoked through its web service endpoint interface. ステータスレスセッションbeanは、ウェブサービスエンドインタフェースを介して呼び出されるビジネスメソッドからこのメソッドを呼び出すことができる.
Returns:
The MessageContext for this web service invocation. Webサービス呼び出し用のMessageContext.
Throws:
IllegalStateException
- Thrown if this method is invoked while the instance is in a state that does not allow access to this method. インスタンスがメソッドの変更を呼び出し、インスタンスが存在するステータスがメソッドにアクセスできない場合に放出されます.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.