Re: MTOM message part not formatted correctly according to RFC 1341 using CRLFLF instead of CRLFCRLF

2013-08-16 Thread Clay
Is there a fix for this in Camel 2.11.1? -- View this message in context: http://camel.465427.n5.nabble.com/MTOM-message-part-not-formatted-correctly-according-to-RFC-1341-using-CRLFLF-instead-of-CRLFCRLF-tp5737366p5737441.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Authenticating websockets endpoints.

2013-08-16 Thread Jose Espinosa
Hey Christian, Thanks for the response, I have already have look and the sources you point and they let me make some progress as I am using spring and I am already using it for securing my http requests. If I understand correctly I need to add the authentication information in the payload of my s

Re: How can FTP Component connect to FTP Server via GXS Proxy

2013-08-16 Thread Christian Müller
As we describe at [1], Apache Camel FTP uses Apache Commons Net (and do not reinvent the wheel...). *IF* Apache Commons Net supports GXS, we also should get it working... [1] http://camel.apache.org/ftp2.html [2] http://commons.apache.org/proper/commons-net/ Best, Christian - Sof

http4 component: proxy settings in system properties

2013-08-16 Thread Daniel Gredler
Hi guys, I'm trying to get the http4 component to recognize proxy settings specified via the standard Java proxy system properties [1]. I'm setting these system properties via the command line, e.g.: > java -Dhttp.proxyHost=myproxy.foo.com -Dhttp.proxyPort=8080 MyMain The http4 component

Camel routes - 2 routes consuming message from the same JMS Queue

2013-08-16 Thread mafiankarthik
Hi, I have 2 routes RouteA and RouteB - each in their own camel context and each consuming message from the same JMS ActiveMQ Queue, but at any time only one route is up and running. 1) RouteA is started by default as the app server comes up 2) I SUSPEND RouteA and start RouteB. 3) RouteB consume

Spring Bean represented as endpoint

2013-08-16 Thread MichaelAtSAG
All, I am trying to move endpoint properties into a bean, yet the endpoint is not working this way. I think it is a simple typo but can't find it: THIS WORKS AND THIS DOES NOT WORK, YET FUNCTIONALLY THE SAME

Re: MTOM message part not formatted correctly according to RFC 1341 using CRLFLF instead of CRLFCRLF

2013-08-16 Thread Christian Müller
Can you give Camel 2.11.1 a try? Best, Christian Christian Müller - Software Integration Specialist Apache Camel committer: https://camel.apache.org/team V.P. Apache Camel: https://www.apache.org/foundation/ Apache Member: https://www.apache.org/foundation/members.html https://

Re: Authenticating websockets endpoints.

2013-08-16 Thread Christian Posta
Jose, Depends on which security mechanism you use. For example, for spring-security, take a look here: http://camel.apache.org/spring-security.html You can set up the infrastructure for Spring Security to intercept and validate the authentication, but the Authentication object being on the exchan

Authenticating websockets endpoints.

2013-08-16 Thread Jose Espinosa
Hey all, I am using websockets to start on of my routes, now I am looking at adding security to my websockets end points. I took a look at camel security as described here http://camel.apache.org/camel-security.html and it works as advertised, but now I cann't find how to make my websocket client

Re: MTOM message part not formatted correctly according to RFC 1341 using CRLFLF instead of CRLFCRLF

2013-08-16 Thread Clay
Hi Claus, We are using: - Camel 2.9.2 - CXF 2.6.3 - Java 1.6 - Suse Linux >From the logs, it looks like they are using the Apache Coyote 1.1 connector with their Tomcat server. Clay -- View this message in context: http://camel.465427.n5.nabble.com/MTOM-message-part-not-formatted-correctly-

Re: Parallel processing of big file

2013-08-16 Thread saltnlight5
I didn't see you have ".parallelProcessing()" after the split() as part of your route? -- View this message in context: http://camel.465427.n5.nabble.com/Parallel-processing-of-big-file-tp5737386p5737428.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: How to add Vendor Specific Optional Parameter in CamelSmppOptionalParameters

2013-08-16 Thread cartoondog
Hi Chris, Do I have to create another account to log in ASF JIRA? My user id here cannot log in ASF JIRA. After looking into the source code, I found that we can add support to Vendor Specific Optional Parameter by adding some codes in the AbstractSmppCommand class like below. Please correct me

camel-spring-batch 2.11.1 breaks previous working routes

2013-08-16 Thread Gardella juan
Hi all, I've used camel-spring-batch from a while. I recently upgrade from 2.11.0 to 2.11.1 and the route that use camel-spring-batch have failed. I detect that the problem is in 2.11.1 after the execution of the job the headers are cleaned. So I changed my route to log the headers before and afte

RE: How can FTP Component connect to FTP Server via GXS Proxy

2013-08-16 Thread bbuzzard
Yes I'm talking about GXS and I'm disappointed to learn that I have to create a custom bean. I can use Linux's FTP command from a script to connect to GXS and download the files I need. I was hoping that the FTP component in camel could be used to perform the same task as the script. From: wo

Re: Creating then starting a JMS consumer around another component

2013-08-16 Thread Christian Posta
Actually, you should be able to use a RoutePolicy to accomplish this: from("jms:queue").routePolicy(customPolicy).to(...) continue route ... http://camel.apache.org/routepolicy.html In the onExchangeBegin() method, do not allow the processing to continue (block) until the "world has been constru

Re: Parallel processing of big file

2013-08-16 Thread cesar.tl
Hi Claus, I'm afraid it would difficult to produce a code snippet that would be relevant to the problem without disclosing sensitive code. I have however made further analysis. First I wasn't exactly correct when I said using parallel processing makes no difference. When I run the version witho

Re: Node count in camel

2013-08-16 Thread dalewking
Michal Warecki wrote > > > > count(/order/item) > > Apparently the secret part of that is the resultType="java.lang.String". With it, it works. Without it you get the very misleading: org.apache.camel.builder.xml.InvalidXPathExpression - Invalid xpath: count(/order/item) -- View this

Re: Accessing SSL secured web services

2013-08-16 Thread Grzegorz Sikora
camel-cxf and try for example: Regards, gs On Fri, Aug 16, 2013 at 2:21 PM, Christian Müller < christian.muel...@gmail.com> wrote: > I recommend the camel-cxf component. > > Best, > Christian > Am 16.08.2013 09:08 schrieb "Gnanaguru S" >:

Re: Camel Hibernate : org.hibernate.HibernateException: persist is not valid without active transaction

2013-08-16 Thread Claus Ibsen
On Fri, Aug 16, 2013 at 3:07 PM, Christian Müller wrote: > Also use Camel 2.11 if possible. > Yeah there is an example http://camel.apache.org/hibernate-example.html And the camel-hibernate component has been improved in this release (though its from camel-extra). > Best, > Christian > Am 16.0

Re: camel routes suspend /resume

2013-08-16 Thread Claus Ibsen
Hi Yeah we can improve camel-netty to be able to unbind/bind the acceptor when suspended/resume. I have logged a ticket https://issues.apache.org/jira/browse/CAMEL-6644 On Fri, Aug 16, 2013 at 2:29 PM, kiranreddykasa wrote: > Hi, > > So the following route policy cannot be used? > > org.apache.c

Re: Camel Hibernate : org.hibernate.HibernateException: persist is not valid without active transaction

2013-08-16 Thread Christian Müller
Also use Camel 2.11 if possible. Best, Christian Am 16.08.2013 11:57 schrieb "anand_tech" : > Hi, > > I am trying to do a small poc with camel-hibernate component. First my > versions are : > Camel-core 2.9.0 > Camel-hibernate 2.10.0 > Spring - 3.0.6 > Hibernate - 3.6.0 > > Below is my route : >

Re: camel routes suspend /resume

2013-08-16 Thread kiranreddykasa
Hi, So the following route policy cannot be used? org.apache.camel.impl.ThrottlingInflightRoutePolicy - Regards kiran Reddy -- View this message in context: http://camel.465427.n5.nabble.com/camel-routes-suspend-resume-tp5737382p5737407.html Sent from the Camel - Users mailing list archi

Re: Accessing SSL secured web services

2013-08-16 Thread Christian Müller
I recommend the camel-cxf component. Best, Christian Am 16.08.2013 09:08 schrieb "Gnanaguru S" : > Hi, > > I am have a web service secured by SSL. > > Which is the right camel component to access this web service, where I can > specify the keystores/truststores ? > > I went through some examples,

Re: Parallel processing of big file

2013-08-16 Thread Claus Ibsen
Hi Would it be possible for you to put this into a .zip file as a little ready to run example? Then the Camel team and others can use that to investigate. In your use-case we may be able to optimize the AggregateOnTheFlyTask when using the splitter. On Fri, Aug 16, 2013 at 11:25 AM, cesar.tl wr

Re: Externalizable and the activemq classpath

2013-08-16 Thread Claus Ibsen
Hi There is a ActiveMQ mailing lists where this question is better posted. On Fri, Aug 16, 2013 at 10:35 AM, Maurice wrote: > Does activeMQ need our self created classes on its classpath if i externalize > these objects into java primitive types? My research sofar indicates that a > jms message

Re: Camel Hibernate : org.hibernate.HibernateException: persist is not valid without active transaction

2013-08-16 Thread Claus Ibsen
You can try camel-jpa instead and use JPA which Hibernate also support. On Fri, Aug 16, 2013 at 11:56 AM, anand_tech wrote: > Hi, > > I am trying to do a small poc with camel-hibernate component. First my > versions are : > Camel-core 2.9.0 > Camel-hibernate 2.10.0 > Spring - 3.0.6 > Hibernate -

Re: MTOM message part not formatted correctly according to RFC 1341 using CRLFLF instead of CRLFCRLF

2013-08-16 Thread Claus Ibsen
What version of Camel and CXF do you use? And what is your JDK and OS you use? On Fri, Aug 16, 2013 at 1:08 AM, Clay wrote: > A .Net WCF client is throwing a parsing error on the MTOM message returned > from our Camel endpoint. > > Looking at the message sent by Camel in WireShark, we see the hea

Re: camel routes suspend /resume

2013-08-16 Thread Claus Ibsen
Use stop/start for the netty route On Fri, Aug 16, 2013 at 10:24 AM, kiranreddykasa wrote: > Hi > > Netty is still accepting new connections and new message even though it is > suspended. > > I'm able to suspend and resume routes by jmx via jconsole. > When I'm suspending second route it's workin

Camel Hibernate : org.hibernate.HibernateException: persist is not valid without active transaction

2013-08-16 Thread anand_tech
Hi, I am trying to do a small poc with camel-hibernate component. First my versions are : Camel-core 2.9.0 Camel-hibernate 2.10.0 Spring - 3.0.6 Hibernate - 3.6.0 Below is my route : from("direct:foo") .process(new Processor() { @

Parallel processing of big file

2013-08-16 Thread cesar.tl
Exactly like the example shown in Chapter 10 of Camel in Action, I need to process a large csv file (~4m lines). Without parallel processing it takes about 30 seconds to process the file. I had good hope when I discovered the parallel processing feature in Camel. However it doesn't not improve the

Re: camel threshold

2013-08-16 Thread Claus Ibsen
Yes its all in memory based. On Wed, Aug 14, 2013 at 12:09 PM, kiranreddykasa wrote: > Hi > > Thanks for reply. > > One more clarification > > There is request time out option in netty right , > For handing time outs also any in-memory queue will be used ? > > Because there may be chances we ge

Externalizable and the activemq classpath

2013-08-16 Thread Maurice
Does activeMQ need our self created classes on its classpath if i externalize these objects into java primitive types? My research sofar indicates that a jms message type of bytestream with externalize should do the trick to avoid the classpath issue. -- View this message in context: http://cam

Re: camel threshold

2013-08-16 Thread kiranreddykasa
hi Any update regarding netty request time out? - Regards kiran Reddy -- View this message in context: http://camel.465427.n5.nabble.com/camel-threshold-tp5737136p5737383.html Sent from the Camel - Users mailing list archive at Nabble.com.

camel routes suspend /resume

2013-08-16 Thread kiranreddykasa
Hi Netty is still accepting new connections and new message even though it is suspended. I'm able to suspend and resume routes by jmx via jconsole. When I'm suspending second route it's working correctly, i.e it stopped processing messages. Where as if I'm suspending first route netty is still

Accessing SSL secured web services

2013-08-16 Thread Gnanaguru S
Hi, I am have a web service secured by SSL. Which is the right camel component to access this web service, where I can specify the keystores/truststores ? I went through some examples, I am confused with HTTP, Jetty & CXF components. Thanks Guru @gnanagurus -- View this message in contex