package org.mockejb.test;
import javax.ejb.CreateException;
import javax.ejb.EJBObject;
import javax.jms.JMSException;
import javax.naming.NamingException;
import java.util.Collection;
import java.security.Principal;
import java.sql.SQLException;
import java.rmi.RemoteException;
public interface SampleService extends EJBObject {
public final static String JNDI_NAME = "mockejb/SampleService";
String echoString( String input ) throws RemoteException;
String invokeOtherBean() throws NamingException, CreateException, RemoteException;
void invokeExternalService() throws NamingException, CreateException, RemoteException;
void sendMessage( String message ) throws NamingException, JMSException, RemoteException;
Collection selectFromTable( String tableName, String columnName)
throws NamingException, SQLException, RemoteException;
void rollbackSampleTransaction() throws NamingException, SQLException,
CreateException, RemoteException;
void throwSystemException() throws NamingException, CreateException, RemoteException;
void throwAppException() throws RemoteException, Exception;
boolean hasRole( String role );
Principal getPrincipal();
}