/* JFox, the OpenSource J2EE Application Server
 *
 * Copyright (C) 2002 huihoo.com
 * Distributable under GNU LGPL license
 * See the GNU Lesser General Public License for more details.
 */

package org.jfox.jdbc.xa.mysql;

import javax.sql.XADataSource;

import org.jfox.jdbc.xa.XADataSourceFactory;

/**
 * @author <a href="mailto:young_yy@hotmail.com">Young Yang</a>
 */

public class MYSQLXADataSourceFactory extends XADataSourceFactory {

  public XADataSource newXADataSource(String url) throws Exception {
    XADataSource xads = (XADataSource)Thread.currentThread().getContextClassLoader().loadClass("com.mysql.jdbc.jdbc2.optional.MysqlXaDataSource").newInstance();
    setUrl(xads,url);
    return xads;
  }

  public static void main(String[] args) {

  }
}