KickJava   Java API By Example, From Geeks To Geeks.

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


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  * @see <related>
28  * @author $Author: starksm $
29  * @version $Revision: 37459 $
30  */

31 public interface Bank
32 {
33    public static final String JavaDoc JNDI_NAME = "bank/Bank";
34    
35    public String JavaDoc getId() throws RemoteException;
36    
37    public String JavaDoc getEnvEntryId() throws javax.naming.NamingException JavaDoc, RemoteException;
38
39    public String JavaDoc createAccountId(Customer customer) throws RemoteException;
40
41    public String JavaDoc createCustomerId() throws RemoteException;
42
43    public void storeCustomerId(String JavaDoc customerId) throws RemoteException;
44
45    public String JavaDoc retrieveCustomerId() throws RemoteException;
46    
47    public String JavaDoc interceptCustomerId(String JavaDoc customerId) throws RemoteException;
48    
49    public void testResource() throws Exception JavaDoc;
50    
51    public void remove();
52    
53    public String JavaDoc isInitialized();
54    
55    public String JavaDoc isActivated();
56    
57    public void testTransactionTimeout();
58    
59    public String JavaDoc getTransactionState();
60 }
61
62 /*
63  * $Id: Bank.java 37459 2005-10-30 00:04:02Z starksm $ Currently locked
64  * by:$Locker$ Revision: $Log$
65  * by:$Locker: $ Revision: Revision 1.11 2005/10/30 00:06:46 starksm
66  * by:$Locker: $ Revision: Update the jboss LGPL headers
67  * by:$Locker: $ Revision:
68  * by:$Locker$ Revision: Revision 1.10 2005/10/13 19:14:42 bdecoste
69  * by:$Locker$ Revision: added transaction timeouts via annotation or jboss.xml
70  * by:$Locker$ Revision:
71  * by:$Locker$ Revision: Revision 1.9 2005/08/24 20:30:43 bdecoste
72  * by:$Locker$ Revision: support for <env-entry>
73  * by:$Locker$ Revision:
74  * by:$Locker$ Revision: Revision 1.8 2005/06/02 23:25:14 bdecoste
75  * by:$Locker$ Revision: ejb3 jboss.xml support
76  * by:$Locker$ Revision:
77  * by:$Locker$ Revision: Revision 1.7 2005/05/26 02:24:09 bdecoste
78  * by:$Locker$ Revision: support for @Init
79  * by:$Locker$ Revision:
80  * by:$Locker$ Revision: Revision 1.6 2005/05/25 18:57:19 bdecoste
81  * by:$Locker$ Revision: added support for @Remove and @Exclude
82  * by:$Locker$ Revision:
83  * by:$Locker$ Revision: Revision 1.5 2005/05/17 22:37:42 bdecoste
84  * by:$Locker$ Revision: remove ejb2.1 rules
85  * by:$Locker$ Revision:
86  * by:$Locker$ Revision: Revision 1.4 2005/05/14 20:54:02 bdecoste
87  * by:$Locker$ Revision: added ejb3 dd support for Resource
88  * by:$Locker$ Revision:
89  * by:$Locker$ Revision: Revision 1.3 2005/05/12 20:31:46 bdecoste
90  * by:$Locker$ Revision: added ejb3 dd support for injection, callbacks, EJB
91  * by:$Locker$ Revision:
92  * by:$Locker$ Revision: Revision 1.2 2005/05/03 23:51:01 bdecoste
93  * by:$Locker$ Revision: fixed formatting
94  * by:$Locker$ Revision: Revision 1.1 2005/05/03 20:35:11
95  * bdecoste test for ejb3 deployment descriptors Revision 1.2 2001/01/07
96  * 23:14:35 peter Trying to get JAAS to work within test suite. Revision 1.1.1.1
97  * 2000/06/21 15:52:38 oberg Initial import of jBoss test. This module contains
98  * CTS tests, some simple examples, and small bean suites.
99  */

100
Popular Tags