underlyingDataSource.setURL( url );
underlyingDataSource.setUser( user );
underlyingDataSource.setPassword( password );
//build JBoss-bound DataSource
DataSource ds = new JBossTADataSourceBuilder()
.setXADataSource( underlyingDataSource )
.setUser( user )
.setPassword( password )
.setTimeout( 0 ) //infinite transaction
.createDataSource();