KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jfox > jdbc > xa > MYSQLXADataSource


1 /* JFox, the OpenSource J2EE Application Server
2  *
3  * Distributable under GNU LGPL license by gun.org
4  * more details please visit http://www.huihoo.org/jfox
5  */

6
7 package org.jfox.jdbc.xa;
8
9 import javax.sql.XADataSource JavaDoc;
10
11 import com.mysql.jdbc.jdbc2.optional.MysqlXaDataSource;
12
13 /**
14  * @author <a HREF="mailto:young_yy@hotmail.com">Young Yang</a>
15  */

16
17 public class MYSQLXADataSource extends AbstractXADataSource {
18
19     public MYSQLXADataSource(String JavaDoc url) {
20         super(url);
21     }
22
23     protected XADataSource JavaDoc init(String JavaDoc url) {
24         MysqlXaDataSource xads = new MysqlXaDataSource();
25         xads.setURL(getUrl());
26         return xads;
27     }
28
29     public static void main(String JavaDoc[] args) {
30
31     }
32 }
33
34
Popular Tags