Methods Summary |
---|
protected void | checkAccessToCallerSecurity()
// A message-driven ejb's state transitions past UNINITIALIZED
// AFTER ejbCreate
if ( isUnitialized() || isInEjbRemove() ) {
throw new java.lang.IllegalStateException("Operation not allowed");
}
|
public void | checkTimerServiceMethodAccess()
// A message-driven ejb's state transitions past UNINITIALIZED
// AFTER ejbCreate
if ( isUnitialized() || isInEjbRemove() ) {
throw new java.lang.IllegalStateException
("EJB Timer Service method calls cannot be called in " +
" this context");
}
|
public EJBHome | getEJBHome()
RuntimeException exception = new java.lang.IllegalStateException
("getEJBHome not allowed for message-driven beans");
throw exception;
|
EJBObjectImpl | getEJBObjectImpl()
throw new RuntimeException("No EJB Object for Message-driven beans");
|
public TimerService | getTimerService()
if( !afterSetContext ) {
throw new java.lang.IllegalStateException("Operation not allowed");
}
ContainerFactoryImpl cf = (ContainerFactoryImpl)
Switch.getSwitch().getContainerFactory();
EJBTimerService timerService = cf.getEJBTimerService();
if( timerService == null ) {
throw new EJBException("EJB Timer service not available");
}
return new EJBTimerServiceWrapper(timerService, this);
|
public javax.transaction.UserTransaction | getUserTransaction()
// The state check ensures that an exception is thrown if this
// was called from the constructor or setMessageDrivenContext.
// The remaining checks are performed by the container.
if ( !this.afterSetContext ) {
throw new java.lang.IllegalStateException("Operation not allowed");
}
return ((BaseContainer)getContainer()).getUserTransaction();
|
public boolean | isCallerInRole(java.lang.String roleRef)
throw new java.lang.IllegalStateException("isCallerInRole() is not defined for message-driven ejbs");
|
public void | setContextCalled()
this.afterSetContext = true;
|
void | setEJBObjectImpl(EJBObjectImpl ejbo)
throw new RuntimeException("No EJB Object for Message-driven beans");
|
void | setEJBStub(EJBObject ejbStub)
throw new RuntimeException("No stubs for Message-driven beans");
|