Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A66B417C31 for ; Tue, 14 Apr 2015 06:59:17 +0000 (UTC) Received: (qmail 3590 invoked by uid 500); 14 Apr 2015 06:59:17 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 3545 invoked by uid 500); 14 Apr 2015 06:59:17 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Delivered-To: moderator for users@camel.apache.org Received: (qmail 97346 invoked by uid 99); 14 Apr 2015 06:57:13 -0000 X-ASF-Spam-Status: No, hits=2.3 required=5.0 tests=SPF_SOFTFAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: softfail (athena.apache.org: transitioning domain of ercan.canlier@gmail.com does not designate 162.253.133.43 as permitted sender) Date: Mon, 13 Apr 2015 23:56:48 -0700 (MST) From: "ercan.canlier" To: users@camel.apache.org Message-ID: <1428994608355-5765742.post@n5.nabble.com> Subject: CXF Endpoint configuration via external properties file MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hello everybody, I am currently working on generic web service creation by defining CXF endpoints. I am really confused with spring placeholder. I can't get the variables from properties file when i would like to define CXF endpoints. I have searched here as well and found there was problem with camel placeholders especially with xml namespaces. For instance, my CXF Endpoint declaration is below: And here my properties file content: 1) target.namespace=http://reportincident.example.camel.apache.org endpoint.service={http://reportincident.example.camel.apache.org}ReportIncidentEndpointService endpoint.name={http://reportincident.example.camel.apache.org}ReportIncidentEndpoint 2) target.namespace=http://reportincident.example.camel.apache.org endpoint.service=s:ReportIncidentEndpointService endpoint.name=s:ReportIncidentEndpoint 3) target.namespace=http://reportincident.example.camel.apache.org endpoint.service=ReportIncidentEndpointService endpoint.name=ReportIncidentEndpoint With this option i put s: to camel-config.xml I also tried {{ property_name}} All above configurations didnt work. Somehow i saw that i was working but i am really confused. Could you please help me? What is the exactly right way to work with properties file? I am currently using 2.12.1 version of Camel because i didnt even run my web service up with the latest version. And the error with above configuration i got is: *org.apache.camel.RuntimeCamelException: org.apache.cxf.service.factory.ServiceConstructionException: Could not find definition for port {http://reportincident.example.camel.apache.org}ReportIncidentEndpoint* -- View this message in context: http://camel.465427.n5.nabble.com/CXF-Endpoint-configuration-via-external-properties-file-tp5765742.html Sent from the Camel - Users mailing list archive at Nabble.com.