/// <summary> /// Creates a new connection to TIBCO. /// </summary> public Apache.NMS.IConnection CreateConnection(string userName, string password) { Apache.NMS.IConnection connection = null; try { connection = EMSConvert.ToNMSConnection(this.tibcoConnectionFactory.CreateConnection(userName, password)); ConfigureConnection(connection); } catch (Exception ex) { ExceptionUtil.WrapAndThrowNMSException(ex); } return(connection); }
/// <summary> /// Creates a new connection to TIBCO. /// </summary> public Apache.NMS.IConnection CreateConnection(string userName, string password) { Apache.NMS.IConnection connection = null; try { connection = EMSConvert.ToNMSConnection(this.tibcoConnectionFactory.CreateConnection(userName, password)); connection.RedeliveryPolicy = this.redeliveryPolicy.Clone() as IRedeliveryPolicy; } catch (Exception ex) { ExceptionUtil.WrapAndThrowNMSException(ex); } return(connection); }
/// <summary> /// Creates a new connection to TIBCO. /// </summary> public Apache.NMS.IConnection CreateConnection() { return(EMSConvert.ToNMSConnection(this.tibcoConnectionFactory.CreateConnection())); }
/// <summary> /// Creates a new connection to TIBCO. /// </summary> public Apache.NMS.IConnection CreateConnection(string userName, string password) { return(EMSConvert.ToNMSConnection(this.tibcoConnectionFactory.CreateConnection(userName, password))); }