|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openmdx.base.ejb.gateway.spi.AbstractGateway_1Bean
public abstract class AbstractGateway_1Bean
Gateway_1 Session Bean
| Field Summary | |
|---|---|
protected static int |
RETRY_WITH_CURRENT_CONTEXT
Retry the same method invocation with the current context |
protected static int |
RETRY_WITH_RESET_CONTEXT
Retry the same method invocation with a reset context |
protected static int |
TRY_WITH_CURRENT_CONTEXT
Retry the same method invocation with the current context |
protected static int |
TRY_WITH_RESET_CONTEXT
Try the same method invocation with a reset context |
| Constructor Summary | |
|---|---|
AbstractGateway_1Bean()
|
|
| Method Summary | |
|---|---|
protected void |
create(Context beanContext)
This method may be overriden by subclasses. |
void |
ejbActivate()
|
void |
ejbCreate()
This method corresponds to the create method in the home interface. |
void |
ejbPassivate()
|
void |
ejbRemove()
|
protected abstract ExecutionContext |
getExecutionContext()
Retrieve the gateways's execution context |
protected abstract Hashtable<?,?> |
getExecutionEnvironment()
Retrieve the executionEnvironment. |
protected SessionContext |
getSessionContext()
Retrieve the sessionContext. |
Object |
invoke(Object proxy,
Method method,
Object[] args)
Invocation |
protected boolean |
isRetriable(PrivilegedActionException privilegedActionException)
This method defines the class' or sub-class' retry policy. |
protected Context |
newInitialContext()
Create a new InitialContext |
Object |
newStatelessSessionBeanAccessor(Class<?> homeInterface,
Class<?> remoteInterface,
String id)
Create a proxy for a stateless session bean |
protected Object |
newStatelessSessionBeanAccessor(Gateway_1_0Internal gateway,
Class<?> homeInterface,
Class<?> remoteInterface,
String id)
Internal session bean accessor factory |
void |
setSessionContext(SessionContext sessionContext)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final int TRY_WITH_CURRENT_CONTEXT
protected static final int RETRY_WITH_CURRENT_CONTEXT
protected static final int TRY_WITH_RESET_CONTEXT
protected static final int RETRY_WITH_RESET_CONTEXT
| Constructor Detail |
|---|
public AbstractGateway_1Bean()
| Method Detail |
|---|
protected final SessionContext getSessionContext()
sessionContext's valueprotected abstract ExecutionContext getExecutionContext()
protected abstract Hashtable<?,?> getExecutionEnvironment()
executionEnvironment's value
protected Context newInitialContext()
throws NamingException
InitialContext
InitialContext
NamingException
public void setSessionContext(SessionContext sessionContext)
throws EJBException,
RemoteException
setSessionContext in interface SessionBeanEJBException
RemoteException
public void ejbCreate()
throws CreateException
create(), the container allocates an instance of
the EJBean and calls ejbCreate().
CreateException - if there is
a problem creating the bean
protected void create(Context beanContext)
throws CreateException
beanContext -
CreateException - if there is
a problem creating the bean
public void ejbRemove()
throws EJBException,
RemoteException
ejbRemove in interface SessionBeanEJBException
RemoteException
public void ejbActivate()
throws EJBException,
RemoteException
ejbActivate in interface SessionBeanEJBException
RemoteException
public void ejbPassivate()
throws EJBException,
RemoteException
ejbPassivate in interface SessionBeanEJBException
RemoteExceptionprotected boolean isRetriable(PrivilegedActionException privilegedActionException)
true if the request should be retried once.
protected Object newStatelessSessionBeanAccessor(Gateway_1_0Internal gateway,
Class<?> homeInterface,
Class<?> remoteInterface,
String id)
throws ServiceException
ServiceException
public Object newStatelessSessionBeanAccessor(Class<?> homeInterface,
Class<?> remoteInterface,
String id)
throws ServiceException
homeInterface - the interface to lookup the delegate objectremoteInterface - the interface to be implemented by the proxy instanceid - The stateless session bean's id
ServiceException - if accessor creation fails
public Object invoke(Object proxy,
Method method,
Object[] args)
throws PrivilegedActionException
Attempts:
PrivilegedActionException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||