<div dir="ltr"><div>1. My DemoConsumer inherits from DefaultConsumer</div><div>I have noticed that working this way handleDelivery() is invoked from ThreadPool.</div><div>(printing Thread.currentThread().getName() I see�pool-1-thread-1/2/3/4 eachtime.</div>
<div>I have also tested it several times and saw that the order is saved.</div><div>Just to make sure - since different threads call handle delivery - will it mess my order?�</div><div><br>2.�QueueingConsumer�</div>All of the java tutorial use�QueueingConsumer to consume messages.�<div>
In the API Docs it is mentioned as a deprecated class.</div><div>Should I change my code to inherit from DefaultConsumer�use it? Is the tutorial outdated?</div><div><br></div><div>Thanks.</div></div>