title: How can I use Glassfish's JMS Broker to "proxy" a message on to a JMS Broker on the internet?
body: <p>I am working on a Java EE 6 Enterprise Application that runs on my <em>local</em> Glassfish3 installation. One of my EJBs needs to send messages to a <em>remote</em> JMS Broker which is located somewhere on the Internet. </p>
  
  <p>Unfortunately, the Internet connection is rather unreliable, so my idea is to first send the messages to the <em>local</em> Glassfish's own JMS Broker. My <em>local</em> broker would then forward the messages to the <em>remote</em> broker.  Should the internet connection be unavailable, the <em>local</em> broker would simply wait until the connection came back up.</p>
  
  <p>Am I correct in assuming this will work?  If so, I would highly appreciate some ideas how to get started.</p>