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