<p>This example shows you how to configure HornetQ to use the Twitter Connector Service.</p>
<p>HornetQ supports 2 types of Twitter connector, incoming and outgoing.
Incoming connector consumes from twitter and forwards to a configurable address.
Outgoing connector consumes from a configurable address and forwards to twitter.
</p>
<p>In this example, incoming connector and outgoing connector is related to same twitter account.
So if you send a message to an outgoing address, outgoing connector forwards it to twitter,
and then incoming connector consumes it and forwards to incoming address.</p>
<h2>Example step-by-step</h2>
<p><i>To run the server, simply type <code>mvn-Dtwitter.consumerKey=consumer -Dtwitter.consumerSecret=secret -Dtwitter.accessToken=token -Dtwitter.accessTokenSecret=secret verify</code>
from this directory but replacing the system properties with those of the twitter account you want to use. Then run the example
by using the command <code>mvn -Pexample package</code></p>
<ol>
<li>First we need to create a ClientSessionFactory with Netty transport configuration</li>