Re: Problems with Camel Mail (IMAP) Attachments and JBoss

2013-05-13 Thread Claus Ibsen
Hi How do you deploy your application to JBoss 7? If you have a WAR then maybe the problem is that you have java mail and attachments api JARs in the WEB-INF/lib directory which conflicts with what JBoss has out of the box. Or vice-versa. On Tue, May 7, 2013 at 2:30 PM, b.fischer

Issues with spring-ws component

2013-05-13 Thread Vashisth, Sunil
Modifying subject as it's an issue with spring-ws component and not camel context I've tried upgrading to camel 2.10.4 but issue still occurs intermittently Any pointers? Spring configuration is copied below Thanks -Original Message- From: Vashisth, Sunil

camel-stax use a custom bean handler not a class

2013-05-13 Thread timactive
Hi, I have a generic bean handler(extend DefaultHandler), this bean need a param to work correctly such as the nodeRoot, nodeItem etc.. I want use this bean with camel-stax but i think is not possible : route from uri=file:/tmp/inbox/ to uri=stax:orderHandler / /route bean

Re: Amazon DynamoDB Support

2013-05-13 Thread Bilgin Ibryam
Hi eugene, I added ddb component some time ago. You are right, it doesn't have consumer, because I couldn't identify good use cases for it: like polling an entity or getting some callbacks from DynamoDB. But many components have only a producer with operations for retrieving data. That's also the

Re: camel-stax use a custom bean handler not a class

2013-05-13 Thread Claus Ibsen
Hi Not sure if its possible to refer to a bean from the registry. Feel free to dive into the source code of camel-stax and see what needs to be done to support your use-case. We love contributions http://camel.apache.org/contributing.html So we could maybe just try to lookup a bean from the

Re: camel-stax use a custom bean handler not a class

2013-05-13 Thread timactive
Thank Claus. Indeed, the code source camel-stax say : In processor ContentHandler handler = contentHandlerClass.newInstance(); In Component processor.setContentHandler(getCamelContext().getClassResolver(), remaining); So it is not possible actually. I am currently discussing with Romain

Streaming a PDF from remote machine

2013-05-13 Thread Chinababu Illa
Hi All, I have a requirement to read a pdf as binary stream from remote application within specified time. My application code is using BufferedInputStream to read from remote application, code is implemented in Java. While reading the data, I need to apply 2 different timeouts: 1) a timeout

Re: Load balancing in Camel

2013-05-13 Thread nikagra
Hi Is there any updates on how to use load balancer with dynamic router. Thanks in advance -- View this message in context: http://camel.465427.n5.nabble.com/Load-balancing-in-Camel-tp473773p5732402.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Streaming a PDF from remote machine

2013-05-13 Thread Willem jiang
Are you using FTP to download the file? I'm not sure how the BufferedInputStream is involved. If the file is downloaded, the BufferedInputStream will never time out. If the BufferedInputStream has the timeout mechanism, I don't think you need to check if the File is download. -- Willem

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

2013-05-13 Thread apatel
Claus, I am wondering why responses are difference when i use try-catch and when i remove the try-catch? Thanks, Amit Patel -- View this message in context:

Re: camel-stax use a custom bean handler not a class

2013-05-13 Thread Romain Manni-Bucau
Hi created https://issues.apache.org/jira/browse/CAMEL-6356 *Romain Manni-Bucau* *Twitter: @rmannibucau https://twitter.com/rmannibucau* *Blog: **http://rmannibucau.wordpress.com/*http://rmannibucau.wordpress.com/ *LinkedIn: **http://fr.linkedin.com/in/rmannibucau* *Github:

Re: How to use camel servlet as httpproxy

2013-05-13 Thread Claus Ibsen
Hi If you have a small sample project as a .zip or .tar then if some people have the time, they can take a look. Though no promises, as most of us is busy with all sorts of work stuff. The query parameters (assuming you refer to foo=barme=you, then they ought to be transferred when bridging.

rest webservice can't read parameteres

2013-05-13 Thread takidean
Hi i use to send many parameters in my url but i find that message body catch only the first parameters this is my code: MessageResource @GET @Path(/id/{type}) @Produces(text/xml) public String getCustomer(@QueryParam(id) String n,@QueryParam(type) String s) { return ok; } /**

Re: rest webservice can't read parameteres

2013-05-13 Thread Sergey Beryozkin
This is because you mistyped the type of the parameter, the 2nd parameter should be annotated with @PathParam instead Sergey On 13/05/13 14:45, takidean wrote: Hi i use to send many parameters in my url but i find that message body catch only the first parameters this is my code:

Re: camel-stax use a custom bean handler not a class

2013-05-13 Thread timactive
Hi Romain, cool!! thank, i test this now!!! Le 13/05/2013 15:33, Romain Manni-Bucau [via Camel] a écrit : Hi created https://issues.apache.org/jira/browse/CAMEL-6356 *Romain Manni-Bucau* *Twitter: @rmannibucau https://twitter.com/rmannibucau* *Blog:

Re: rest webservice can't read parameteres

2013-05-13 Thread takidean
thanks for the reply but i have to send many qyeryparams and i cant extract them in the message body .i have to resolve the problem from camel -- View this message in context: http://camel.465427.n5.nabble.com/rest-webservice-can-t-read-parameteres-tp5732407p5732411.html Sent from the Camel -

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

2013-05-13 Thread Claus Ibsen
Hi If you use transform instead of setBody then it ought to work. It seems like a little bug in setBody On Mon, May 13, 2013 at 3:25 PM, apatel apa...@asg.bellsouth.net wrote: Claus, I am wondering why responses are difference when i use try-catch and when i remove the try-catch? Thanks,

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

2013-05-13 Thread Claus Ibsen
Hi Okay found the problem. When you copy the headers from IN to OUT in your custom code, you should do like this exchange.getOut().getHeaders().putAll(headers); On Mon, May 13, 2013 at 3:25 PM, apatel apa...@asg.bellsouth.net wrote: Claus, I am wondering why responses are difference

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

2013-05-13 Thread Claus Ibsen
Hi I found the source of the problem and logged a ticket to fix/improve this https://issues.apache.org/jira/browse/CAMEL-6357 On Mon, May 13, 2013 at 6:08 PM, Claus Ibsen claus.ib...@gmail.com wrote: Hi Okay found the problem. When you copy the headers from IN to OUT in your custom code,

Re: How to use camel servlet as httpproxy

2013-05-13 Thread kalyan
I noticed that there was a problem in stub implementation and so GET requests were not working properly. I don't think it is an issue with camel anymore. However, I notice that Camel specifically removes Content-Type header for GET requests even when the incoming request (to say servlet:///test)

How do I change message body without changing response status

2013-05-13 Thread kalyan
I have a simple RouteBuilder as follows: RouteBuilder routeBuilder = new RouteBuilder() { @Override public void configure() { onException(HttpOperationFailedException.class).handled(true) .process(new Processor() { @Override

Re: How do I change message body without changing response status

2013-05-13 Thread Claus Ibsen
Just set a header with the key Exchange.HTTP_RESPONSE_CODE and the integer for the code you want to use. Then Camel will use that. On Mon, May 13, 2013 at 6:53 PM, kalyan register.kal...@gmail.com wrote: I have a simple RouteBuilder as follows: RouteBuilder routeBuilder = new RouteBuilder()

How to persist data from aggregator?

2013-05-13 Thread RTernier
I'm having an issue with aggregator. I have an incoming Web Service request that will be split into 2 messages and have the responses of both web requests aggregated together. This works fine, and I do get a good aggregated message within the aggregation route. However, once I'm out of that

Re: add bean to registry in custom endpoint?

2013-05-13 Thread javamonkey79
Hmm, would it make sense for the Spring registry to be mutable? I can definitely see the case for unit testing (as I have submitted: https://issues.apache.org/jira/browse/CAMEL-6342), however, I'm not sure about the live registry. It seems that non-Spring allows for additional objects to be added

Re: large war or several smaller wars

2013-05-13 Thread anoordover
My JNDI solution doesn't seem to work. It seems as though I get a serialized object from JNDI. As I start producing messages new connections are created. Instead of reusing the pooledConnections. What i did is: 1. created a separate project that registers a

Re: large war or several smaller wars

2013-05-13 Thread Preben.Asmussen
have you tried activemq resource adapters http://activemq.apache.org/resource-adapter.html It should work with jboss If you run into any trouble with this try the activemq forum http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html they should be able to help with activemq setup.

Re: large war or several smaller wars

2013-05-13 Thread Christian Posta
can you try with the activemq resource adapter? I found this, might be useful: On Mon, May 13, 2013 at 11:34 AM, Preben.Asmussen p...@dr.dk wrote: have you tried activemq resource adapters http://activemq.apache.org/resource-adapter.html It should work with jboss If you run into any

Re: large war or several smaller wars

2013-05-13 Thread Christian Posta
Sorry, sent before pasting the link... https://community.jboss.org/wiki/IntegratingActiveMQWithJBoss On Mon, May 13, 2013 at 12:47 PM, Christian Posta christian.po...@gmail.com wrote: can you try with the activemq resource adapter? I found this, might be useful: On Mon, May 13, 2013 at

Re: Simple Example of Using Redis Subscriber Doesn't work

2013-05-13 Thread soumya_sd
I've posted a solution on the stackoverflow thread in case someone needs it in the future. -- View this message in context: http://camel.465427.n5.nabble.com/Simple-Example-of-Using-Redis-Subscriber-Doesn-t-work-tp5732138p5732445.html Sent from the Camel - Users mailing list archive at

impliedDecimalSeparator not working for numbers starting with 0

2013-05-13 Thread double_nill
With Camel 2.11 the impliedDecimalSeparator appears to have a problem with numbers starting with 0. For example: @DataField(pos = 1, precision = 10, length = 11, impliedDecimalSeparator = true) private BigDecimal foobar; value: 0123567 Throws an error Non-terminating decimal

Steps to replace a direct call by a JMS proxy?

2013-05-13 Thread Al Ferguson
Hi, I currently have a Java application that sends directly messages to a queue using a Spring JmsTemplate: I would like to take advantage of the facilities of Camel Throttling but I do not see how to define my route. Could someone help me and tell me what I have to do? Regards, Al. F --

onException: Global declaration at CamelHttpTransportServlet

2013-05-13 Thread kalyan
When a RouteBuilder defines onException in the following way, is it available for all RouteBuilders of the same CamelContext ? RouteBuilder routeBuilder = new RouteBuilder() { @Override public void configure() {

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

2013-05-13 Thread apatel
Would you please check same issue exist in choice when choice or not? -- View this message in context: http://camel.465427.n5.nabble.com/Route-with-doTry-calling-service-does-not-have-exchange-in-exchange-out-does-not-work-tp5732293p5732427.html Sent from the Camel - Users mailing list

Re: Slow startup of routes

2013-05-13 Thread Willem jiang
Hi, It looks like Camel takes lots of time to create a new Http endpoint, maybe you need to consider to do some caching work for it. BTW, whyou you need to se the soTimeout per endpoint. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com |

Using CamelContextHelper the DataHandler cannot getInputStream

2013-05-13 Thread Josiah Mangiameli
Hey All, I am seeing some unexpected behaviour when using the CamelContextHelper. I am using the CamelContextHelper to generate an endpoint and receive an exchange. The exchange is an email message with a normal pdf attached. However when I attempt to get the Input Stream from the attachment

interceptFrom with a new consumer

2013-05-13 Thread samslara
Hello, I have a problem which I'm unsure on how to solve. So I have a route, say R1, that's pretty simple: route id=R1 from uri=jetty:http://localhost:8080/test/ bean ref=someProcessor/ /route Now someProcessor may take a long time to return, so I want to alter the route's behavior such

Re: impliedDecimalSeparator not working for numbers starting with 0

2013-05-13 Thread Willem jiang
It looks we need to add a rounding mode when calling the divide method. The default value which is used in the divide method is RoundingMode.UNNECESSARY. You will get the exception when the divide method don't know how to round. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat

Numbers of lines in a flat file

2013-05-13 Thread Baalu
Hello, I am trying to count the number of the lines in a flatfile, once I get that value I need to write it back to the flat file as part of the file footer. For now I did this: from(direct:fileLinecount).routeId(fileCount)

Re: Steps to replace a direct call by a JMS proxy?

2013-05-13 Thread Christian Posta
May want to take a look at some of the intro material: http://camel.apache.org/getting-started.html Essentially, you'll need to define a route builder that a builds a route like: from(direct:endpoint).throttle().to(jms:queueName) http://camel.apache.org/cookbook.html

Re: Numbers of lines in a flat file

2013-05-13 Thread Christian Posta
Try getting it from the headers. On Mon, May 13, 2013 at 7:27 PM, Baalu golivams...@gmail.com wrote: Hello, I am trying to count the number of the lines in a flatfile, once I get that value I need to write it back to the flat file as part of the file footer. For now I did this:

Re: impliedDecimalSeparator not working for numbers starting with 0

2013-05-13 Thread Willem jiang
I just found there are some bugs in the code, so I fill a JIRA[1] for it. [1]https://issues.apache.org/jira/browse/CAMEL-6358 -- 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

Re: Slow startup of routes

2013-05-13 Thread hussainpirosha
Thanks Willem, I am not clear how can we use caching for component creation, please elaborate on it. Need to set the soTimeout per endpoint since each dispatch message contain its endpoint and timeOut settings. Thanks, Hussain -- View this message in context: