Search in sources :

Example 1 with SimpleResourceResolver

use of org.apache.cxf.ws.transfer.resourcefactory.resolver.SimpleResourceResolver in project cxf by apache.

the class IntegrationBaseTest method createLocalResourceFactory.

protected Server createLocalResourceFactory(ResourceManager manager) {
    ResourceFactoryImpl implementor = new ResourceFactoryImpl();
    implementor.setResourceResolver(new SimpleResourceResolver(RESOURCE_ADDRESS, manager));
    JaxWsServerFactoryBean factory = new JaxWsServerFactoryBean();
    factory.setBus(bus);
    factory.setServiceClass(ResourceFactory.class);
    factory.setAddress(RESOURCE_FACTORY_ADDRESS);
    factory.setServiceBean(implementor);
    return factory.create();
}
Also used : SimpleResourceResolver(org.apache.cxf.ws.transfer.resourcefactory.resolver.SimpleResourceResolver) ResourceFactoryImpl(org.apache.cxf.ws.transfer.resourcefactory.ResourceFactoryImpl) JaxWsServerFactoryBean(org.apache.cxf.jaxws.JaxWsServerFactoryBean)

Example 2 with SimpleResourceResolver

use of org.apache.cxf.ws.transfer.resourcefactory.resolver.SimpleResourceResolver in project cxf by apache.

the class IntegrationBaseTest method createRemoteResourceFactory.

protected Server createRemoteResourceFactory() {
    ResourceFactoryImpl implementor = new ResourceFactoryImpl();
    implementor.setResourceResolver(new SimpleResourceResolver(RESOURCE_REMOTE_ADDRESS, null));
    JaxWsServerFactoryBean factory = new JaxWsServerFactoryBean();
    factory.setBus(bus);
    factory.setServiceClass(ResourceFactory.class);
    factory.setAddress(RESOURCE_FACTORY_ADDRESS);
    factory.setServiceBean(implementor);
    return factory.create();
}
Also used : SimpleResourceResolver(org.apache.cxf.ws.transfer.resourcefactory.resolver.SimpleResourceResolver) ResourceFactoryImpl(org.apache.cxf.ws.transfer.resourcefactory.ResourceFactoryImpl) JaxWsServerFactoryBean(org.apache.cxf.jaxws.JaxWsServerFactoryBean)

Aggregations

JaxWsServerFactoryBean (org.apache.cxf.jaxws.JaxWsServerFactoryBean)2 ResourceFactoryImpl (org.apache.cxf.ws.transfer.resourcefactory.ResourceFactoryImpl)2 SimpleResourceResolver (org.apache.cxf.ws.transfer.resourcefactory.resolver.SimpleResourceResolver)2