Los Angeles1
asked on
JMS, Procuder vs. Sender
When writing to queues, the code examples I have seen show the following 2 methods
1> A Producer
2> A Sender
What is the difference between these two methods of sending messages
Is one more recent
what are the advantages and disadvantages of each ?
Thanks
1> A Producer
MessageProducer producer = session.createProducer(queue);
producer.setDeliveryMode(DeliveryMode.PERSISTENT);
2> A Sender
// create a queue sender
| QueueSender queueSender = queueSession.createSender(queue);
| queueSender.setDeliveryMode(DeliveryMode.NON_PERSISTENT);
What is the difference between these two methods of sending messages
Is one more recent
what are the advantages and disadvantages of each ?
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.