<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
</head>
<body>
<div style="direction:ltr; font-family:Tahoma; color:#000000; font-size:10pt"><br>
The following sample code refers to an object "ticket", but I have not been able to find any examples of how ticket gets created, or what it represents. I found in the AMQP docs that it is an integer, but that is all. Can anyone provide me with an example of
how to create ticket, and what it represents? <br>
<br>
<font size="2"><span style="font-size:10pt">boolean autoAck = false;<br>
channel.basicConsume(ticket, queueName, autoAck,<br>
new DefaultConsumer(channel) {<br>
@Override<br>
public void handleDelivery(String consumerTag,<br>
Envelope envelope,<br>
AMQP.BasicProperties properties,<br>
byte[] body)<br>
throws IOException<br>
{<br>
String routingKey = envelope.getRoutingKey();<br>
String contentType = properties.contentType;<br>
long deliveryTag = envelope.getDeliveryTag();<br>
//<br>
// my custom handling stuff here<br>
//<br>
channel.basicAck(deliveryTag, false);<br>
}<br>
});</span></font><br>
<br>
Thanks very much for any help or reference to any further examples.<br>
<br>
Jim Mc.<br>
</div>
<p><font size="1" face="arial" color="gray">CONFIDENTIALITY NOTICE: This message and any attachments or files transmitted with it (collectively, the "Message") are intended only for the addressee and may contain information that is privileged, proprietary and/or
prohibited from disclosure by law or contract. If you are not the intended recipient: (a) please do not read, copy or retransmit the Message; (b) permanently delete and/or destroy all electronic and hard copies of the Message; (c) notify us by return email;
and (d) you are hereby notified that any dissemination, distribution or copying of the Message is strictly prohibited.
</font></p>
</body>
</html>