/*
* This file is part of the WfMOpen project.
* Copyright (C) 2001-2006 Danet GmbH (www.danet.de), BU BTS.
* All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* $Id: DefaultConnectionManager.java 2372 2007-05-17 21:53:00Z mlipp $
*
* $Log$
*/
package de.danet.an.util.ra;
import javax.resource.ResourceException;
import javax.resource.spi.ConnectionManager;
import javax.resource.spi.ConnectionRequestInfo;
import javax.resource.spi.ManagedConnection;
import javax.resource.spi.ManagedConnectionFactory;
/**
* This class provides ...
*
* @author mnl
*
*/
public class DefaultConnectionManager implements ConnectionManager {
/* (non-Javadoc)
* Comment copied from interface or superclass.
*/
public Object allocateConnection
(ManagedConnectionFactory mcf, ConnectionRequestInfo ci)
throws ResourceException {
ManagedConnection mc = mcf.createManagedConnection(null, ci);
return mc.getConnection(null, ci);
}
}