01: /*
02: * This file is part of the WfMOpen project.
03: * Copyright (C) 2001-2005 Danet GmbH (www.danet.de), BU BTS.
04: * All rights reserved.
05: *
06: * This program is free software; you can redistribute it and/or modify
07: * it under the terms of the GNU General Public License as published by
08: * the Free Software Foundation; either version 2 of the License, or
09: * (at your option) any later version.
10: *
11: * This program is distributed in the hope that it will be useful,
12: * but WITHOUT ANY WARRANTY; without even the implied warranty of
13: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14: * GNU General Public License for more details.
15: *
16: * You should have received a copy of the GNU General Public License
17: * along with this program; if not, write to the Free Software
18: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19: *
20: * $Id: LdapRmsManagedConnectionMetaData.java,v 1.3 2007/09/02 22:19:53 mlipp Exp $
21: *
22: * $Log: LdapRmsManagedConnectionMetaData.java,v $
23: * Revision 1.3 2007/09/02 22:19:53 mlipp
24: * Made LDAP EIS RA realy work.
25: *
26: * Revision 1.2 2006/09/29 12:32:07 drmlipp
27: * Consistently using WfMOpen as projct name now.
28: *
29: * Revision 1.1 2006/09/24 20:57:16 mlipp
30: * Moved RMS implementations in own sub-package.
31: *
32: * Revision 1.1 2006/07/11 08:59:48 drmlipp
33: * Started LDAP RMS RA.
34: *
35: */
36: package de.danet.an.workflow.rmsimpls.ldaprmsra;
37:
38: import javax.resource.ResourceException;
39: import javax.resource.spi.ManagedConnectionMetaData;
40:
41: /**
42: * The managed connection meta data of the resource adapter for the properties
43: * files based RMS.
44: * @author Michael Lipp
45: */
46: public class LdapRmsManagedConnectionMetaData implements
47: ManagedConnectionMetaData {
48:
49: private String userName;
50:
51: /**
52: * Create a new instance with all attributes initialized to the given
53: * values.
54: * @param userName
55: */
56: public LdapRmsManagedConnectionMetaData(String userName) {
57: this .userName = userName;
58: }
59:
60: /* (non-Javadoc)
61: * @see javax.resource.spi.ManagedConnectionMetaData#getEISProductName()
62: */
63: public String getEISProductName() throws ResourceException {
64: return "LDAP based RMS";
65: }
66:
67: /* (non-Javadoc)
68: * @see javax.resource.spi.ManagedConnectionMetaData#getEISProductVersion()
69: */
70: public String getEISProductVersion() throws ResourceException {
71: return "1.0";
72: }
73:
74: /* (non-Javadoc)
75: * @see javax.resource.spi.ManagedConnectionMetaData#getMaxConnections()
76: */
77: public int getMaxConnections() throws ResourceException {
78: return 0;
79: }
80:
81: /* (non-Javadoc)
82: * @see javax.resource.spi.ManagedConnectionMetaData#getUserName()
83: */
84: public String getUserName() throws ResourceException {
85: return userName;
86: }
87:
88: }
|