title: Set message header in rabbitmq while sending
body: <p>I want to set message header while sending a message to rabbit. 
  I am using below code, but confused how to set message header in it. </p>
  
  <pre><code>public static &lt;T&gt; void sendMessage(String routingKey,final Object message,Class&lt;T&gt; type){
      DefaultClassMapper typeMapper = new DefaultClassMapper();
      typeMapper.setDefaultType(type);
  
      Jackson2JsonMessageConverter converter = new Jackson2JsonMessageConverter();
      converter.setClassMapper(typeMapper);
  
      RabbitTemplate template = new RabbitTemplate(getConnectionFactory));
      template.setMessageConverter(converter);
  
      template.convertAndSend(routingKey, message);
  }
  </code></pre>
  
  <p>In above method i am simply arguementing java POJO object and its type to send. I want to know where should i set message header here.</p>
  
  <p>How to listen the message properties at listener end?</p>