This class is not required
Embedded ActiveMq is created from XML now.
This commit is contained in:
parent
fe9c63560d
commit
d1bdfb5234
|
@ -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");
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue