title: Mock or simulate Message Queue (JMS)
body: <p>There is a message(text), which format and content i definitely know.<br/>
  For now,class in Java,that parses and reads this message from file,is implemented.</p>
  
  <p>In real world, this message will come from Message Queue.</p>
  
  <p>For now I should simulate, mock or generate Message Queue on my local PC for testing purposes.</p>
  
  <p>Java spec(<a href="http://java.sun.com/developer/technicalArticles/Ecommerce/jms/index.html" rel="noreferrer">java jms</a>):</p>
  
  <pre><code>JMS provider: A messaging system that implements the JMS specification.
  JMS clients: Java applications that send and receive messages.
  Messages: Objects that are used to communicate information between JMS clients.
  </code></pre>
  
  <p>Concerning this specification, i need <strong><em>JMS provider</em></strong>.</p>
  
  <p><em>JMS client</em>-it's my class that reads message.<br/>
  <em>Message</em> itself i know.</p>
  
  <p>So the question is how to start message queue?<br/>
  How can i simulate it programmaticaly from Java code? Can i mock it somehow?</p>
  
  <p>Thanks.</p>