// make sure that restx uses correct xa resource
XAResource xares = myConn_.getXAResource ();
if ( logWriter_ != null ) {
xares = new LoggingXAResource ( xares, logWriter_ );
}
restx_.setXAResource ( xares );
if ( msg_ != null ) {
// System.out.println ( "Adding message: " + msg_ );