Search in sources :

Example 1 with JaxwsCreatePullPoint

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");
}
Also used : ActiveMQConnectionFactory(org.apache.activemq.ActiveMQConnectionFactory) JaxwsCreatePullPoint(org.apache.cxf.wsn.services.JaxwsCreatePullPoint) JaxwsNotificationBroker(org.apache.cxf.wsn.services.JaxwsNotificationBroker) JaxwsCreatePullPoint(org.apache.cxf.wsn.services.JaxwsCreatePullPoint) PullPoint(org.apache.cxf.wsn.client.PullPoint) CreatePullPoint(org.apache.cxf.wsn.client.CreatePullPoint) JaxwsNotificationBroker(org.apache.cxf.wsn.services.JaxwsNotificationBroker) NotificationBroker(org.apache.cxf.wsn.client.NotificationBroker) JaxwsCreatePullPoint(org.apache.cxf.wsn.services.JaxwsCreatePullPoint) CreatePullPoint(org.apache.cxf.wsn.client.CreatePullPoint) Before(org.junit.Before)

Aggregations

ActiveMQConnectionFactory (org.apache.activemq.ActiveMQConnectionFactory)1 CreatePullPoint (org.apache.cxf.wsn.client.CreatePullPoint)1 NotificationBroker (org.apache.cxf.wsn.client.NotificationBroker)1 PullPoint (org.apache.cxf.wsn.client.PullPoint)1 JaxwsCreatePullPoint (org.apache.cxf.wsn.services.JaxwsCreatePullPoint)1 JaxwsNotificationBroker (org.apache.cxf.wsn.services.JaxwsNotificationBroker)1 Before (org.junit.Before)1