Click here to Skip to main content
15,891,777 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to incorporate traffic parrot related to MQ in c# application.

Currently I am using MQ interface and connect with the credentials as configured.


After which put the request and want to get the response using traffic parrot .

What I have tried:

private void btnConnect_Click(object sender, System.EventArgs e)

{

    string strQueueManagerName;

    string strQueueName;

    string strChannelInfo;

 

    //TODO

    //PUT Valication Code Here

 

    strQueueManagerName =txtQueueManagerName.Text;

    strQueueName =txtQueueName.Text;

    strChannelInfo = txtChannelInfo.Text;

    lblConnect.Text = myMQ.ConnectMQ(strQueueManagerName, strQueueName, strChannelInfo);
}


Call the ConnectMQ method for connecting to the define Queue of the MQ Server. 

The btnWriteMsg_Click Method:

 

private void btnWriteMsg_Click(object sender, System.EventArgs e)

{

      txtPUT.Text = myMQ.WriteMsg(txtPUT.Text.ToString());

}

This method for sends the input message  to the define Queue of the MQ Server. 

The btnReadMsg_Click Method:

private void btnReadMsg_Click(object sender, System.EventArgs e)
{
    txtGET.Text = myMQ.ReadMsg();
} 
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900