use of org.apache.cxf.wsn.services.JaxwsCreatePullPoint in project cxf by apache.
the class WsnBrokerTest method setUp.
@Before
public void setUp() throws Exception {
loader = Thread.currentThread().getContextClassLoader();
String impl = getProviderImpl();
Thread.currentThread().setContextClassLoader(new FakeClassLoader(impl));
WSNHelper.getInstance().setClassLoader(false);
System.setProperty("javax.xml.ws.spi.Provider", impl);
port2 = getFreePort();
if (!useExternal) {
port1 = getFreePort();
int brokerPort = getFreePort();
activemq = new ActiveMQConnectionFactory("vm:(broker:(tcp://localhost:" + brokerPort + ")?persistent=false)");
notificationBrokerServer = new JaxwsNotificationBroker("WSNotificationBroker", activemq);
notificationBrokerServer.setAddress("http://localhost:" + port1 + "/wsn/NotificationBroker");
notificationBrokerServer.init();
createPullPointServer = new JaxwsCreatePullPoint("CreatePullPoint", activemq);
createPullPointServer.setAddress("http://localhost:" + port1 + "/wsn/CreatePullPoint");
createPullPointServer.init();
}
notificationBroker = new NotificationBroker("http://localhost:" + port1 + "/wsn/NotificationBroker");
createPullPoint = new CreatePullPoint("http://localhost:" + port1 + "/wsn/CreatePullPoint");
}
Aggregations