01: /*
02: * This file is part of the WfMOpen project.
03: * Copyright (C) 2001-2006 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: DefaultConnectionManager.java,v 1.1 2007/05/17 21:52:59 mlipp Exp $
21: *
22: * $Log: DefaultConnectionManager.java,v $
23: * Revision 1.1 2007/05/17 21:52:59 mlipp
24: * Refactored resource adaptors.
25: *
26: */
27: package de.danet.an.util.ra;
28:
29: import javax.resource.ResourceException;
30: import javax.resource.spi.ConnectionManager;
31: import javax.resource.spi.ConnectionRequestInfo;
32: import javax.resource.spi.ManagedConnection;
33: import javax.resource.spi.ManagedConnectionFactory;
34:
35: /**
36: * This class provides ...
37: *
38: * @author mnl
39: *
40: */
41: public class DefaultConnectionManager implements ConnectionManager {
42:
43: /* (non-Javadoc)
44: * Comment copied from interface or superclass.
45: */
46: public Object allocateConnection(ManagedConnectionFactory mcf,
47: ConnectionRequestInfo ci) throws ResourceException {
48: ManagedConnection mc = mcf.createManagedConnection(null, ci);
49: return mc.getConnection(null, ci);
50: }
51:
52: }
|