Listing 1: Sharing connections in a user transaction

	//start a trnasaction
	userTransaction.begin();

	//get the first connection
	aConn = ds.getConnection();
	aStmt = aConn.createStatement();
	...

	//get the second connection
	bConn = ds.getConnection();
	bStmt = bConn.createStatement();
	...

	//Commit the transaction
	userTransaction.commit();