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: LdapRmsConnectionFactory.java,v 1.3 2007/05/17 21:52:59 mlipp Exp $
21: *
22: * $Log: LdapRmsConnectionFactory.java,v $
23: * Revision 1.3 2007/05/17 21:52:59 mlipp
24: * Refactored resource adaptors.
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 09:00:45 drmlipp
33: * Started LDAP RMS RA.
34: *
35: */
36: package de.danet.an.workflow.rmsimpls.ldaprmsra;
37:
38: import java.io.Serializable;
39:
40: import javax.resource.ResourceException;
41: import javax.resource.spi.ConnectionManager;
42: import javax.resource.spi.ManagedConnectionFactory;
43:
44: import de.danet.an.util.ra.ConnectionFactorySupport;
45: import de.danet.an.workflow.rmsimpls.eisrms.aci.RmsConnection;
46: import de.danet.an.workflow.rmsimpls.eisrms.aci.RmsConnectionFactory;
47:
48: /**
49: * The connection factory of the resource adapter for the properties
50: * files based RMS.
51: *
52: * @author Michael Lipp
53: */
54: public class LdapRmsConnectionFactory extends ConnectionFactorySupport
55: implements RmsConnectionFactory, Serializable {
56:
57: /**
58: * Create a new instance with properties initialized to the given values.
59: * @param mcf
60: * @param cm
61: */
62: public LdapRmsConnectionFactory(ManagedConnectionFactory mcf,
63: ConnectionManager cm) {
64: super (mcf, cm);
65: }
66:
67: /* (non-Javadoc)
68: * @see javax.resource.cci.ConnectionFactory#getConnection()
69: */
70: public RmsConnection getConnection() throws ResourceException {
71: return (RmsConnection) createConnection();
72: }
73:
74: }
|