KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sleepycat > je > jca > ra > JEConnectionMetaData


1 /*-
2  * See the file LICENSE for redistribution information.
3  *
4  * Copyright (c) 2002,2006 Oracle. All rights reserved.
5  *
6  * $Id: JEConnectionMetaData.java,v 1.5 2006/10/30 21:14:18 bostic Exp $
7  */

8
9 package com.sleepycat.je.jca.ra;
10
11 import javax.resource.ResourceException JavaDoc;
12 import javax.resource.spi.ManagedConnectionMetaData JavaDoc;
13
14 public class JEConnectionMetaData
15     implements ManagedConnectionMetaData JavaDoc {
16
17     public JEConnectionMetaData() {
18     }
19
20     public String JavaDoc getEISProductName()
21         throws ResourceException JavaDoc {
22
23         return "Berkeley DB Java Edition JCA";
24     }
25
26     public String JavaDoc getEISProductVersion()
27         throws ResourceException JavaDoc {
28
29         return "2.0";
30     }
31
32     public int getMaxConnections()
33         throws ResourceException JavaDoc {
34
35     /* Make a je.* parameter? */
36     return 100;
37     }
38
39     public String JavaDoc getUserName()
40         throws ResourceException JavaDoc {
41
42         return null;
43     }
44 }
45
Popular Tags