* @see javax.resource.spi.ConnectionManager#allocateConnection(javax.resource.spi.ManagedConnectionFactory, javax.resource.spi.ConnectionRequestInfo)
*/
public Object allocateConnection(ManagedConnectionFactory connectionFactory, ConnectionRequestInfo info) throws ResourceException {
Subject subject = null;
ManagedConnection connection = connectionFactory.createManagedConnection(subject, info);
connection.addConnectionEventListener(this);
for (Iterator iter = listners.iterator(); iter.hasNext();) {
ConnectionEventListener l = (ConnectionEventListener) iter.next();
connection.addConnectionEventListener(l);
}
connections.add(connection);