svn commit: r1149059 - in /camel/trunk: etc/pom.xml tests/camel-itest-karaf/pom.xml
Author: davsclaus Date: Thu Jul 21 08:00:57 2011 New Revision: 1149059 URL: http://svn.apache.org/viewvc?rev=1149059view=rev Log: Upgraded version in pom.xml after release. Modified: camel/trunk/etc/pom.xml camel/trunk/tests/camel-itest-karaf/pom.xml Modified: camel/trunk/etc/pom.xml URL: http://svn.apache.org/viewvc/camel/trunk/etc/pom.xml?rev=1149059r1=1149058r2=1149059view=diff == --- camel/trunk/etc/pom.xml (original) +++ camel/trunk/etc/pom.xml Thu Jul 21 08:00:57 2011 @@ -25,7 +25,7 @@ parent groupIdorg.apache.camel/groupId artifactIdcamel-parent/artifactId -version2.8-SNAPSHOT/version +version2.9-SNAPSHOT/version relativePath../parent/relativePath /parent Modified: camel/trunk/tests/camel-itest-karaf/pom.xml URL: http://svn.apache.org/viewvc/camel/trunk/tests/camel-itest-karaf/pom.xml?rev=1149059r1=1149058r2=1149059view=diff == --- camel/trunk/tests/camel-itest-karaf/pom.xml (original) +++ camel/trunk/tests/camel-itest-karaf/pom.xml Thu Jul 21 08:00:57 2011 @@ -25,7 +25,7 @@ parent groupIdorg.apache.camel/groupId artifactIdcamel-parent/artifactId -version2.8-SNAPSHOT/version +version2.9-SNAPSHOT/version relativePath../../parent/relativePath /parent
svn commit: r1149088 [3/3] - in /camel/trunk/examples: camel-example-aggregate/src/main/resources/META-INF/spring/ camel-example-bam/src/main/resources/META-INF/spring/ camel-example-cafe/src/main/res
Modified: camel/trunk/examples/camel-example-spring-ws/src/main/webapp/WEB-INF/spring-ws-servlet.xml URL: http://svn.apache.org/viewvc/camel/trunk/examples/camel-example-spring-ws/src/main/webapp/WEB-INF/spring-ws-servlet.xml?rev=1149088r1=1149087r2=1149088view=diff == --- camel/trunk/examples/camel-example-spring-ws/src/main/webapp/WEB-INF/spring-ws-servlet.xml (original) +++ camel/trunk/examples/camel-example-spring-ws/src/main/webapp/WEB-INF/spring-ws-servlet.xml Thu Jul 21 09:23:46 2011 @@ -16,45 +16,48 @@ limitations under the License. -- beans xmlns=http://www.springframework.org/schema/beans; - xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; - xmlns:camel=http://camel.apache.org/schema/spring; - xsi:schemaLocation=http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd - http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd; - - !-- === Route(s) -- - camel:camelContext id=camelContext - camel:routeBuilder ref=incrementRoute/ - /camel:camelContext - - bean id=incrementRoute class=org.apache.camel.example.server.IncrementRoute / - - !-- === Endpoint mapping -- - bean id=endpointMapping class=org.apache.camel.component.spring.ws.bean.CamelEndpointMapping - property name=interceptors - list - ref local=validatingInterceptor / - ref local=loggingInterceptor / - /list - /property - /bean - - !-- === Interceptors -- - bean id=loggingInterceptor class=org.springframework.ws.server.endpoint.interceptor.PayloadLoggingInterceptor / - - bean id=validatingInterceptor class=org.springframework.ws.soap.server.endpoint.interceptor.PayloadValidatingInterceptor - property name=schema value=/WEB-INF/increment.xsd / - property name=validateRequest value=true / - property name=validateResponse value=true / - /bean - - !-- === WSDL exposure -- - bean id=increment class=org.springframework.ws.wsdl.wsdl11.DefaultWsdl11Definition - property name=schema - bean id=xsd class=org.springframework.xml.xsd.SimpleXsdSchema - property name=xsd value=/WEB-INF/increment.xsd / - /bean - /property - property name=portTypeName value=increment / - property name=locationUri value=http://localhost:8080/increment; / - /bean + xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; + xmlns:camel=http://camel.apache.org/schema/spring; + xsi:schemaLocation= + http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd + http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd; + + !-- === Route(s) -- + camel:camelContext id=camelContext +camel:routeBuilder ref=incrementRoute/ + /camel:camelContext + + bean id=incrementRoute class=org.apache.camel.example.server.IncrementRoute/ + + !-- === Endpoint mapping -- + bean id=endpointMapping class=org.apache.camel.component.spring.ws.bean.CamelEndpointMapping +property name=interceptors + list +ref local=validatingInterceptor/ +ref local=loggingInterceptor/ + /list +/property + /bean + + !-- === Interceptors -- + bean id=loggingInterceptor class=org.springframework.ws.server.endpoint.interceptor.PayloadLoggingInterceptor/ + + bean id=validatingInterceptor + class=org.springframework.ws.soap.server.endpoint.interceptor.PayloadValidatingInterceptor +property name=schema value=/WEB-INF/increment.xsd/ +property name=validateRequest value=true/ +property name=validateResponse value=true/ + /bean + + !-- === WSDL exposure -- + bean id=increment class=org.springframework.ws.wsdl.wsdl11.DefaultWsdl11Definition +property name=schema + bean id=xsd class=org.springframework.xml.xsd.SimpleXsdSchema +property name=xsd value=/WEB-INF/increment.xsd/ + /bean +/property +property name=portTypeName value=increment/ +property name=locationUri value=http://localhost:8080/increment/ + /bean + /beans \ No newline at end of file Modified: camel/trunk/examples/camel-example-spring-ws/src/main/webapp/WEB-INF/web.xml URL: http://svn.apache.org/viewvc/camel/trunk/examples/camel-example-spring-ws/src/main/webapp/WEB-INF/web.xml?rev=1149088r1=1149087r2=1149088view=diff == --- camel/trunk/examples/camel-example-spring-ws/src/main/webapp/WEB-INF/web.xml (original)
[CONF] Apache Camel Components
Components Page edited by James Strachan Comment: simplified the text and tidied up the formatting a little Changes (5) h3. Components Supported Included Camel supports includes the following [Component] implementations via [URIs]. {include:Component List} h3. External Components Other projects and companies have also created Camel components to integrate additional functionality into Camel. These components may be provided under licenses that are not compatible with the Apache License, use libraries that are not compatible, etc... These components are not supported by the Camel team, but we provide links here to help users find the additional functionality. Other projects and companies have also created Camel components under various licenses. These components are not part of the standard Apache Camel distribution but can be used to extend Camels functionality. {include:Component List External} ... Full Content Components Included Camel includes the following Component implementations via URIs. Component / ArtifactId / URI Description AHC / camel-ahc ahc:hostname:[port] To call external HTTP services using Async Http Client AMQP / camel-amqp amqp:[topic:]destinationName For Messaging with AMQP protocol APNS / camel-apns apns:notify[?options] For sending notifications to Apple iOS devices Atom / camel-atom atom:uri Working with Apache Abdera for atom integration, such as consuming an atom feed. AWSSNS / camel-aws aws-sns://topicname[?options] For Messaging with Amazon's Simple Notification Service (SNS). AWSSQS / camel-aws aws-sqs://queuename[?options] For Messaging with Amazon's Simple Queue Service (SQS). AWSS3 / camel-aws aws-s3://bucketname[?options] For working with Amazon's Simple Storage Service (S3). Bean / camel-core bean:beanName[?method=someMethod] Uses the Bean Binding to bind message exchanges to beans in the Registry. Is also used for exposing and invoking POJO (Plain Old Java Objects). Bean Validation / camel-bean-validator bean-validator:something Validates the payload of a message using the Java Validation API (JSR 303 and JAXP Validation) and its reference implementation Hibernate Validator Browse / camel-core browse:someName Provides a simple BrowsableEndpoint which can be useful for testing, visualisation tools or debugging. The exchanges sent to the endpoint are all available to be browsed. Cache / camel-cache cache://cachename[?options] The cache component facilitates creation of caching endpoints and processors using EHCache as the cache implementation. Class / camel-core class:className[?method=someMethod] Uses the Bean Binding to bind message exchanges to beans in the Registry. Is also used for exposing and invoking POJO (Plain Old Java Objects). Cometd / camel-cometd cometd://host:port/channelname Used to deliver messages using the jetty cometd implementation of the bayeux protocol Context / camel-context context:camelContextId:localEndpointName Used to refer to endpoints within a separate CamelContext to provide a simple black box composition approach so that routes can be combined into a CamelContext and then used as a black box component inside other routes in other CamelContexts Crypto Digital Signatures / camel-crypto crypto:sign:name[?options] crypto:verify:name[?options] Used to sign and verify exchanges using the Signature Service of the Java Cryptographic Extension. CXF / camel-cxf cxf:address[?serviceClass=...] Working with Apache CXF for web services integration CXF Bean / camel-cxf cxf:bean name Proceess the exchange using a JAX WS or JAX RS annotated bean from the registry. Requires less configuration than the above CXF Component CXFRS / camel-cxf cxfrs:address[?resourcesClasses=...] Working with Apache CXF for REST services integration DataSet / camel-core dataset:name For load soak testing the DataSet provides a way to create huge numbers of messages for sending to Components or asserting that they are consumed correctly Direct / camel-core direct:name Synchronous call to another endpoint DNS / camel-dns dns:operation To lookup domain information and run DNS queries using DNSJava EJB / camel-ejb ejb:ejbName[?method=someMethod] Uses the Bean Binding to bind message exchanges to EJBs. It works like the Bean component but just for accessing EJBs. Supports EJB 3.0 onwards. Event / camel-spring event://default spring-event://default Working with Spring
[CONF] Apache Camel Component List External
Component List External Page moved by James Strachan From: Apache Camel Components To: Apache Camel Includes Children moved Change Notification Preferences View Online | Add Comment
[CONF] Apache Camel Component List External
Component List External Page edited by James Strachan Comment: added link to smooks docs folks should use Changes (1) ... {code:xml} unmarshal(edi) {code} | GPL | For working with EDI parsing using the [Smooks library|http://milyn.codehaus.org/Smooks]. This component is *deprecated* as Smooks now provides [Camel integration out of the box|http://www.smooks.org/mediawiki/index.php?title=V1.5:Smooks_v1.5_User_Guide#Apache_Camel_Integration] | Full Content Component / ArtifactId / URI License Description ActiveMQ / activemq-camel activemq:[topic:]destinationName Apache For JMS Messaging with Apache ActiveMQ ActiveMQ Journal / activemq-core activemq.journal:directory-on-filesystem Apache Uses ActiveMQ's fast disk journaling implementation to store message bodies in a rolling log file Db4o / camel-db4o in camel-extra db4o://className GPL For using a db4o datastore as a queue via the db4o library Esper / camel-esper in camel-extra esper:name GPL Working with the Esper Library for Event Stream Processing Hibernate / camel-hibernate in camel-extra hibernate://entityName GPL For using a database as a queue via the Hibernate library NMR / servicemix-nmr nmr://serviceName Apache Integration with the Normalized Message Router BUS in ServiceMix 4.x Smooks / camel-smooks in camel-extra. unmarshal(edi) GPL For working with EDI parsing using the Smooks library. This component is deprecated as Smooks now provides Camel integration out of the box Change Notification Preferences View Online | View Changes | Add Comment
[CONF] Apache Camel Components
Components Page edited by James Strachan Comment: simplified the text a little Changes (2) ... h3. External Components Other projects and companies have also created Camel components under various licenses. These components are not part of the standard Apache Camel distribution but can be used to extend Camels functionality. The following components are not part of the standard Apache Camel distribution and are available under a variety of licenses but can be used to extend Camels functionality. {include:Component List External} ... Full Content Components Included Camel includes the following Component implementations via URIs. Component / ArtifactId / URI Description AHC / camel-ahc ahc:hostname:[port] To call external HTTP services using Async Http Client AMQP / camel-amqp amqp:[topic:]destinationName For Messaging with AMQP protocol APNS / camel-apns apns:notify[?options] For sending notifications to Apple iOS devices Atom / camel-atom atom:uri Working with Apache Abdera for atom integration, such as consuming an atom feed. AWSSNS / camel-aws aws-sns://topicname[?options] For Messaging with Amazon's Simple Notification Service (SNS). AWSSQS / camel-aws aws-sqs://queuename[?options] For Messaging with Amazon's Simple Queue Service (SQS). AWSS3 / camel-aws aws-s3://bucketname[?options] For working with Amazon's Simple Storage Service (S3). Bean / camel-core bean:beanName[?method=someMethod] Uses the Bean Binding to bind message exchanges to beans in the Registry. Is also used for exposing and invoking POJO (Plain Old Java Objects). Bean Validation / camel-bean-validator bean-validator:something Validates the payload of a message using the Java Validation API (JSR 303 and JAXP Validation) and its reference implementation Hibernate Validator Browse / camel-core browse:someName Provides a simple BrowsableEndpoint which can be useful for testing, visualisation tools or debugging. The exchanges sent to the endpoint are all available to be browsed. Cache / camel-cache cache://cachename[?options] The cache component facilitates creation of caching endpoints and processors using EHCache as the cache implementation. Class / camel-core class:className[?method=someMethod] Uses the Bean Binding to bind message exchanges to beans in the Registry. Is also used for exposing and invoking POJO (Plain Old Java Objects). Cometd / camel-cometd cometd://host:port/channelname Used to deliver messages using the jetty cometd implementation of the bayeux protocol Context / camel-context context:camelContextId:localEndpointName Used to refer to endpoints within a separate CamelContext to provide a simple black box composition approach so that routes can be combined into a CamelContext and then used as a black box component inside other routes in other CamelContexts Crypto Digital Signatures / camel-crypto crypto:sign:name[?options] crypto:verify:name[?options] Used to sign and verify exchanges using the Signature Service of the Java Cryptographic Extension. CXF / camel-cxf cxf:address[?serviceClass=...] Working with Apache CXF for web services integration CXF Bean / camel-cxf cxf:bean name Proceess the exchange using a JAX WS or JAX RS annotated bean from the registry. Requires less configuration than the above CXF Component CXFRS / camel-cxf cxfrs:address[?resourcesClasses=...] Working with Apache CXF for REST services integration DataSet / camel-core dataset:name For load soak testing the DataSet provides a way to create huge numbers of messages for sending to Components or asserting that they are consumed correctly Direct / camel-core direct:name Synchronous call to another endpoint DNS / camel-dns dns:operation To lookup domain information and run DNS queries using DNSJava EJB / camel-ejb ejb:ejbName[?method=someMethod] Uses the Bean Binding to bind message exchanges to EJBs. It works like the Bean component but just for accessing EJBs. Supports EJB 3.0 onwards. Event / camel-spring event://default spring-event://default Working with Spring ApplicationEvents EventAdmin / camel-eventadmin eventadmin:topic Receiving OSGi EventAdmin events Exec / camel-exec exec://executable[?options] For executing system commands File / camel-core file://nameOfFileOrDirectory Sending messages to a file or polling a file or directory. Camel 1.x use this link File. Flatpack / camel-flatpack flatpack:[fixed|delim]:configFile Processing fixed width or delimited
svn commit: r1149449 - in /camel/trunk: components/camel-cxf/src/main/java/org/apache/camel/component/cxf/blueprint/ components/camel-cxf/src/main/java/org/apache/camel/component/cxf/jaxrs/ tests/came
Author: ningjiang Date: Fri Jul 22 03:50:16 2011 New Revision: 1149449 URL: http://svn.apache.org/viewvc?rev=1149449view=rev Log: Merge branch 'CAMEL-4110' into trunk Added: camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/blueprint/BlueprintSupport.java - copied, changed from r1149088, camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/blueprint/RsServerDefinitionParser.java camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/blueprint/RsClientBlueprintBean.java (with props) camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/blueprint/RsServerBlueprintBean.java (with props) camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/jaxrs/CxfRsBlueprintEndpoint.java (with props) Modified: camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/blueprint/AbstractBeanDefinitionParser.java camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/blueprint/CxfNamespaceHandler.java camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/blueprint/EndpointDefinitionParser.java camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/blueprint/RsClientDefinitionParser.java camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/blueprint/RsServerDefinitionParser.java camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/jaxrs/CxfRsComponent.java camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/jaxrs/CxfRsEndpoint.java camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/jaxrs/CxfRsSpringEndpoint.java camel/trunk/tests/camel-itest-osgi/pom.xml camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/blueprint/AbstractIntegrationTest.java camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/cxf/CxfProxyExampleTest.java Modified: camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/blueprint/AbstractBeanDefinitionParser.java URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/blueprint/AbstractBeanDefinitionParser.java?rev=1149449r1=1149448r2=1149449view=diff == --- camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/blueprint/AbstractBeanDefinitionParser.java (original) +++ camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/blueprint/AbstractBeanDefinitionParser.java Fri Jul 22 03:50:16 2011 @@ -17,8 +17,45 @@ package org.apache.camel.component.cxf.blueprint; +import java.util.StringTokenizer; + +import org.w3c.dom.Element; + +import org.apache.aries.blueprint.ParserContext; +import org.apache.aries.blueprint.mutable.MutableBeanMetadata; +import org.apache.camel.component.cxf.CxfBlueprintEndpoint; +import org.apache.cxf.common.util.StringUtils; import org.apache.cxf.configuration.blueprint.AbstractBPBeanDefinitionParser; public class AbstractBeanDefinitionParser extends AbstractBPBeanDefinitionParser { +public static String getIdOrName(Element elem) { +String id = elem.getAttribute(id); + +if (null == id || .equals(id)) { +String names = elem.getAttribute(name); +if (null != names) { +StringTokenizer st = new StringTokenizer(names, ,); +if (st.countTokens() 0) { +id = st.nextToken(); +} +} +} +return id; +} + +public MutableBeanMetadata createBeanMetadata(Element element, ParserContext context, Class runtimeClass) { +MutableBeanMetadata answer = context.createMetadata(MutableBeanMetadata.class); +answer.setRuntimeClass(runtimeClass); +answer.addProperty(blueprintContainer, createRef(context, blueprintContainer)); +answer.addProperty(bundleContext, createRef(context, blueprintBundleContext)); + +if (!StringUtils.isEmpty(getIdOrName(element))) { +answer.setId(getIdOrName(element)); +} else { +// TODO we may need to throw exception for it +answer.setId(camel.cxf.endpoint. + runtimeClass.getSimpleName() + . + context.generateId()); +} +return answer; +} } Copied: camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/blueprint/BlueprintSupport.java (from r1149088, camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/blueprint/RsServerDefinitionParser.java) URL:
svn commit: r1149468 - in /camel/trunk/tests/camel-itest-osgi/src/test: java/org/apache/camel/itest/osgi/cxf/blueprint/ java/org/apache/camel/itest/osgi/cxf/blueprint/jaxrs/ java/org/apache/camel/ites
Author: ningjiang Date: Fri Jul 22 05:07:24 2011 New Revision: 1149468 URL: http://svn.apache.org/viewvc?rev=1149468view=rev Log: CAMEL-4258 Add integration test of CXFRS blueprint Added: camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/cxf/blueprint/ camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/cxf/blueprint/CxfRsBlueprintRouterTest.java (with props) camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/cxf/blueprint/jaxrs/ camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/cxf/blueprint/jaxrs/testbean/ camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/cxf/blueprint/jaxrs/testbean/Customer.java (with props) camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/cxf/blueprint/jaxrs/testbean/CustomerService.java (with props) camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/cxf/blueprint/jaxrs/testbean/CustomerServiceResource.java (with props) camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/cxf/blueprint/jaxrs/testbean/Order.java (with props) camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/cxf/blueprint/jaxrs/testbean/Product.java (with props) camel/trunk/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/cxf/blueprint/ camel/trunk/tests/camel-itest-osgi/src/test/resources/org/apache/camel/itest/osgi/cxf/blueprint/CxfRsBlueprintRouter.xml (with props) Added: camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/cxf/blueprint/CxfRsBlueprintRouterTest.java URL: http://svn.apache.org/viewvc/camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/cxf/blueprint/CxfRsBlueprintRouterTest.java?rev=1149468view=auto == --- camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/cxf/blueprint/CxfRsBlueprintRouterTest.java (added) +++ camel/trunk/tests/camel-itest-osgi/src/test/java/org/apache/camel/itest/osgi/cxf/blueprint/CxfRsBlueprintRouterTest.java Fri Jul 22 05:07:24 2011 @@ -0,0 +1,210 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the License); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an AS IS BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.camel.itest.osgi.cxf.blueprint; + + +import org.apache.camel.CamelContext; +import org.apache.camel.itest.osgi.cxf.blueprint.jaxrs.testbean.CustomerService; +import org.apache.camel.itest.osgi.blueprint.OSGiBlueprintTestSupport; +import org.apache.cxf.endpoint.Server; +import org.apache.cxf.jaxrs.JAXRSServerFactoryBean; +import org.apache.http.HttpResponse; +import org.apache.http.client.HttpClient; +import org.apache.http.client.methods.HttpGet; +import org.apache.http.client.methods.HttpPost; +import org.apache.http.client.methods.HttpPut; +import org.apache.http.entity.StringEntity; +import org.apache.http.impl.client.DefaultHttpClient; +import org.apache.http.util.EntityUtils; +import org.junit.AfterClass; +import org.junit.BeforeClass; +import org.junit.Ignore; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.ops4j.pax.exam.Option; +import org.ops4j.pax.exam.junit.Configuration; +import org.ops4j.pax.exam.junit.JUnit4TestRunner; +import org.osgi.framework.Constants; + +import static org.ops4j.pax.exam.OptionUtils.combine; +import static org.ops4j.pax.exam.container.def.PaxRunnerOptions.vmOption; +import static org.ops4j.pax.exam.container.def.PaxRunnerOptions.scanFeatures; +import static org.ops4j.pax.swissbox.tinybundles.core.TinyBundles.newBundle; + +@RunWith(JUnit4TestRunner.class) +@Ignore(This test will be failed with CXF 2.4.1, we need to use CXF 2.4.2) +public class CxfRsBlueprintRouterTest extends OSGiBlueprintTestSupport { +private static final String PUT_REQUEST = CustomernameMary/nameid123/id/Customer; +private static final String POST_REQUEST = CustomernameJack/name/Customer; +private static Server server; + +@BeforeClass +public static void startServer() { +JAXRSServerFactoryBean sf = new JAXRSServerFactoryBean(); +