public Publisher()
{
try
{
//get an initial context from default properties
_contextHelper = new InitialContextHelper(null);
InitialContext ctx = _contextHelper.getInitialContext();
//then create a connection using the AMQConnectionFactory
AMQConnectionFactory cf = (AMQConnectionFactory) ctx.lookup("local");
_connection = cf.createConnection();