Home > Net >  How c # winform ActiveMQ queue for the rest of the news
How c # winform ActiveMQ queue for the rest of the news

Time:10-05

C # winform how to acquire the remaining ActiveMQ queue messages, accumulation of news value

Internet a lot, only simple producer, consumer instance,

Now cited the two space

Using Apache. NMS;
Using Apache. NMS. ActiveMQ;

The factory=new ConnectionFactory (URI);

If (the USERNAME!="")
{
Connection=factory. The CreateConnection (USERNAME, PASSWORD);
}
The else
{
The connection=factory. The CreateConnection ();
}
Connection. The Start ();
The session=connection. The CreateSession ();

These have been debugging through, but I don't know how to obtain the accumulation quantity

Ask for help, the rest of the points on the whole
  •  Tags:  
  • C #
  • Related