You could do the following to create a destination object during runtime.
Destination = new AMQDestination(binding-url)
However this means you will be using a Qpid specific construct to
create a JMS destination.
The advantage here is that you could create your binding URL at
runtime according
MessageProperties are handled the
same way as DeliveryProperties:
public void message(Session ssn, MessageTransfer xfr)
{
DeliveryProperties dp = xfr.getHeader().get(DeliveryProperties.class);
System.out.println(Message: + xfr + with routing_key +
dp.getRoutingKey());
}
Here is the overview