KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > sape > carbon > services > ejb > local > test > LocalGateway


1 /*
2  * The contents of this file are subject to the Sapient Public License
3  * Version 1.0 (the "License"); you may not use this file except in compliance
4  * with the License. You may obtain a copy of the License at
5  * http://carbon.sf.net/License.html.
6  *
7  * Software distributed under the License is distributed on an "AS IS" basis,
8  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
9  * the specific language governing rights and limitations under the License.
10  *
11  * The Original Code is The Carbon Component Framework.
12  *
13  * The Initial Developer of the Original Code is Sapient Corporation
14  *
15  * Copyright (C) 2003 Sapient Corporation. All Rights Reserved.
16  */

17
18 package org.sape.carbon.services.ejb.local.test;
19
20
21 import java.rmi.RemoteException JavaDoc;
22
23 import javax.ejb.EJBObject JavaDoc;
24 import javax.naming.NamingException JavaDoc;
25
26 import org.sape.carbon.services.ejb.HomeFactoryException;
27
28 /**
29  * <p>Remote interface of the LocalGatewayBean.</p>
30  * <p>Copyright 2002 Sapient</p>
31  * @see LocalGatewayBean
32  * @see LocalGatewayHome
33  * @since carbon 1.0
34  * @author Erik M Gottesman, June 2002
35  * @author $Author: dvoet $ $Date: 2003/05/05 21:21:28 $
36  */

37 public interface LocalGateway extends EJBObject JavaDoc {
38
39     /**
40      * Tests the exception case wherein an EJB lookup using a local home factory
41      * component results in a <code>HomeFactoryNamingException</code>.
42      * @throws HomeFactoryException
43      * @throws RemoteException
44      */

45     void testLocalHomeFactoryNamingException()
46         throws HomeFactoryException, RemoteException JavaDoc;
47
48
49     /**
50      * Tests the normal EJB lookup case using a local home factory component.
51      * @throws HomeFactoryException
52      * @throws RemoteException
53      */

54     void testLocalHomeFactoryLookup()
55         throws HomeFactoryException, RemoteException JavaDoc;
56
57
58     /**
59      * Tests the normal EJB lookup case using a local home factory component
60      * and a programmatically specificied <code>Context</code> object.
61      * @throws HomeFactoryException
62      * @throws RemoteException
63      */

64     void testLocalHomeFactoryLookupWithContext()
65         throws HomeFactoryException, NamingException JavaDoc, RemoteException JavaDoc;
66
67
68     /**
69      * Tests the normal EJB lookup case using a local home factory component
70      * and programmatically specified credentials.
71      * @throws HomeFactoryException
72      * @throws RemoteException
73      */

74     void testLocalHomeFactoryLookupWithCredentials()
75         throws HomeFactoryException, RemoteException JavaDoc;
76
77
78     /**
79      * Tests the performance of the EJB service's home-interface cache
80      * functionality.
81      * @throws HomeFactoryException
82      * @throws RemoteException
83      */

84     void testLocalHomeCachePerformance()
85         throws HomeFactoryException, RemoteException JavaDoc;
86 }
87
Popular Tags