public void start() throws MessagingException { Properties properties = new Properties(); properties.setProperty( Context.INITIAL_CONTEXT_FACTORY, "org.apache.activemq.jndi.ActiveMQInitialContextFactory"); properties.setProperty(Context.PROVIDER_URL, "tcp://localhost:61616"); properties.setProperty(JMSManager.CONNECTION_FACTORY_NAME, "ConnectionFactory"); properties.setProperty("topic.fedora", "fedora.apim.*"); messagingClient = new JmsMessagingClient("example1", this, properties, false); messagingClient.start(); }
public void stop() throws MessagingException { messagingClient.stop(false); }