Camel : httpClient.soTimeout is not working on http4

2014-01-30 Thread Manisha
The issue is: We have set httpClient.soTimeout for HTTP requests but it is not working. We are using Spring DSL. 1. It is added as a query parameter in a processor and set to HTTP_QUERY or HTTP_PATH . It is appended to the request but timeout is not applicable. String httpTimeout = "?httpClient.

Problems with dynamic throttling

2014-01-30 Thread pisulam
Hi, I am currently having some problems with dynamic throttling. I created a route which uses the throttle processor, and set a header to be used to determine the rate. Depending on the situation the rate will change between two distinct values. This does not work very well though. I created some

Excelfile import in java and transfer in a Database

2014-01-30 Thread Wolpe1990
Hi, at first sry for my bad english... I have a little problem. I`m a trainee in a german company because i`m in a education... Ok now let's talk about my little problem. I have to write a program who imports a Excelfile (in the Excelfile are customerdatas (adress,name,etc) After the import i have

Re: Camel : httpClient.soTimeout is not working on http4

2014-01-30 Thread Claus Ibsen
Hi This has been debated recently. I suggest to search this forum to find that talk and the answer is there. On Thu, Jan 30, 2014 at 7:42 AM, Manisha wrote: > The issue is: > > We have set httpClient.soTimeout for HTTP requests but it is not working. We > are using Spring DSL. > > 1. It is added

Re: Problems with dynamic throttling

2014-01-30 Thread pisulam
By the way, I am aware that the test will fail, even if the dynamic throttling did work correctly, as I did not change the expected time. But as one third of the messages (=30) should go out with rate of 1 per second, I would expect something around 15s , surely not 284 ms. If I change the rate fr

Re: Excelfile import in java and transfer in a Database

2014-01-30 Thread Richard Kettelerij
Hi, Welcome to the Camel community! Depending on where the Excel files resides you can use the Camel file component (http://camel.apache.org/file2) or FTP, SFTP, SMB etc components to pickup the Excel file. Now you need to process the file. Currently there's no out-of-the-box dataformat (http://

Re: Excelfile import in java and transfer in a Database

2014-01-30 Thread Richard Kettelerij
Typo, in the last sentence, should be "if the *are* simple " On Thu, Jan 30, 2014 at 11:09 AM, Richard Kettelerij < richardkettele...@gmail.com> wrote: > Hi, > > Welcome to the Camel community! > > Depending on where the Excel files resides you can use the Camel file > component (http://came

Re: File Exists

2014-01-30 Thread Claus Ibsen
On Thu, Jan 30, 2014 at 4:49 AM, JKemp wrote: > Hey guys, > > I'm trying to write a Camel route that will only kick off once two files are > present on the server, but I can't seem to figure out an easy way to do > this. I was hoping there'd be a Simple command for this or some feature in > the F

Re: Excelfile import in java and transfer in a Database

2014-01-30 Thread Wolpe1990
Thank you very much for your extensively description. -- View this message in context: http://camel.465427.n5.nabble.com/Excelfile-import-in-java-and-transfer-in-a-Database-tp5746612p5746619.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Mail attachment, zip files goes to message body

2014-01-30 Thread kalber
Hi thanks for response, my problem was ( and this also on log4j ) that i had geronimo-mail.jar on my classpath. Excluding it, work's fine. thanks karlheinz - kh -- View this message in context: http://camel.465427.n5.nabble.com/Mail-attachment-zip-files-goes-to-message-body-tp5746400p57

RE: File Exists

2014-01-30 Thread Ravindra.Godbole
If custom filter is written then it will return true when both files are present and then first file will be picked up but what about the second file. During processing of second file, custom filter will return false ? Need to check how it behaves ? -Original Message- From: Claus Ibs

Re: Mail attachment, zip files goes to message body

2014-01-30 Thread Claus Ibsen
On Thu, Jan 30, 2014 at 11:33 AM, kalber wrote: > Hi > thanks for response, my problem was ( and this also on log4j ) > that i had geronimo-mail.jar on my classpath. > > Excluding it, work's fine. > Ah thanks for sharing your solution. Yeah favor using javax mail JAR that works well. > thanks

Re: File Exists

2014-01-30 Thread Claus Ibsen
On Thu, Jan 30, 2014 at 11:35 AM, wrote: > > If custom filter is written then it will return true when both files are > present and then first file will be picked up but what about the second file. > > During processing of second file, custom filter will return false ? > > Need to check how it b

Re: How to redirect an income http get request with new query parameter

2014-01-30 Thread Shing Hing Man
Below is a way of doing http redirect in Camel, and it is  from a test case inside Camel jetty component distribution. https://fisheye6.atlassian.com/browse/camel-git/trunk/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/HttpRedirectTest.java?r=9d97b5b2bda394f434ed3696fa1e3

Deploying REST service on running camel:jetty instance

2014-01-30 Thread bijoy
Hi, I want to expose REST services on top of camel:jetty server. I'm planning to use restlet or cxfrs component for realizing the REST services. By default both the components deploy the services on top of internal jetty server if no external containers are used. But I want to use camel:jetty com

Transaction among the routes in a routebuilder

2014-01-30 Thread Ali, Mohammad
Hi, I have a camel process on broader perspective: JMS>Parser->Formatter->JMS This process consists of the following routes in a Routebuilder JMS> SEDA Queue1 SEDA Queue1 ->Parser Parser-> SEDA Queue2 SEDA Queue2 --->Formatter Formatter--> SEDA Queue3 SEDA Queue3

Re: Transaction among the routes in a routebuilder

2014-01-30 Thread gquintana
As soon as you use a SEDA endpoint, the message is passed to a different thread and the transaction context is lost by the receiving thread. Said differently, transaction is not propagated across different threads. -- View this message in context: http://camel.465427.n5.nabble.com/Transaction-a

Camel CMIS - What should the endpoint URL look like?

2014-01-30 Thread hardikdesai81
Hi, I am facing a very basic problem of getting the right URL for connecting to my repository. My CMIS home page comes with the URL: http://localhost:8080/chemistry-opencmis-server-jcr/ I am able to see 3 workspaces in my repository through browser using this URL: http://localhost:8080/chemis

Obtain current route from custom component

2014-01-30 Thread RobO
Hi, I have a custom camel component I've written which connects to another server. I'd like to be able to suspend the route which called this component if the connection attempt fails. How can I obtain the currently executing routeid from the component so that I can suspend the route? I am curren

Breaking change is bean parameter binding from Camel 2.10 to 2.12?

2014-01-30 Thread toomanyedwards
Hi all, We are attempting to upgrade from Camel to 2.10 to Camel 2.12, but are experiencing what appears to be a backwards incompatibility in the bean method parameter mapping between 2.10 and 2.12. Here's a distilled version of the issue. We have routes with Java DSL that so do something like

Re: Breaking change is bean parameter binding from Camel 2.10 to 2.12?

2014-01-30 Thread Claus Ibsen
Hi Yeah calculateFooHeaderValue() means the no-arg method. So you should remove the () to let Camel pick any of the methods with that name, that fits the best. On Thu, Jan 30, 2014 at 6:15 PM, toomanyedwards wrote: > Hi all, > We are attempting to upgrade from Camel to 2.10 to Camel 2.12, but

Unit test with mock end point failure

2014-01-30 Thread Shing Hing Man
Hi,   I am using Camel 2.11, and I have the following unit test that uses Mock end point.  In the last assert in method testRedirect : Assert.assertEquals("foo", nameAct); nameAct is null. I must have done somethin silly and I can see why the above assert fails. I would be grateful if some  ki

Camel CMIS - Unable to perform versioning operation on non versionable node

2014-01-30 Thread hardikdesai81
Hi All, I used the FileUploader as shown below: public class CamelCmisFileUploader extends RouteBuilder { @Override public void configure() throws Exception { from("file://C:/path/metamodel?noop=true&idempotent=false") .process(new

Re: Breaking change is bean parameter binding from Camel 2.10 to 2.12?

2014-01-30 Thread toomanyedwards
This worked for us in 2.10. Was this functionality specifically changed in later versions? -- View this message in context: http://camel.465427.n5.nabble.com/Breaking-change-is-bean-parameter-binding-from-Camel-2-10-to-2-12-tp5746630p5746632.html Sent from the Camel - Users mailing list archiv

Re: Unit test with mock end point failure

2014-01-30 Thread Shing Hing Man
Somehow the query parameter is in the header. The following fixes  my unit test. Exchange exchange0 = exchanges.get(0);         Message messageIn = exchange0.getIn(); //        HttpServletRequest request = messageIn //                .getBody(HttpServletRequest.class);                 //String

Camel-Stomp Component Serialization Issue

2014-01-30 Thread ddang
I have an issue with the camel-stomp component. When I transport String messages over the stomp component and receive the String back from the Stomp broker it is prepended with "ascii: ". Shouldn't Strings be received in the same state they were sent? Here is a hand-written (and likely full of err

Consumer distribituion over connections

2014-01-30 Thread Joshua Watkins
I am looking for a bit of advice. I have been trying to get a better balance of consumer per connection but have run into a bit of a sticky situation. So while using the AMQ 5.8 and the AMQ PooledConnectionFactory[1], I was setting my camel routes with Cache_None to enable more connections from t

Re: File Exists

2014-01-30 Thread JKemp
I think I'm struggling a bit with where to put the filter expression. Say I have a route like this:

Re: Camel : httpClient.soTimeout is not working on http4

2014-01-30 Thread Manisha
Hi I got a similar thread that make my understanding for soTimeout. http://camel.465427.n5.nabble.com/soTimeout-ignored-by-camel-http-component-td5746289.html#a5746290 Thanks:) -- View this message in context: http://camel.465427.n5.nabble.com/Camel-httpClient-soTimeout-is-not-working-on-htt

Re: camel-cxf , return complex type object problem

2014-01-30 Thread nono
Hi Willem, Thanks for the reply and CNY greetings. List and array wrapper are both working, i just unisntall and install bundle on fuse esb and test again. it is ok now :-) List names = (List) msgList.get(0); ArrayList pls = new ArrayList(); for (String s :

Re: File Exists

2014-01-30 Thread Claus Ibsen
Hi See the file component docs http://camel.apache.org/file2 About the filter option, and further down with some examples how to implement and use that, at section - Filter using org.apache.camel.component.file.GenericFileFilter On Fri, Jan 31, 2014 at 2:40 AM, JKemp wrote: > I think I'm strug