alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Apache CXF example source code file (customized-context.xml)

This example Apache CXF source code file (customized-context.xml) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - Apache CXF tags/keywords

it, it, this, this, utf-8, utf-8

The Apache CXF customized-context.xml source code

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns:context="http://www.springframework.org/schema/context"
	xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
	http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd">

	<import resource="classpath:META-INF/cxf/cxf.xml" />
	<import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
	<import resource="classpath:META-INF/cxf/cxf-extension-jaxws.xml" />
	<import resource="classpath:META-INF/cxf/cxf-extension-local.xml" />
	<import resource="classpath:META-INF/cxf/cxf-extension-http-binding.xml"/>
	
<!-- This test is not run with a servlet container. It tests non-servlet publication. -->
<bean id="servicebean" class="org.apache.cxf.systest.jaxws.beanpostprocessor.WebServiceRUs"/>

<bean id="dataBinding" class="org.apache.cxf.aegis.databinding.AegisDatabinding" scope='prototype'/>

<bean id='serverFactory' class='org.apache.cxf.jaxws.JaxWsServerFactoryBean'
	  scope='prototype'>
	<property name="bindingId" value="http://apache.org/cxf/binding/http"/>
</bean>

<bean id="postprocess" class="org.apache.cxf.jaxws.spring.JaxWsWebServicePublisherBeanPostProcessor">
	<property name='urlPrefix' value='local://services/' />
	<property name='prototypeDataBindingBeanName' value="dataBinding"/>
	<property name="prototypeServerFactoryBeanName" value="serverFactory"/>
</bean>
</beans>

Other Apache CXF examples (source code examples)

Here is a short list of links related to this Apache CXF customized-context.xml source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.