1 26 package org.objectweb.jonas.jdbc; 27 28 import javax.resource.spi.ManagedConnection ; 29 30 import java.io.Serializable ; 31 import javax.resource.ResourceException ; 32 import javax.resource.spi.ConnectionManager ; 33 import javax.resource.spi.ConnectionRequestInfo ; 34 import javax.resource.spi.ManagedConnectionFactory ; 35 36 43 public class ConnectionManagerImpl 44 implements ConnectionManager , Serializable 45 { 46 47 public ConnectionManagerImpl() 48 { 49 } 50 51 56 public Object allocateConnection(ManagedConnectionFactory mcf, ConnectionRequestInfo info) 57 throws ResourceException 58 { 59 ManagedConnection mc = mcf.createManagedConnection(null, info); 60 return mc.getConnection(null, info); 61 } 62 } | Popular Tags |