This class is not required

Embedded ActiveMq is created from XML now.
This commit is contained in:
Kiran 2016-10-09 13:56:37 -04:00 committed by GitHub
parent fe9c63560d
commit d1bdfb5234
1 changed files with 0 additions and 17 deletions

View File

@ -1,17 +0,0 @@
package com.baeldung.spring.jms;
import java.net.URI;
import java.net.URISyntaxException;
import org.apache.activemq.broker.BrokerFactory;
import org.apache.activemq.broker.BrokerService;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class SampleJMSExample {
public static void main(String[] args) throws URISyntaxException, Exception {
BrokerService broker = BrokerFactory.createBroker(new URI("broker:(tcp://localhost:61616)"));
broker.start();
ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");
}
}