private void btnConnect_Click(object sender, EventArgs e) { try { if (!GlobalFunction.CheckControlInput(txtURI, "URI", 0, false)) { return; } activeMqProducter = new ActiveMqProducter(); activeMqProducter.url = txtURI.Text; activeMqProducter.username = txtUserName.Text; activeMqProducter.password = txtPassword.Text; activeMqProducter.Start(); //m_mq = new MQ(); //m_mq.uri = txtURI.Text; //m_mq.username = txtUserName.Text; //m_mq.password = txtPassword.Text; //m_mq.Start(); } catch (System.Exception ex) { GlobalFunction.MsgBoxException(ex.Message, "btnConnect_Click"); } }
private static void ProducerRun() { activeMqProducter = new ActiveMqProducter(); activeMqProducter.url = "tcp://localhost:61616/"; activeMqProducter.username = "******"; activeMqProducter.password = "******"; activeMqProducter.Start(); }