Re: How to use camel servlet as httpproxy

2013-05-10 Thread Claus Ibsen
Hi Yeah see also http://camel.apache.org/how-to-use-camel-as-a-http-proxy-between-a-client-and-server.html On Fri, May 10, 2013 at 8:03 PM, kalyan wrote: > Sorry for the lame question. The answer is at camel-servlet documentation > . > > I needed from("se

Re: CXF stop working after upgrade to 2.11

2013-05-10 Thread Claus Ibsen
Hi If you run the app in Tomcat, then you should use the CXF servlet transport cxf-rt-transports-http-servlet And NOT the jetty cxf-rt-transports-http-jetty You can find more details about the CXF servlet transport at the CXF web site. On Sat, May 11, 2013 at 12:49 AM, martin11 wrot

Re: How to use camel servlet as httpproxy

2013-05-10 Thread kalyan
Sorry for the lame question. The answer is at camel-servlet documentation . I needed from("servlet:///hello?matchOnUriPrefix=true") -- View this message in context: http://camel.465427.n5.nabble.com/How-to-use-camel-servlet-as-httpproxy-tp5732297p57323

How to use camel servlet as httpproxy

2013-05-10 Thread kalyan
Hello, I'm currently working on Camel with JavaDSL. what I would like to have is: from("servlet:///route*").to("http:///test/*?bridgeEndpoint=true") I would like to have both the stars ("*") in from() and to() as same. Is this possible ? Regards, Kalyan -- View this message in context: ht

Re: camel-jsch in sink mode for one time copy from a remote host using SCP

2013-05-10 Thread kzmeyao
Sorry for reviving an old thread, but is there an update on this? I would like to use this as well. Thanks! -- View this message in context: http://camel.465427.n5.nabble.com/camel-jsch-in-sink-mode-for-one-time-copy-from-a-remote-host-using-SCP-tp5680887p5732308.html Sent from the Camel - Us

Re: Setting Body in restlet route without to does not work

2013-05-10 Thread apatel
Appreciated for your help! Same issue occurred in servlet route also. Below route doen't return body http://camel.apache.org/schema/spring"; trace="true"> "Servlet test" Below route returns body Servlet test http://camel.apache.org/schema/spring"; trace="true">

Question on CamelServlet's matchOnUriPrefix

2013-05-10 Thread kalyan
Hello, I'm using camel servlet as a proxy for a restful service. The following scenario seems to work fine: WAR1: from("/users?matchOnUriPrefix=true") .to("http://:/?bridgeEndpoint=true"); The above logic works for "http://localhost:8080/camel/rs/users/123";. It gets resolved to "http://://peopl

CXF stop working after upgrade to 2.11

2013-05-10 Thread martin11
Hello, after upgrade Camel from 2.10.4 to 2.11.0 I got an exception: Caused by: java.lang.ClassNotFoundException: org.apache.cxf.common.util.PropertyUtils at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) ~[na:1.6.0_26] at org.a

Re: large war or several smaller wars

2013-05-10 Thread anoordover
Sorry. I didn't realize that the environment would make such a difference. We have jboss 5 as and activemq standalone running. Until now i couldn't find an easy way to register a pooledconnection in jndi inside jboss as i suppose i need to do. -- View this message in context: http://camel.46542

Re: large war or several smaller wars

2013-05-10 Thread Preben.Asmussen
I guess it depends on your runtime environment and appserver. Here are some articles for tomcat http://pragmaticintegrator.wordpress.com/2011/01/17/combining-activemq-tomcat-and-mule-esb/ http://www.tomcatexpert.com/blog/2010/12/16/integrating-activemq-tomcat-using-local-jndi -- View this messa

Re: large war or several smaller wars

2013-05-10 Thread anoordover
I was already looking into using JNDI for registering an AmqJNDIPooledConnectionFactory but I couldn't find out how to register this using an existing ActiveMQConnectionFactory (spring bean). Does anybody have an example? Preben.Asmussen wrote > Seems like it would be nice to have a connection poo

Re: large war or several smaller wars

2013-05-10 Thread Preben.Asmussen
Seems like it would be nice to have a connection pool at jvm or appserver leve so that you can reuse connections between wars, and have a centralized pool. I'm not sure if this is doable with activemq. -- View this message in context: http://camel.465427.n5.nabble.com/large-war-or-several-smal

Re: large war or several smaller wars

2013-05-10 Thread anoordover
Currently we create beans for interacting with activemq in each project. So a lot of poolConnectionFactories get created. This creates a lot of connections to activemq and we also must invest a lot to change this configuration. The pro to this aproach is that change can be implemented standalone wi

Re: large war or several smaller wars

2013-05-10 Thread Bruno Borges
Not sure if this is really a Camel issue, is it? Could you please clarify the problem? *Bruno Borges* (11) 99564-9058 *www.brunoborges.com* On Fri, May 10, 2013 at 12:25 PM, anoordover wrote: > What should we do if we use camel and activemq? > 1. Should we create much small wars (this is what

Re: camel producer ftp bug

2013-05-10 Thread Bengt Rodehav
The bug I found was in camel-core and I think it affects ftp as well. Not sure if you have found the exact same bug (I hope so otherwise we have yet another bug). You could try the patch I attached to the JIRA and see if your problems go away. /Bengt 2013/5/10 Ioan Eugen Stan > Hello, > > I'm

large war or several smaller wars

2013-05-10 Thread anoordover
What should we do if we use camel and activemq? 1. Should we create much small wars (this is what we currently do) 2. One large war 3. Several wars which group functionality according to the type of functionality (e.g. create one war for all functions that create file, create one war for all functi

Route with doTry calling service does not have exchange.in=exchange.out does not work

2013-05-10 Thread apatel
Apache Camel 2.11.0, 2.10.4 Below route does not return "foo" = http://camel.apache.org/schema/spring"; trace="true"> bar fooName bar java.lang.Throwable

Re: Synchronous InOnly with new message

2013-05-10 Thread Willem jiang
What you want to do with the initial message body? If you don't need that body object anymore , you can set it to be null. -- 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://willem

Re: Setting Body in restlet route without to does not work

2013-05-10 Thread Claus Ibsen
Hi Yeah its a little bug I have logged a ticket https://issues.apache.org/jira/browse/CAMEL-6349 On Fri, May 10, 2013 at 4:08 PM, apatel wrote: > > Below route does not return body, because route don't have any > > http://camel.apache.org/schema/spring"; > trace="true"> > > > "Restful

Re: Setting Body in restlet route without to does not work

2013-05-10 Thread Claus Ibsen
What version of Camel do you use? On Fri, May 10, 2013 at 4:08 PM, apatel wrote: > > Below route does not return body, because route don't have any > > http://camel.apache.org/schema/spring"; > trace="true"> > > > "Restful test" > > > > > > Below route does return body, because ro

Re: propagating multiple header entries from cxf to camel

2013-05-10 Thread Claus Ibsen
Hi Aki Yeah it should add those values as a List when if you add a 2nd value to the same key. We do the same in http based components See the appendHeaders method on https://git-wip-us.apache.org/repos/asf?p=camel.git;a=blob;f=components/camel-http/src/main/java/org/apache/camel/component/http/he

Setting Body in restlet route without to does not work

2013-05-10 Thread apatel
Below route does not return body, because route don't have any http://camel.apache.org/schema/spring"; trace="true"> "Restful test" Below route does return body, because route does have http://camel.apache.org/schema/spring"; trace="true"> "Restful test"

Re: split an InputStream?

2013-05-10 Thread Claus Ibsen
Hi See the links on this page about splitting big XML files http://camel.apache.org/articles On Thu, May 9, 2013 at 11:01 AM, PJ Walstroem wrote: > hello, > is it possible to use a splitter on an InputStream? I receive a big XML-file > via an HttpResponse.getEntity().getContent() and I have used

Re: camel producer ftp bug

2013-05-10 Thread Ioan Eugen Stan
Hello, I'm using plain FTP and I'm uploading into my home folder. You can check out the entire log here [1]. They might be related but not sure yet. I will have to investigate sometime late next week. Thanks, [1] https://paste.apache.org/9CHw On Fri, May 10, 2013 at 10:25 AM, Bengt Rodehav wro

Re: How to avoid sending message headers with mail component ?

2013-05-10 Thread Claus Ibsen
Hi Just implement a custom strategy and then register that in the registry, eg if spring then And then configure the endpoint or component to use your filter. ?headerFilterStrategy=#myCustomFilter On Wed, May 8, 2013 at 3:53 PM, AlanFoster wrote: > Hi, > > Are there any examples of using a

Re: using or operator in twitter keywords search

2013-05-10 Thread Claus Ibsen
Hi Thanks for sharing that link to this search page. I have added a note to the Camel twitter docs. On Thu, May 9, 2013 at 10:42 PM, Bruno Borges wrote: > Twitter has its own operators. Just use them in your "keywords" parameter: > > https://support.twitter.com/articles/71577-using-advanced-sear

Re: Issue with Camel-aws (SQS) and aws-java-sdk-1.4.3

2013-05-10 Thread Claus Ibsen
Hi I suggest to use the AWS version that Camel 2.10.4 uses. On Thu, May 9, 2013 at 3:05 PM, Shauna Harris wrote: > Hi there, > > I'm getting an odd error trying to use Amazon SQS with Camel: > > java.lang.NoSuchFieldError: timeOffset > at > com.amazonaws.services.sqs.AmazonSQSClient.invo

Re: Point notation in @Header value

2013-05-10 Thread Claus Ibsen
No @Header is for referring to a header by its name You can use @Simple @OGNL @Groovy etc to do method calls. On Fri, May 10, 2013 at 3:03 PM, horyna wrote: > Hi, > > camel doesnot support point notation in @Header value? > > Example: > public void > someMethod(@Header(value="instance.classmembe

Point notation in @Header value

2013-05-10 Thread horyna
Hi, camel doesnot support point notation in @Header value? Example: public void someMethod(@Header(value="instance.classmemberattribute.attribute") String someValue) class instance { public SomeClass getClassmemberattribute() } class SomeClass { public getAttribute() } -- View this me

Re: Incorrect info in Camel Quartz component.

2013-05-10 Thread Claus Ibsen
Hi Thanks for reporting. I am updating the docs. On Fri, May 10, 2013 at 9:37 AM, Daniel H wrote: > Hi, > > I noticed that at the location http://camel.apache.org/quartz.html, the > following is stated: > > "By default Quartz will look for a quartz.properties file in the root of the > classpath.

Re: Using % sign in spring route sql select fails

2013-05-10 Thread nprajeshgowda
Hi, i used the encoding, but still have some issue. Rather my problem is little different. Let me take you through. so that you would be able to suggest me.. We have camel routes defined as following, the "ana" is from(JmsQNames.GETUSER + comURI + getUserQueueProps)

Re: How to create a generic SOAP consumer?

2013-05-10 Thread Aki Yoshida
If you want to have the soap header part processed by CXF and let the payload (i.e,, the soap body content) generically to be propagated to the camel route, you should configure the cxf endpoint using the jaxws generic provider mode (i.e, use PAYLOAD mode with no wsdl nor serviceClass given). I thi

Synchronous InOnly with new message

2013-05-10 Thread nikagra
Hello I'm looking for a way to implement synchronous InOnly with new message body (wich is empty in my case) My route makes some processing of some task and I want in some moments update status of this processing. Number of statuses is quite large. So I've decided to make updating synchronous to

Re: JPA FAB fails to start

2013-05-10 Thread Claus Ibsen
Hi You should use the JBoss Fuse forums for your questions about that product https://community.jboss.org/en/jbossfuse On Fri, May 10, 2013 at 10:34 AM, lmanchanda75 wrote: > Hi, > > I am working on a simple JPA app on Jboss Fuse 6.0, which is using openJPA > as a provider, attempts to connect t

Proxy Settings not working on Jboss Fuse 6.0

2013-05-10 Thread lmanchanda75
Hi, I am working on Fuse on Windows 7, the default maven repository is under .m2/repository. Maven under Fuse IDE and from the command line also uses the same settings and repository. Both the IDE and command line tool works fine to get download the dependencies. I tried installing cbr from the e

Re: Where to download camel 2.11.1 jars

2013-05-10 Thread David Karlsen
AFAIK it is not released yet. Try the 2.11.1–SNAPSHOT version. Or one of the other snapshot versions. Den 10. mai 2013 09:39 skrev "preety somani" følgende: > Hi, > > I want to use features of camel2.11.1 to set the soap version in camel > spring ws for a soap end point. But not able to find th

java.lang.NoClassDefFoundError: org/w3c/dom/Node

2013-05-10 Thread lmanchanda75
Hi, We are trying to use Smooks library, everything gets installed properly as a FAB and get the following Import-Package List, Import-Package = com.bea.xml.stream;resolution:=optional, com.sun.jdi;resolution:=optional, com.sun.jdi.connect;resolution:=optional, co

JPA FAB fails to start

2013-05-10 Thread lmanchanda75
Hi, I am working on a simple JPA app on Jboss Fuse 6.0, which is using openJPA as a provider, attempts to connect to postgres. It installs, but when starting it fails with the following error. I am attaching the pom.xml, blueprint.xml and persistence.xml being used for the project. I see some simi

Re: Where to download camel 2.11.1 jars

2013-05-10 Thread Christian Müller
Camel 2.11.1 isn't released until now. You can download the SNAPSHOT at https://repository.apache.org/content/repositories/snapshots/org/apache/camel/apache-camel/2.11.1-SNAPSHOT/ Best, Christian On Fri, May 10, 2013 at 9:23 AM, preety somani wrote: > Hi, > > I want to use features of camel2.

Where to download camel 2.11.1 jars

2013-05-10 Thread preety somani
Hi, I want to use features of camel2.11.1 to set the soap version in camel spring ws for a soap end point. But not able to find the download for came 2.11.1 version. Thansk, Preety -- View this message in context: http://camel.465427.n5.nabble.com/Where-to-download-camel-2-11-1-jars-tp57322

Incorrect info in Camel Quartz component.

2013-05-10 Thread Daniel H
Hi, I noticed that at the location http://camel.apache.org/quartz.html, the following is stated: "By default Quartz will look for a quartz.properties file in the root of the classpath. If you are using WAR deployments this means just drop the quartz.properties in WEB-INF/classes" That doesn´t se

Re: camel producer ftp bug

2013-05-10 Thread Bengt Rodehav
I wonder if this is also due to the issue I found: https://issues.apache.org/jira/browse/CAMEL-6309 BTW, your logfile got lost. Perhaps you can inline parts of it in a mail. /Bengt 2013/5/9 Ioan Eugen Stan > Hello, > > I'm using camel-2.11.0 with camel ftp for a route and I'm hitting the >

Re: modifying endpoint

2013-05-10 Thread Madhukar
Hi. I am also facing the same problem. It is appending the entry REST API's context - /rest/clm/request to the TO address- http://172.20.33.207:7072/cache-service/rest/cacheservice/CLM/SESSION-CONTEXT/01/SN123456789/rest/clm/request and I am getting the a 404 response code. Any workarounds or sol