Ejemplo n.º 1
0
 public static JMSFactory getFactory(string server, string userId, string pwd)
 {
     if (factory == null)
     {
         factory = new JMSFactory(server, userId, pwd);
     }
     return(factory);
 }
Ejemplo n.º 2
0
        public static JMSFactory getFactory(string server, string userId, string pwd)
        {

            if (factory == null)
            {
                factory = new JMSFactory(server, userId, pwd);
            }
            return factory;
        }
Ejemplo n.º 3
0
        public Listener(string server, string userId, string pwd, string topicName, NotifyCallBack callback,
                        string filterCondition, List <string> pPermKeyList, bool pIsSuperUser)
        {
            this.topicName    = topicName;
            this.callback     = callback;
            handler           = new CallbackHandler(callback, pPermKeyList, pIsSuperUser);
            handler.TopicName = this.topicName;
            JMSFactory factory = JMSFactory.getFactory(server, userId, pwd);

            subscriber           = factory.GetInstance(topicName, handler, filterCondition);
            this.filterCondition = filterCondition;
        }