title: spring integration jms components understading
body: <p>I am relatively new to spring integration and working on JMS adapter project, i am trying to understand various adapters. Please can someone explain, why and when to use the following </p>
  
  <pre><code>&lt;bean id="jmsDestination" class="com.tibco.tibjms.TibjmsQueue"&gt;
      &lt;constructor-arg value="queue.sample" /&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>this acts as a queue ? </p>
  
  <p><code>&lt;integration:channel id="requests"/&gt;</code> what is this ? why and when we should define and use with what?</p>
  
  <p><code>&lt;int-jms:outbound-channel-adapter&gt;</code> and <code>&lt;int-jms:inbound-channel-adapter&gt;</code>  when and why we should use this? note, i understand from the documentation one is the consumer and other is creates a new message to the channel. </p>
  
  <p>And finally, <code>&lt;int-jms:message-driven-adapter&gt;</code> when and why we should we use this?</p>
  
  <p>I can go through the documentation, understand each one of this, but cant figure out the sequence in which spring integration code has been written so that i can wire them together.</p>
  
  <p>For example: Answers in the form, "you need to define a channel, and then it should have a outbound adapter withe destination name matching channel id.etc etc. would be of great help"</p>
  
  <p>Thanks for the help in advance.</p>