KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > ejb3 > test > bank > Teller


1 /*
2   * JBoss, Home of Professional Open Source
3   * Copyright 2005, JBoss Inc., and individual contributors as indicated
4   * by the @authors tag. See the copyright.txt in the distribution for a
5   * full listing of individual contributors.
6   *
7   * This is free software; you can redistribute it and/or modify it
8   * under the terms of the GNU Lesser General Public License as
9   * published by the Free Software Foundation; either version 2.1 of
10   * the License, or (at your option) any later version.
11   *
12   * This software is distributed in the hope that it will be useful,
13   * but WITHOUT ANY WARRANTY; without even the implied warranty of
14   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15   * Lesser General Public License for more details.
16   *
17   * You should have received a copy of the GNU Lesser General Public
18   * License along with this software; if not, write to the Free
19   * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20   * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
21   */

22 package org.jboss.ejb3.test.bank;
23
24 import java.rmi.*;
25
26
27 /**
28  * @see <related>
29  * @author $Author: starksm $
30  * @version $Revision: 37459 $
31  */

32 public interface Teller
33 {
34    public static final String JavaDoc 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 JavaDoc name) throws RemoteException,
46          BankException;
47
48    public void transferTest(Account from, Account to, float amount, int iter)
49          throws java.rmi.RemoteException JavaDoc, BankException;
50
51    public String JavaDoc greetWithRequiredTransaction(String JavaDoc greeting) throws Exception JavaDoc;
52    
53    public String JavaDoc greetWithNotSupportedTransaction(String JavaDoc greeting) throws Exception JavaDoc;
54    
55    public String JavaDoc greetWithServiceTimer(String JavaDoc greeting) throws Exception JavaDoc;
56    
57    public String JavaDoc greetUnchecked(String JavaDoc greeting) throws Exception JavaDoc;
58    
59    public String JavaDoc greetChecked(String JavaDoc greeting) throws Exception JavaDoc;
60    
61    public void storeCustomerId(String JavaDoc customerId) throws Exception JavaDoc;
62
63    public String JavaDoc retrieveCustomerId() throws Exception JavaDoc;
64    
65    public boolean isConstructed() throws Exception JavaDoc;
66    
67    public void excludedMethod();
68    
69    public String JavaDoc getDefaultValue();
70    
71    public void testTransactionTimeout();
72 }
73
74 /*
75  * $Id: Teller.java 37459 2005-10-30 00:04:02Z starksm $ Currently locked
76  * by:$Locker$ Revision: $Log$
77  * by:$Locker: $ Revision: Revision 1.10 2005/10/30 00:06:46 starksm
78  * by:$Locker: $ Revision: Update the jboss LGPL headers
79  * by:$Locker: $ Revision:
80  * by:$Locker$ Revision: Revision 1.9 2005/10/13 19:14:42 bdecoste
81  * by:$Locker$ Revision: added transaction timeouts via annotation or jboss.xml
82  * by:$Locker$ Revision:
83  * by:$Locker$ Revision: Revision 1.8 2005/06/01 00:31:11 bdecoste
84  * by:$Locker$ Revision: ejb3 web support
85  * by:$Locker$ Revision:
86  * by:$Locker$ Revision: Revision 1.7 2005/05/25 18:57:19 bdecoste
87  * by:$Locker$ Revision: added support for @Remove and @Exclude
88  * by:$Locker$ Revision:
89  * by:$Locker$ Revision: Revision 1.6 2005/05/17 22:37:42 bdecoste
90  * by:$Locker$ Revision: remove ejb2.1 rules
91  * by:$Locker$ Revision:
92  * by:$Locker$ Revision: Revision 1.5 2005/05/14 17:48:45 bdecoste
93  * by:$Locker$ Revision: added ejb3 dd support for callback annotations
94  * by:$Locker$ Revision:
95  * by:$Locker$ Revision: Revision 1.4 2005/05/12 01:46:06 bdecoste
96  * by:$Locker$ Revision: added ejb3 dd support for RunAs and Inject
97  * by:$Locker$ Revision:
98  * by:$Locker$ Revision: Revision 1.3 2005/05/10 23:54:21 bdecoste
99  * by:$Locker$ Revision: added ejb3 dd security and transaction support
100  * by:$Locker$ Revision:
101  * by:$Locker$ Revision: Revision 1.2 2005/05/03 23:51:01 bdecoste
102  * by:$Locker$ Revision: fixed formatting
103  * by:$Locker$ Revision: Revision 1.1 2005/05/03
104  * 20:35:11 bdecoste test for ejb3 deployment descriptors Revision 1.2
105  * 2001/01/07 23:14:36 peter Trying to get JAAS to work within test suite.
106  * Revision 1.1.1.1 2000/06/21 15:52:38 oberg Initial import of jBoss test. This
107  * module contains CTS tests, some simple examples, and small bean suites.
108  */

109
Popular Tags