throws ResourceException {
try {
XAConnection xacon = null;
String userName = null;
PasswordCredential pc =
Util.getPasswordCredential(this, subject, info);
if (pc == null) {
xacon = getXADataSource().getXAConnection();
} else {
userName = pc.getUserName();
xacon = getXADataSource().
getXAConnection(userName,
new String(pc.getPassword()));
}
Connection con = xacon.getConnection();
return new JdbcManagedConnection
(this, pc, xacon, con, true, true);
} catch (SQLException ex) {