broker.setBrokerName("localhost");
broker.setDataDirectory(new File("target/activemq-data/localhost"));
broker.addConnector(url);
broker.start();
ActiveMQConnectionFactory connFac = new ActiveMQConnectionFactory(url);
Connection conn = connFac.createConnection();
ActiveMQSession session = (ActiveMQSession)conn.createSession(true, Session.AUTO_ACKNOWLEDGE);
queue = session.createQueue("CheckAccounts");
MessageProducer producer = session.createProducer(queue);
MapMessage map = session.createMapMessage();