Re: Configuring SSL for CXF-RS consumers in Camel

2013-02-07 Thread Martin Stiborský
Thanks…but, still no luck…I have found so many different examples how to configure http:conduit in various environments, with various frameworks, but no combination works for me…even worse, I don't how it *actually* works. I have cxf-rs, camel, running in karaf. For start, I'm trying to setup a si

Re: Quickfix component as initiator - How do I insert user and password to logon

2013-02-07 Thread vcheruvu
I agree with you, what I have is messy solution. However, I have seen cases where I had to customize logon messages with custom tags instead of default FIX protocol logon message . Hence this approach leaves room for users to implement their own custom logon messages and add user credentials. quic

Re: Mocking an endpoint in a blueprint that contains a property placeholder

2013-02-07 Thread Claus Ibsen
On Wed, Feb 6, 2013 at 6:15 PM, fordm wrote: > Claus Ibsen-2 wrote >> I think there is a method on CamelTestSupport = >> useOverridePropertiesWithPropertiesComponent you can override and >> return the properties to use for testing. >> I guess we should document that on: >> http://camel.apache.org/

Mocking an endpoint within a try-catch block

2013-02-07 Thread fordm
Hi, Using Camel 2.10, I'm writing a test for the following camel route, contained in a blueprint: java.lang.Exception If the smtpEndpoint is outside the doTry then I can happily mock the endpoint using adviceWith (and weaveById). Howe

Re: File transfer using ftp failed

2013-02-07 Thread Filippo Balicchia
Hi, with this route and camel-ftp 2.10.2 I Can't reproduce the problem. It works for me protected static String getDownloadFtpUrl() { return "ftp://@myip:" + 21 + "?password=&ftpClient.dataTimeout=3&binary=true

Re: Mocking an endpoint within a try-catch block

2013-02-07 Thread Claus Ibsen
On Thu, Feb 7, 2013 at 10:40 AM, fordm wrote: > Hi, > > Using Camel 2.10, I'm writing a test for the following camel route, > contained in a blueprint: > > > > > > > > java.lang.Exception > > > > > > > > > If the smtpEndpoint is outside

Re: How to consume axis web service with user authentication in camel route

2013-02-07 Thread Claus Ibsen
On Thu, Feb 7, 2013 at 3:18 AM, sarfaraj wrote: > We have axis web service with user authentication. Could some one tell me how > to consume that web service in camel route ? and How to authenticate using > camel route ? > > Any example would greatly help me. > There is no camel-axis component.

Files cannot be moved on FTP

2013-02-07 Thread Christian Schäfer
Hello, I'm reading files from a ftp server with ftp camel component (camel version 2.10.3) by pattern using antInclude=file*.txt Reading works but after processing the files cannot be moved to the folder specified by "move" or  "moveFailed". Instead it logs: Cannot change directory to: \\. Cod

Re: Reference OSGI Blueprint java.util.Properties service in Blueprint Camel property placeholder

2013-02-07 Thread Claus Ibsen
On Tue, Feb 5, 2013 at 7:13 PM, CharlieD wrote: > I want to have centralized shared properties (shared across camel contexts) > to define things, particularly ActiveMQ endpoints. Furthermore, I want to > avoid using /etc/custom.properties, unless I'm unaware of a refresh > mechanism that doesn't r

Re: Files cannot be moved on FTP

2013-02-07 Thread Filippo Balicchia
Hi Christian, I try move directive with camel-ftp 2.10.3 and It works for me. Stupid question Do you have write permissions on sever ? Regards --Filippo 2013/2/7 Christian Schäfer : > Hello, > > I'm reading files from a ftp server with ftp camel component (camel version > 2.10.3) by pattern u

Re: Mocking an endpoint within a try-catch block

2013-02-07 Thread fordm
I simply use context.getRouteDefinition(routeId).adviceWith(context, new AdviceWithRouteBuilder() { @Override public void configure() { weaveById(endpointId).selectFirst().replace().to(newUri); } }); Debugging the test I can see that the the endpoint IS being mocked:

Re: Camel-ftp component issue

2013-02-07 Thread Filippo Balicchia
Hi kspri, from your stacktrace I can't understand the problem. Could you please upload your file from command line ? This test is used to discriminate where the problem lies Regards. --Filippo 2013/2/6 kspri : > I am using the Camel-FTP component to ftp a file into a server. Some times I >

Re: Files cannot be moved on FTP

2013-02-07 Thread Christian Schäfer
Sure the ftp user got permissions to write and move. Btw. I just tried camel version 2.10.2 and it works..but it would be better to get it working on 2.10.3 because all routes were tested on this version. -- Christian Von: Filippo Balicchia An: users@camel

Re: How to consume axis web service with user authentication in camel route

2013-02-07 Thread sarfaraj
Let me describe my problem once again. I got a data from file. That data I parsed & create the object. I need to pass that object as an input to axis web service which is running remotely and get result back in my camel route. My camel route may look like below. * <-- Parse & create object -->

Re: Python in camel classpath

2013-02-07 Thread fliot
Hi, Can you post your full example of component, to successfully reach in a spring xml route ? You were mentioning lack of documentation, It would help all. Thank you, Francois -- View this message in context: http://camel.465427.n5.nabble.com/Python-in-camel-classpath-tp5726058p5727094.htm

Re: How to consume axis web service with user authentication in camel route

2013-02-07 Thread Claus Ibsen
On Thu, Feb 7, 2013 at 11:23 AM, sarfaraj wrote: > Let me describe my problem once again. > > I got a data from file. That data I parsed & create the object. I need to > pass that object as an input to axis web service which is running remotely > and get result back in my camel route. > > My cam

Re: Configuring SSL for CXF-RS consumers in Camel

2013-02-07 Thread Sergey Beryozkin
Hi, On 07/02/13 08:44, Martin Stiborský wrote: Thanks…but, still no luck…I have found so many different examples how to configure http:conduit in various environments, with various frameworks, but no combination works for me…even worse, I don't how it *actually* works. I have cxf-rs, camel, runn

Re: Configuring SSL for CXF-RS consumers in Camel

2013-02-07 Thread Martin Stiborský
Hi, yep, I just find out, that I'm mixing client and side things :( At least I know what is http conduit for :) ok…pax web…let's see, thanks for help Sergey! On Thu, Feb 7, 2013 at 11:54 AM, Sergey Beryozkin wrote: > Hi, > > On 07/02/13 08:44, Martin Stiborský wrote: > >> Thanks…but, still no lu

Re: using Camel behind proxy

2013-02-07 Thread Ivan Vasilev
Thanks a lot Willem for your help! Ivan On Wed, Feb 6, 2013 at 5:15 PM, Willem jiang wrote: > camel-twitter is leveraging the twitter4j. Here the instruction of setting > the proxy from twitter4j FAQ[1]. > > You can either to use system properties(-Dtwitter4j.http.proxyHost, > -Dtwitter4j.http.

RE: File transfer using ftp failed

2013-02-07 Thread AMARNATH, Balachandar
Hi, Thanks for the reply, But in my case, it looks like it does not even processing the route. I had a simple route as below. from("ftp://@:21?password=&ftpClient.timeout=3&binary=true&move=.test")).to("file:///tmp") (whereas 'test' is the remote folder that I want to copy remotehost:/ho

Re: Trouble with delayer

2013-02-07 Thread Alexey
But now I see that the message went away. So I have another question 1. If I rebooted the spring contexts while in the queues were messages, the Delayer recount timeDelay correct? 2. Is this problem related to what some threadpoolprofile? -- View this message in context: http://camel.465427.n

Trouble with delayer

2013-02-07 Thread Alexey
I have a route: ... Set the header value timeDelay by action 180

Re: Exception in restful web service

2013-02-07 Thread Richa
My server class looks like this: import java.io.BufferedReader; import java.io.DataInputStream; import java.io.FileInputStream; import java.io.InputStreamReader; import javax.ws.rs.Consumes; import javax.ws.rs.GET; import javax.ws.rs.Path; import javax.ws.rs.Produces; @Path("/hello") public cl

Re: Configuring SSL for CXF-RS consumers in Camel

2013-02-07 Thread Martin Stiborský
This is really helpful: http://blog.nanthrax.net/2012/12/how-to-enable-https-certificate-client-auth-with-karaf/ I'm still not finished, but it's on a good way I guess :) On Thu, Feb 7, 2013 at 11:59 AM, Martin Stiborský < martin.stibor...@gmail.com> wrote: > Hi, yep, I just find out, that I'm m

Returning a value to WS-client from blueprint route

2013-02-07 Thread Urppa
I'm trying to create a camel route that mocks a SOAP-webservice in order to do testing from another application. I have the WSDL of the service interface and I've generated the classes with wsdl2java and that worked ok. My route looks currently like this: The route is exposed ok works partially

Re: How do you use a blueprint property to control a Simple expression?

2013-02-07 Thread Walzer, Thomas
It should be possible to use $simple{} in property placeholders, like: > > >value="$simple{__yourexpression_goes_here__}"/> and then either: {{test.property}} do something … … or {{test.property}} … ... Sorry, have not tried it & hope this he

Re: File transfer using ftp failed

2013-02-07 Thread Claus Ibsen
On Thu, Feb 7, 2013 at 12:54 PM, AMARNATH, Balachandar wrote: > Hi, > > Thanks for the reply, > > But in my case, it looks like it does not even processing the route. I had a > simple route as below. > > from("ftp://@:21?password=&ftpClient.timeout=3&binary=true&move=.test")).to("file:///tmp"

building response along with request data

2013-02-07 Thread kiranreddykasa
Hi I have the following route from(netty:localhost).to(first processor).to(netty:external).to(second processor) Suppose a client has sent a request with some ten fields and after processing at first processor then it is sent to external host with only five fields and then to second processor.

Re: How to consume axis web service with user authentication in camel route

2013-02-07 Thread Claus Ibsen
On Thu, Feb 7, 2013 at 11:58 AM, sarfaraj wrote: > Preferably I need to call the axis web service using spring/xml DSL only. Can > I use *spring-ws* component to do the same? If not is there any other > component I can used to call the axis web service. > Yes you can use camel-cxf or camel-spring

Re: Mocking an endpoint within a try-catch block

2013-02-07 Thread Claus Ibsen
On Thu, Feb 7, 2013 at 11:06 AM, fordm wrote: > I simply use > > context.getRouteDefinition(routeId).adviceWith(context, > new AdviceWithRouteBuilder() { > @Override > public void configure() { > weaveById(endpointId).selectFirst().replace().to(newUri); > } > }); > H

Re: How do you use a blueprint property to control a Simple expression?

2013-02-07 Thread Claus Ibsen
On Thu, Feb 7, 2013 at 12:06 PM, justinblandford wrote: > Hi, > > I have a blueprint property such as :- > > > > > > and have a route like :- > > > > > > {{test.pr

Re: Configuring SSL for CXF-RS consumers in Camel

2013-02-07 Thread Martin Stiborský
And from the same source, another good one: http://blog.nanthrax.net/2011/08/jax-rs-services-using-cxf-and-karaf/ Sorry for spamming. I just hope that these links could be useful for others, solving the same issue. On Thu, Feb 7, 2013 at 1:25 PM, Martin Stiborský wrote: > This is really helpful

cxfendpoint issue

2013-02-07 Thread dkum003
Hi, I am using cxf endpoint as my final endpoint location where the exchange has to be pushed out to. I am not using any cxf configuration xml. Instead just instantiating a new CXFEndpoint object using the normal java way. CxfEndpoint endpoint = (CxfEndpoint)getContext().getEndpoint(uri

Configuring the Camel http4 component

2013-02-07 Thread ddewaele
We are currently using the Camel http4 component to perform both http and https calls either directly or through a proxy. All these scenarios work by configuring the http4 component in a certain way ex: plain http without proxy ex: https without proxy ex: https with a proxy I had 2 questions

Re: camel-hazelcast & Transactions

2013-02-07 Thread xanko
I found a solution really simple... I edited directly the camel-hazelcast component ^^ Indeed it's a mix between the components seda & hazelcast and the transactions are never started. I don't know if it's the best solution but it works :) Prerequisite : The transactions are configured with cam

convertBodyTo object array

2013-02-07 Thread jkob
Hello, I use the following in my Java code to route the data from a rest service to a jms queue: from("cxfrs:bean:rsServer") .setExchangePattern(ExchangePattern.InOnly) .convertBodyTo(Object[].class) .to("activemq:foo"); I want to change the configuration to XML. But I st

Re: Mocking an endpoint within a try-catch block

2013-02-07 Thread fordm
Claus Ibsen-2 wrote > Have you tried with > > weaveById(endpointId).replace().to(newUri); Removing the selectFirst I get the same result. However, if I use weaveByToString(uriPattern).selectFirst().replace().to(newUri); then the end point seems to be mocked successfully. Which is

Re: Mocking an endpoint within a try-catch block

2013-02-07 Thread Claus Ibsen
On Thu, Feb 7, 2013 at 3:08 PM, fordm wrote: > Claus Ibsen-2 wrote >> Have you tried with >> >> weaveById(endpointId).replace().to(newUri); > > Removing the selectFirst I get the same result. > > However, if I use > > weaveByToString(uriPattern).selectFirst().replace().to(newUri); > >

JDBC connection for http hits to Oracle DB ...

2013-02-07 Thread atiato
Dears , I'm using Spring JDBC template and I'm calling DB package for every http hit to apache camel Jetty server. the question is : will we hit DB using new JDBC connection for every hit ? or will we using the same JDBC template for all ? I mean use available JDBC connections in the pool ? a

Re: Quickfix component as initiator - How do I insert user and password to logon

2013-02-07 Thread pvenini
Thanks a lot, it worked like a charm. I added two fields to the config field (Username and Password) and read them from the componet so they wouldn't be hardcoded. Here's the processor: public class FixLoginRequestProcessor implements Processor { public void process(Exchange exchange) thr

Re: Files cannot be moved on FTP

2013-02-07 Thread Christian Schäfer
Hi Filipp, thanks for testing..I just adapted your code to my use case and keep getting the described behaviour (no file moving with 2.10.3, 2.10.4-SNAPSHOT ; moving works with 2.10.2) The anonymized test case:     @Test     public void testFTPMove() throws Exception{     context.addRoutes

Re: building response along with request data

2013-02-07 Thread Claus Ibsen
On Thu, Feb 7, 2013 at 1:43 PM, kiranreddykasa wrote: > Hi > > I have the following route > > from(netty:localhost).to(first processor).to(netty:external).to(second > processor) > > Suppose a client has sent a request with some ten fields and after > processing at first processor > > then it is s

Best Deployment server

2013-02-07 Thread ksatya
Hi all, We are new to camel and are exploring camel to use it in our middleware environment. Two main things we are looking at. EDI support and the best web/application server for deployment. Our preference would be to bind EDI and csv files that serve as our input and output formats, to Java

Re: Python in camel classpath

2013-02-07 Thread crina
Hello, My spring route is as the following : this is embedded in a camel context in the python script I do some manipulations which are after used in other routes. -- View this message in context: http://camel.465427.n5.nabble.com/Python-in-camel-classpath

Re: Python in camel classpath

2013-02-07 Thread fliot
Hi, The pure route part is clear, Can you propose pom.xml important sections, Spring namespace declarations, and jython variables usage (response, etc...) ? Great thanks, Francois -- View this message in context: http://camel.465427.n5.nabble.com/Python-in-camel-classpath-tp5726058p5727146

Re: Configuring the Camel http4 component

2013-02-07 Thread Claus Ibsen
Hi See this FAQ http://camel.apache.org/how-do-i-use-dynamic-uri-in-to.html On Thu, Feb 7, 2013 at 2:44 PM, ddewaele wrote: > We are currently using the Camel http4 component to perform both http and > https calls either directly or through a proxy. All these scenarios work by > configuring the

Re: convertBodyTo object array

2013-02-07 Thread Claus Ibsen
Hi I have logged a ticket to improve this https://issues.apache.org/jira/browse/CAMEL-6051 On Thu, Feb 7, 2013 at 3:01 PM, jkob wrote: > Hello, > > I use the following in my Java code to route the data from a rest service to > a jms queue: > > from("cxfrs:bean:rsServer") > .setExchangePa

camel 10.2.3 migration SSL error

2013-02-07 Thread gmdavidson62
We are migrating to 2.10.3 from 2.7.4. So far everything worked great just changing the camel version, however I'm getting the following error trying to use a jetty:https endpoint. What dependency am I missing? java.lang.NoSuchMethodException: org.eclipse.jetty.server.ssl.SslSelectChannelConnect

Re: Exception in restful web service

2013-02-07 Thread Christian Müller
The first think you should mention is the version you are using. Check out http://camel.apache.org/support.html If you are using Camel 2.10+, you don't need the imports for "cxf-servlet.xml" or "cxf-extension-soap.xml". And by the way, soap != jaxrs... And why you don't return a simple "Hello" in y

Re: Camel-ftp component issue

2013-02-07 Thread Christian Müller
It would be nice to know which version of Camel do you use... Best, Christian On Wed, Feb 6, 2013 at 5:46 PM, kspri wrote: > I am using the Camel-FTP component to ftp a file into a server. Some times > I > randomly get the below exception what could be the reason. Any pointers > are > really a

Re: Getting HTTP 405 in POST call

2013-02-07 Thread Christian Müller
So, where is your Camel related question? Best, Christian On Thu, Feb 7, 2013 at 12:57 PM, CamelNewbieUser wrote: > Hi, I am doing a very simple HTML to servlet invocation within ServiceMix. > My > HTML is very simple with below form element: My Servlet code is as below: > protected void doPost(

Re: camel-hazelcast & Transactions

2013-02-07 Thread Christian Müller
Du you consider to raise a JIRA and attach a patch and unit test? http://camel.apache.org/contributing.html Best, Christian On Thu, Feb 7, 2013 at 2:32 PM, xanko wrote: > I found a solution really simple... I edited directly the camel-hazelcast > component ^^ Indeed it's a mix between the comp

Re: JDBC connection for http hits to Oracle DB ...

2013-02-07 Thread Christian Müller
Where is your Camel related question? As far as I know, the Spring JDBC template will borrow an existing connection from the database pool for each operation. Best, Christian On Thu, Feb 7, 2013 at 3:21 PM, atiato wrote: > Dears , > > I'm using Spring JDBC template and I'm calling DB package fo

Re: Camel HTTP

2013-02-07 Thread Willem jiang
Hi, Camel HTTP component just supposed to handle the HTTP transport for you , it doesn't care about the underlay stream. If you want to parser the XML, you can try to use JAXB data format[1]. [1]http://camel.apache.org/jaxb.html -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Ha

Re: camel 10.2.3 migration SSL error

2013-02-07 Thread Willem jiang
Hi, Can you check which jetty version are using? You may need to down grade it. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English) h

Re: JDBC connection for http hits to Oracle DB ...

2013-02-07 Thread atiato
Thanks so it will manage everything internally . I think max active spring parameter will ensure that no more than 200 connection are working concurrently . ** -- View this message in con