1 22 package org.jboss.ejb3.test.bank; 23 24 import java.rmi.*; 25 26 27 32 public interface Teller 33 { 34 public static final String JNDI_NAME = "bank/Teller"; 35 36 public void transfer(Account from, Account to, float amount) 37 throws RemoteException, BankException; 38 39 public Account createAccount(Customer customer, float balance) 40 throws RemoteException, BankException; 41 42 public Account getAccount(Customer customer, float balance) 43 throws RemoteException, BankException; 44 45 public Customer getCustomer(String name) throws RemoteException, 46 BankException; 47 48 public void transferTest(Account from, Account to, float amount, int iter) 49 throws java.rmi.RemoteException , BankException; 50 51 public String greetWithRequiredTransaction(String greeting) throws Exception ; 52 53 public String greetWithNotSupportedTransaction(String greeting) throws Exception ; 54 55 public String greetWithServiceTimer(String greeting) throws Exception ; 56 57 public String greetUnchecked(String greeting) throws Exception ; 58 59 public String greetChecked(String greeting) throws Exception ; 60 61 public void storeCustomerId(String customerId) throws Exception ; 62 63 public String retrieveCustomerId() throws Exception ; 64 65 public boolean isConstructed() throws Exception ; 66 67 public void excludedMethod(); 68 69 public String getDefaultValue(); 70 71 public void testTransactionTimeout(); 72 } 73 74 109 | Popular Tags |