Ejemplo n.º 1
0
        public ConnectionFactory(string serverUrl, string clientId, Hashtable properties)
        {
            try
            {
                this.tibcoConnectionFactory = new TIBCO.EMS.ConnectionFactory(serverUrl, clientId, properties);
            }
            catch (Exception ex)
            {
                Apache.NMS.Tracer.DebugFormat("Exception instantiating TIBCO.EMS.ConnectionFactory: {0}", ex.Message);
            }

            VerifyConnectionFactory();
        }
Ejemplo n.º 2
0
        public ConnectionFactory()
        {
            try
            {
                this.tibcoConnectionFactory = new TIBCO.EMS.ConnectionFactory();
            }
            catch (Exception ex)
            {
                Apache.NMS.Tracer.DebugFormat("Exception instantiating TIBCO.EMS.ConnectionFactory: {0}", ex.Message);
            }

            VerifyConnectionFactory();
        }
Ejemplo n.º 3
0
        public ConnectionFactory(string serverUrl)
        {
            try
            {
                this.tibcoConnectionFactory = new TIBCO.EMS.ConnectionFactory(serverUrl);
                this.brokerUri = new Uri(serverUrl);
            }
            catch (Exception ex)
            {
                Apache.NMS.Tracer.DebugFormat("Exception instantiating TIBCO.EMS.ConnectionFactory: {0}", ex.Message);
                ExceptionUtil.WrapAndThrowNMSException(ex);
            }

            VerifyConnectionFactory();
        }
Ejemplo n.º 4
0
        public ConnectionFactory(Uri serverUrl, string clientId, Hashtable properties)
        {
            try
            {
                this.tibcoConnectionFactory = new TIBCO.EMS.ConnectionFactory(serverUrl.AbsolutePath, clientId, properties);
                this.brokerUri  = serverUrl;
                this.clientId   = clientId;
                this.properties = properties;
            }
            catch (Exception ex)
            {
                Apache.NMS.Tracer.DebugFormat("Exception instantiating TIBCO.EMS.ConnectionFactory: {0}", ex.Message);
                ExceptionUtil.WrapAndThrowNMSException(ex);
            }

            VerifyConnectionFactory();
        }