use of org.apache.cxf.ws.transfer.resource.ResourceRemote in project cxf by apache.
the class TestUtils method createTeachersServers.
protected static void createTeachersServers(String port) {
ResourceManager teachersResourceManager = new MemoryResourceManager();
ResourceRemote resource = new ResourceRemote();
resource.setManager(teachersResourceManager);
resource.getResourceTypeIdentifiers().add(new XSDResourceTypeIdentifier(new StreamSource(TestUtils.class.getResourceAsStream("/schema/teacher.xsd")), new XSLTResourceTransformer(new StreamSource(TestUtils.class.getResourceAsStream("/xslt/teacherDefaultValues.xsl")), new TeacherResourceValidator())));
teachersResourceFactoryServer = createTeachersResourceFactoryEndpoint(resource, port);
teachersResourceServer = createTeacherResourceEndpoint(resource, port);
}
use of org.apache.cxf.ws.transfer.resource.ResourceRemote in project cxf by apache.
the class IntegrationBaseTest method createRemoteResource.
protected Server createRemoteResource(ResourceManager manager) {
ResourceRemote implementor = new ResourceRemote();
implementor.setManager(manager);
JaxWsServerFactoryBean factory = new JaxWsServerFactoryBean();
Map<String, Object> props = factory.getProperties(true);
props.put("jaxb.additionalContextClasses", org.apache.cxf.ws.transfer.dialect.fragment.ExpressionType.class);
factory.setProperties(props);
factory.setBus(bus);
factory.setServiceClass(ResourceFactory.class);
factory.setAddress(RESOURCE_REMOTE_MANAGER_ADDRESS);
factory.setServiceBean(implementor);
return factory.create();
}
Aggregations