Re: Camel BINDY FIXED - Short Record handling features

2013-03-13 Thread Claus Ibsen
Hi I am not sure. There has been some issues with Bindy over the years as people use it for many different wats than it initially supported. Though in recent time Rich Newcomb and others have contributed to camel-bindy to make it better. Though as usually its often easier to provide a small unit

Re: Files cannot be moved on FTP

2013-03-13 Thread Filippo Balicchia
Hi Robin, sorry for delay, i read your response only now. I try to figure out the problem ASAP Regards --Filippo 2013/3/12 Lutter, Robin > Hi Claus, > > i think the error is in method FileUtil.isWindows() because it determines > the separator char for client os and not for server os. The gi

Re: Files cannot be moved on FTP

2013-03-13 Thread Claus Ibsen
On Tue, Mar 12, 2013 at 8:36 PM, Lutter, Robin wrote: > Hi Claus, > > i think the error is in method FileUtil.isWindows() because it determines > the separator char for client os and not for server os. The given setting for > separator is ignored at this place. > I would suggest to change FtpOp

Re: Intermittent test failures

2013-03-13 Thread cheekychops
Thanks Claus, that was it! Since the project uses camel-blueprint and camel-blueprint-test, I made the following exclusion and the problem went away: org.apache.camel camel-blueprint

Re: base class for context component?

2013-03-13 Thread Sven Bauhan
Ok now you lost me completely. I do not understand what you want to tell me. Or did you just explain the source code in http://camel.apache.org/context.html ? I already understood the code snippets in this explanation. But what is missing for me, is how I can put it in a running context. Is t

Re: Can't read properties from Processor

2013-03-13 Thread Claus Ibsen
On Wed, Mar 13, 2013 at 12:07 AM, sonusgr wrote: > any ideas? > If you use any of the Spring annotation stuff, eg @Value Then you must let Spring handle the lifecycle / IoC / of this class / processor. So you cannot do new MyXXXProcessor in the code. But have to refer to a spring bean id instead.

Re: zip file best practices

2013-03-13 Thread Claus Ibsen
On Wed, Mar 13, 2013 at 3:32 AM, Willem.Jiang wrote: > I just have a chance to check the code, it is not a new component. > I think we can treat it as an expression, which can help the splitter to > build a Iterator from the uncompressed stream. And it is mainly used with > split DSL. > > Willem >

Re: base class for context component?

2013-03-13 Thread Taariq Levack
I got the idea that you really want to define an instance of the DefaultCamelContext, and not the new class/implementation that you are asking about. And the docs you referred to discuss this, and it's the example for how to do so. You can copy that sample and redefine it like this for example...

Re: Camel quartz component query

2013-03-13 Thread cheekychops
I expect that if you configured quartz to use a clustered jobstore, and connected to the same database with another quartz instance you could add more triggers, but I don't think the Quartz Component was really designed to work this way. Note that its not recommended to insert triggers directly in

Re: Dinamyc SQL with arguments

2013-03-13 Thread Gardella juan
Thanks hekonsek for create the jira! I will follow this jira. @Chris Odom: Thanks for the suggestion, I did in this way. But I think it is a better option support dinamyc sql query out of box in camel. Best regards, Juan -- View this message in context: http://camel.465427.n5.nabble.com/Dina

Regarding From and To in routing

2013-03-13 Thread Krishna.aradhya
Hello , I want to send my own messages to the Consumer(to(" ")) without the use of producer(i.e From(" ")). I want to send my own message through the Camel without the help of From(" "). Please give some suggestions. Thank you all. -- View this message in context: http://camel.46

Re: Dinamyc SQL with arguments

2013-03-13 Thread Henryk Konsek
> @Chris Odom: Thanks for the suggestion, I did in this way. But I think it is > a better option support dinamyc sql query out of box in camel. Yeah, you can do almost anything with custom Bean Component, but we still should provide common and useful options in the components. -- Henryk Konsek h

Re: ClassNotFoundException: org.apache.xalan.xsltc.trax.DOM2SAX

2013-03-13 Thread Smith-John
java.lang.ClassNotFoundException: org.apache.xalan.xsltc.trax.DOM2SAX at java.net.URLClassLoader$1.run(URLClassLoader.java:202) ~[na:1.6.0_34] at java.security.AccessController.doPrivileged(Native Method) ~[na:1.6.0_34] at java.net.URLClassLoader.findClass(URLClassLoader.jav

Re: Publish/Subscribe with Camel

2013-03-13 Thread Claus Ibsen
On Wed, Mar 13, 2013 at 11:36 AM, Bilgin Ibryam wrote: > I am thinking to write a small article about different ways to do pub/sub > with Camel. > For the moment I can think of the following components that can do that: > > seda > vm > jms/activemq > redis > sns/sqs > > Are there any other I am mi

Re: Regarding From and To in routing

2013-03-13 Thread Claus Ibsen
On Wed, Mar 13, 2013 at 1:21 PM, Krishna.aradhya wrote: > Hello , > > I want to send my own messages to the Consumer(to(" ")) without > the use of producer(i.e From(" ")). I want to send my own message through > the Camel without the help of From(" "). Please give some suggestions. T

Re: Premature servlet response

2013-03-13 Thread Christian Schäfer
Hi, I removed the on completion as suggested but the problem persists. Maybe a similar problem related to the aggregate and their completionHandlers? regards Christian Von: Willem jiang An: users@camel.apache.org; Christian Schäfer Gesendet: 3:27 Dienstag, 1

Re: Camel multiple (nested) routes in one context

2013-03-13 Thread ddewaele
Hi, We're a couple of days away from going into production so we're not going to change the camel version. But I will upgrade to the latest version of Camel and re-test it soon For the moment we just moved the onExeption component outside of the flow. -- View this message in context: h

Spel expressions don't compile as says in the documentation - Is it a bug?

2013-03-13 Thread Gardella juan
Hi, I'm using camel 2.10.4 and spring 3.2.1.RELEASE versions. If I add this two expressions to my route: DOESN'T COMPILE: from("direct:example").setBody(spel("Hello #{request.body}! What a beautiful #{request.headers['dayOrNight']}")).to("mock:result"); COMPILE: from("direct:foo").filter

Re: Issue in a camel route

2013-03-13 Thread Claus Ibsen
Hi In your xml file you have cxf namespace and whatnot. You should remove that. Or install camel-cxf to have CXF deployed in Karaf. On Wed, Mar 13, 2013 at 2:17 PM, Sushmita chandra wrote: > In my processor class i am trying to create a jms connection > > ApplicationContext context = new > Class

Camel - Commons Configuration

2013-03-13 Thread ddewaele
Our application has a configuration repository based on Apache Commons Configuration. We're using commons configuration because we like the configuration file reloading strategies and the ability to combine several configuration files (to solve the issue of dealing with environment specific proper

Re: Send file via POST request

2013-03-13 Thread jamalissimo
Hi guys, I am back with the solution. I finally managed how to do that! First thing was to find out that consumer sends all data in headers and you can't access the exchange's body. I managed to get data from headers and pass them into Camel's properties which could be then globally passed whereve

Re: Spel expressions don't compile as says in the documentation - Is it a bug?

2013-03-13 Thread Claus Ibsen
Hi I assume you get some compilation error message from SpEL that gives you clue what the problem is. On Wed, Mar 13, 2013 at 2:04 PM, Gardella juan wrote: > Hi, > > I'm using camel 2.10.4 and spring 3.2.1.RELEASE versions. If I add this two > expressions to my route: > > DOESN'T COMPILE: > from

Re: Send file via POST request

2013-03-13 Thread jamalissimo
This solution works ok with one little glitch. When I was working on my local environment then there was no problem, but when I deployed it to my server I noticed on little thing. The file I am uploading, has to be located on your server, but you want to upload it from your(client's) drive. So you

Re: Publish/Subscribe with Camel

2013-03-13 Thread Bilgin Ibryam
Thanks Claus. I wasn't aware of pub/sub capabilities of these components. Bilgin On 13 March 2013 12:36, Claus Ibsen wrote: > On Wed, Mar 13, 2013 at 11:36 AM, Bilgin Ibryam wrote: > > I am thinking to write a small article about different ways to do pub/sub > > with Camel. > > For the moment

Re: Spel expressions don't compile as says in the documentation - Is it a bug?

2013-03-13 Thread Claus Ibsen
On Wed, Mar 13, 2013 at 3:13 PM, Gardella juan wrote: > The compiler says "The method spel(String) is undefined for the type > MyRouteRouteBuilder" where it extends > org.apache.camel.builder.RouteBuilder. > Ah you need to do a static import of the spel method from a class in camel-spring. > > >

Consume the same file

2013-03-13 Thread Alberto Brosich
Hi, I have to consume with the FTP component always the same file but only when its size changes. I read this in the documentation: Camel 2.11: To use a custom idempotent key. By default the absolute path of the file is used. You can use the File Language, for example to use the file name a

Re: base class for context component?

2013-03-13 Thread Sven Bauhan
On 03/13/13 12:50, Taariq Levack wrote: I got the idea that you really want to define an instance of the DefaultCamelContext, and not the new class/implementation that you are asking about. I did not mean to create a new implementation of DefaultCamelContext. I want to create a class for a conte

Re: Performance problem uploading to remote FTP using Stream

2013-03-13 Thread Claus Ibsen
Hi Not sure if setting a sentBufferSize on the client helps? ftpClient.sentBufferSize=8192 Its -1 by default. Check the API of Commons Net FTP to see if it has any impact. org.apache.commons.net.ftp.FTPClient And maybe there is other options you can set on the ftpClient to speedup upload. Al

Re: Premature servlet response

2013-03-13 Thread Claus Ibsen
On Wed, Mar 13, 2013 at 1:42 PM, Christian Schäfer wrote: > Hi, > > I removed the on completion as suggested but the problem persists. > Maybe a similar problem related to the aggregate and their completionHandlers? > If you use the aggregate eip then thats a stateful pattern, that when it sends

Re: Consume the same file

2013-03-13 Thread Claus Ibsen
On Wed, Mar 13, 2013 at 3:54 PM, Alberto Brosich wrote: > > Hi, > > I have to consume with the FTP component always the same file but only when > its size changes. > I read this in the documentation: > > Camel 2.11: To use a custom idempotent key. By default the absolute path of > the file is used

Re: Premature servlet response

2013-03-13 Thread Christian Schäfer
Thanks Claus for the suggestions. Fortunately, in my use case (dynamic route building) it was possible to remove the aggegration step for the case of reponse generation Thus, it works now as expected.   Von: Claus Ibsen An: users@camel.apache.org Gesendet:

Database Cache in Camel

2013-03-13 Thread ganeshkumar.kanagavel
Hi, Can someone advise what the recommended way of maintaining the database Cache in Camel ? We would like to access cache bean from a bean rather that writing any query. Can someone shed some insights? Thanks Ganesh ___ This message may contain inf

Using camel:routeContextRef under camel:camelContext

2013-03-13 Thread deepak_a
All, In my current application I use Spring appContext which has a camel:camelContext. Under it I have defined a camel:routeContextRef (which corresponds to the routeContext in my routes.xml) As per "How do I import routes from other XML files" in http://camel.apache.org/configuring-camel.html

Re: Publish/Subscribe with Camel

2013-03-13 Thread Martin Stiborský
Guys, when I see the discussion about pub/sub and Camel… I'm going to write a simple chat, it's more like "shoutbox", I need several instances of such communication channel and also it needs to be possible easily create new channels. Primary client will be a webpage (html5), but there is high possi

Re: Performance problem uploading to remote FTP using Stream

2013-03-13 Thread GarethHughes
The only options that I could see on the ftpClient http://commons.apache.org/proper/commons-net//apidocs/org/apache/commons/net/ftp/FTPClient.html to adjust the buffer size are 'setBufferSize' and

Re: Register beans

2013-03-13 Thread Lars-Erik Helander
Ok, thanks for the clarifcation and the hint about the composite registry. Lars Skickat från min iPhone 12 mar 2013 kl. 13:12 skrev Claus Ibsen : > On Tue, Mar 12, 2013 at 10:26 AM, helander wrote: >> Fom Java code I would like to register beans in the context registry. I need >> to do this in

CXF proxy route creates multiple (two) user-agent HTTP headers

2013-03-13 Thread kingolego
A CXF-based proxy route creates multiple (two) user-agent HTTP headers, which causes error responses from the recipient server. In a proxy scenario, Camel is sending two user-agent HTTP headers from the outbound endpoint. The first is from the incoming client (SoapUI in this case). Interestingly e

Re: example using HazelcastIdempotentRepository in Spring DSL

2013-03-13 Thread davebarker
I have a few more questions regarding Hazelcast as an idempotent repository. FWIW, I haven't used Hazelcast before. I have a requirement to prevent duplicate messages from being published to a JMS endpoint. The messages are aggregated and a composite "primary value" is formed. The message volume

Re: Routing REST request to external URI

2013-03-13 Thread ramrubio
Thanks for the feedback. I've run into another issue. I'm trying to route an incoming URI to a different URI but HttpProducer method appends the original URI to the new route in HttpProducer.createURL. The following is the use case: 1. Client requests http://server1:8080/public/users 2. Proxy

Re: Camel 2.10.2 timer component does not fire at startup

2013-03-13 Thread jerome
I am having indeed the same issue. How to make this fire as soon as the route starts and every 1800 seconds afterwards? >From the documentation I was assuming this was the syntax to use: It does not work though -- View this message in context: http://camel.465427.n5.nab

Re: Routing REST request to external URI

2013-03-13 Thread ramrubio
Ok. Found my answer. Added removeHeader to route. this.from("servlet:///?matchOnUriPrefix=true").removeHeader(Exchange.HTTP_PATH).dynamicRouter(method(CamelRoute.class, "slip")); -- View this message in context: http://camel.465427.n5.nabble.com/Routing-REST-request-to-external-URI-tp5728852p

RE: Flatpack Unmarshall Spring DSL Example

2013-03-13 Thread ganeshkumar.kanagavel
Chris, Thanks for your inputs, It works now. I created a customised tpeconverter to convert the datasetlist to POJO model mapped to Hibernate. -Original Message- From: Kanagavel, Ganesh Kumar: CRES (NYK) Sent: Tuesda

Re: Flatpack Unmarshall Spring DSL Example

2013-03-13 Thread Chris Geer
On Wed, Mar 13, 2013 at 1:59 PM, wrote: > Chris, Thanks for your inputs, It works now. > Glad to hear it works! > > I created a customised tpeconverter to convert the datasetlist to POJO > model mapped to Hibernate. > >class="org.apache.camel.component.flatpack.FlatpackDataFormat"> >

Post Request forwarded from Camel does not contain HTTP Body

2013-03-13 Thread ramrubio
Hi, I have the following. 1) Using Camel-Servlet with dynamic routing enabled as follows: this.from("servlet:///?matchOnUriPrefix=true") .removeHeader(Exchange.HTTP_PATH) .dynamicRouter(method(CamelRoute.class, "slip")); 2) In My slip method i route the incoming

RE: Database Cache in Camel

2013-03-13 Thread ganeshkumar.kanagavel
Anyone got ideas around setting up the Ehcache based on hibernate? -Original Message- From: Kanagavel, Ganesh Kumar: CRES (NYK) Sent: Wednesday, March 13, 2013 1:02 PM To: users@camel.apache.org Subject: Database Cache in Camel Hi, Can someone advise what the recommended way of maintaini

Spring Conext Initializer Property Source in OSGi

2013-03-13 Thread peter.berkman
in the "normal" app-server case, I register a new PropertySource in the ConfigiurableWebApplicationContext using the following in the web.xml: Then, in my SpringContextInitializer I can register my PropertySource like this: This allows me to use properties within the Spring xml files like thi

Re: doTry docatch slow down the execution

2013-03-13 Thread Raul Kripalani
So you append each invalid record to a file (direct:AEDFormatException). For *each* rejected line, this process occurs: the FileInputStream is opened, positioned at the end, the line is written, the FileInputStream is closed. That could explain some of the slowness. Let's gather some performance

Re: Post Request forwarded from Camel does not contain HTTP Body

2013-03-13 Thread ramrubio
I tried forwarding to both http-component and jetty component. For both requests the body is empty (even with the following set in url ?bridgeEndpoint=true&throwExceptionOnFailure=false&disableStreamCache=true&enableMultipartFilter=false). The error i get on my server side (Jersey) is the followi

Re: from server to oracle

2013-03-13 Thread takidean
im new in apache camel , i read camel in action but i have yet many questions , i'm pressed because i have to achieve my project in which there are many routes and endpoints .i search for help , to receive messages from an external web service what endpoint should i use to connect it. -- View th

AW: from server to oracle

2013-03-13 Thread jhm
Camel in Action chapter 7.4 gives an example with Apache CXF. from("cxf:bean:incomingOrders").to("seda:incomingOrders").transform(constant ("OK")) (SpringDSL in the book ;) The book contains much more about setting up all things. Also the Loan Broker example from the EIP pattern book is implement