blob: c5862b22ad787a9b6ca7d27568fa3db02cee41cb [file] [log] [blame]
package jakarta.ejb;
import java.util.*;
import java.security.Principal;
import jakarta.transaction.UserTransaction;
public interface EJBContext {
EJBHome getEJBHome() throws IllegalStateException;
EJBLocalHome getEJBLocalHome() throws IllegalStateException;
Principal getCallerPrincipal() throws IllegalStateException;
boolean isCallerInRole(String roleName) throws IllegalStateException;
UserTransaction getUserTransaction() throws IllegalStateException;
void setRollbackOnly() throws IllegalStateException;
boolean getRollbackOnly() throws IllegalStateException;
TimerService getTimerService() throws IllegalStateException;
Object lookup(String name) throws IllegalArgumentException;
Map<String, Object> getContextData();
}