Re: Camel throws StackOverflowException while converting message body

2013-08-27 Thread Valery
i tried that, it didn't work. There was the same error but in CxfProducer.class. Code in headerSetterprocessor was copied from CxfProducer (i explained why in comments in HeaderSetterprocessor). Best, valery -- View this message in context:

Re: appending to value in cache

2013-08-27 Thread Claus Ibsen
Hi You would likely need to get the existing value from cache and then append the data to it, and then update the value to the cache. On Mon, Aug 26, 2013 at 8:34 PM, Tyler Durvik phangb...@gmail.com wrote: Yes, you can update a value in a cache but I am having problems trying to append to a

STOMP: Exception: The maximum command length was exceeded

2013-08-27 Thread apara
Hi Group, I am trying to send a message to activeMQ broker via Camel. However, I am getting a Maximum protocol buffer length exeeded exception. Not sure what I am doing wrong. I am able to send STOMP messages using spring's JmsTemplate directly. Broker Configuration (embedded):

Re: Camel RabbitMQ from 2.12 snapshot - missing parameter type:direct

2013-08-27 Thread Willem jiang
Hi Camel RabbitMQ doesn't support to set the type currently. The type value is direct, with the code like this: channel.exchangeDeclare(endpoint.getExchangeName(), direct, endpoint.isDurable(), endpoint.isAutoDelete(), new HashMapString, Object()); I just found the below code doesn't follow

Re: STOMP: Exception: The maximum command length was exceeded

2013-08-27 Thread Bharath
Hi, Try using Stomp protocol over NIO transport.For better scalability (and performance) you might want to run Stomp protocol over NIO transport. To do that just use stomp+nio transport prefix instead of stomp. For example, add the following transport configuration stompConnector =

Re: STOMP: Exception: The maximum command length was exceeded

2013-08-27 Thread dejanb
Hi, the problem is that you're trying to send stomp messages to openwire transport connector. Try changing your stomp component to something like bean class=org.apache.camel.component.stomp.StompComponent property name=brokerURL value=tcp://localhost:61623 / /bean -- View this

Re: Camel RabbitMQ from 2.12 snapshot - missing parameter type:direct

2013-08-27 Thread tushmish
Hi Willem, Thanks for your quick reply. Thanks, Tushar -- View this message in context: http://camel.465427.n5.nabble.com/Camel-RabbitMQ-from-2-12-snapshot-missing-parameter-type-direct-tp5738013p5738026.html Sent from the Camel - Users mailing list archive at Nabble.com.

Zeromq component

2013-08-27 Thread axelf
Hi. We want to use zeromq in one of our routes, but we were unable to find its component (it doesn't exist in maven central repository and the camel extras downloads link seems to be broken. How can we use this component? Regards. PS: we would like to avoid using maven for this implementation

Re: Zeromq component

2013-08-27 Thread Claus Ibsen
Hi You can build from the source code at camel-extra. That project is maintained outside Apache and thus has different release procedures / schedules / priority / support etc. There will most likely be a camel-extra release after the Apache Camel 2.12.0 has been released. On Tue, Aug 27, 2013

Re: Zeromq component

2013-08-27 Thread axelf
Ok. Thank you very much Claus. -- View this message in context: http://camel.465427.n5.nabble.com/Zeromq-component-tp5738030p5738037.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: JaxbDataFormat escaping special characters

2013-08-27 Thread Sven Bauhan
On 08/26/13 16:43, Christian Posta wrote: At the moment, there is a filtering writer that camel uses by default, and unfortunately it's not configurable at the moment. If you open a JIRA i will get a patch for you to make it configurable. Hey thanks. I will open a ticket in Jira. But I need a

Re: Stop polling, FTP Component

2013-08-27 Thread kalber
Hi, i brought my route configuration into the ftp example of camel (/apache-camel-2.11.1/examples/camel-example-ftp) and configured out the ftp.properties for testing : ftp.client=ftp://myserver.xx.com:21/?username=myusernametpassword=mypassword

Re: STOMP: Exception: The maximum command length was exceeded

2013-08-27 Thread apara
I tried a number of things: 1) Changing broker configuration to: final TransportConnector stompConnector = broker.addConnector(stomp+nio://0.0.0.0:61623); 2) Changing my Camel wiring to use tcp::61623 instead of stomp::61623: bean

Cannot poll windows absolute path using FTP component

2013-08-27 Thread Alberto Brosich
Hi, I'm trying to poll an absolute path on a windows machine, with sftp component (Windows machine has openssh server installed). Using scp from command line works all fine, with unix separators (c:/dir1/dir2/filename). Using ftp component I got always the following error: Cannot change

Re: Stop polling, FTP Component

2013-08-27 Thread Claus Ibsen
Hi Ah okay this is expected as the Camel route will keep polling for new files. You can configure how often it should do that etc. There is many ways stop Camel or routes. Check out the docs and search this forum as its been discussed in the past. And check the FAQ etc also. On Tue, Aug 27,

Re: JAAS auth + Jetty - Exception

2013-08-27 Thread Claus Ibsen
Hi This is the wrong mailing list / forum to ask this kind of question. You are using Fuse ESB so you can use their forum http://fusesource.com/forums/index.jspa Or your question is much more related to ServiceMix / Karaf. And your problem seems related to your bundle not importing this

Xpath parameter binding NodeList vs. Node

2013-08-27 Thread ychawla
Hello All, I am using Camel Xpath parameter binding. I have a method that has an expression like this for example: public void process(Exchange exchange, @OJBCamelXPath(/foo:Container) NodeList containerNodeList) throws Exception I know that the Xpath will only

Re: Xpath parameter binding NodeList vs. Node

2013-08-27 Thread Raul Kripalani
I wonder if your XPath is returning zero nodes. Try to find out the length of the NodeList with the getLength method. What exactly is this @OJBCamelXPath annotation? And how does it recognise namespace foo? You don't seem to declare it (unless the custom annotation is taking care of it somehow -

Re: Xpath parameter binding NodeList vs. Node

2013-08-27 Thread ychawla
Hi Raul, Thanks for you reply. The query returns exactly one node. To retrieve the node, I do something like this: Node containerNode = containerNodeList.item(0); The OJBCamelXpath annotation is a class like this: @Retention(RetentionPolicy.RUNTIME) @Target({ElementType.FIELD,

Camel service start/stop

2013-08-27 Thread kiranreddykasa
Hi i would like to know how to use the following class http://camel.apache.org/maven/current/camel-core/apidocs/org/apache/camel/support/ServiceSupport.html how can I make my custom class so that it is managed by camel ?? - Regards kiran Reddy -- View this message in context:

Re: Camel service start/stop

2013-08-27 Thread Christian Posta
So that class implements the boiler plate code for lifecycle management (start, stop, suspend, resume, isStarting, isStopping, etc). If you want to have one of your custom classes managed by camel, you can register it as a service by Implementing Service.java (or extending ServiceSupport) and

Re: String to Endpoint

2013-08-27 Thread Jose Espinosa
Thanks Tracy!! This is what I'm looking for. Jose On Fri, Aug 23, 2013 at 12:27 PM, Tracy Snell tsn...@gmail.com wrote: Set the header: Exchange.HTTP_URI String URI to call. Will override existing URI set directly on the endpoint. http://camel.apache.org/http4.html As the above

Re: STOMP: Exception: The maximum command length was exceeded

2013-08-27 Thread apara
Most of the day in meetings today, I did not have a chance to put together an isolated example. What I did manage to do re-connect a Spring JmsTemplate implementation back into my code. The JmsTemplate implementation seems to work fine. Here is how its wired: bean

Re: throttling a restlet endpoint by discarding excess requests

2013-08-27 Thread Christian Posta
I guess the answer to this question depends on what Restlet framework has built in to do that. I just looked at the code for Restlet, and it appears to use an unbounded ConcurrentLinkedQueue to handle incoming requests. I didn't see anything obvious for how to throttle the requests: however, I bet

Re: STOMP: Exception: The maximum command length was exceeded

2013-08-27 Thread apara
Just tried the options you proposed: Seeing this exception instead: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: stomp://queue:dm6?brokerURL=tcp%3A%2F%2Flocalhost%3A61623 due to: There are 1 parameters that couldn't be set on the endpoint. Check the uri if the

Re: throttling a restlet endpoint by discarding excess requests

2013-08-27 Thread osupit
Very much appreciate the quick response and insights. Unfortunately the requirement is as originally stated - I need to discard excess load by returning excess requests to the caller - so the Throttler option doesn't work for me. I'll have a poke around the Restlet docs/community and see if

Re: freemarker with pojo and/or xpath

2013-08-27 Thread Christian Posta
Yep, totally possible. So freemarker binds a context to the template, and populates the template body with whatever is found in the context So in the case of Camel integration, Camel will put some parts of the exchange (and the whole exchange actually) which is then available in the freemarker

Re: throttling a restlet endpoint by discarding excess requests

2013-08-27 Thread Christian Posta
Well, another thing you could look into is using a custom ScheduledThreadPoolExecutor for the throttler. You could use a BlockingQueue with a specific size (10 in your case), and any others that tried to get scheduled would through an exception. Then in the throttler config you would set

AW: freemarker with pojo and/or xpath

2013-08-27 Thread jhm
For Freemarker itself the manual is on http://freemarker.org/docs/ Jan -Ursprüngliche Nachricht- Von: Christian Posta [mailto:christian.po...@gmail.com] Gesendet: Mittwoch, 28. August 2013 06:01 An: users@camel.apache.org Betreff: Re: freemarker with pojo and/or xpath Yep,

Re: Camel service start/stop

2013-08-27 Thread kiranreddykasa
Hi I have created a class by extending ServiceSupport. And I'm staring my program with the following code. public static void main(String... args) throws Exception { AbstractApplicationContext applicationContext = new ClassPathXmlApplicationContext(

Re: IntelliJ plugin for Camel / Blueprint / Karaf

2013-08-27 Thread AlanFoster
No problem! If you run into problems or have any ideas, be sure to create an issue on Github :) -- View this message in context: http://camel.465427.n5.nabble.com/IntelliJ-plugin-for-Camel-Blueprint-Karaf-tp5737966p5738068.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: JAAS auth + Jetty - Exception

2013-08-27 Thread contactreji
Hi Claus I added the dependency. Please find my POM below ?xml version=1.0 encoding=UTF-8 standalone=no? project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0

Re: camel-cxf and HTTP BASIC authentication

2013-08-27 Thread contactreji
Hi Christian.. did you get a work around the problem? -- View this message in context: http://camel.465427.n5.nabble.com/camel-cxf-and-HTTP-BASIC-authentication-tp5716163p5738071.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: JAAS auth + Jetty - Exception

2013-08-27 Thread Bharath
Hi regi, Replace org.eclipse.jetty.security;version=${jetty-version} with org.eclipse.jetty.security;version=[7.0.0.,8.0.0) in your import package of maven bundle plugin and try to deploy Cheers!!! Bharath.R -- View this message in context:

Re: Error in generated classes while importing to IDE

2013-08-27 Thread mahii.in87
Hi.. Thankss claus.. -- View this message in context: http://camel.465427.n5.nabble.com/Error-in-generated-classes-while-importing-to-IDE-tp5737936p5738104.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: JAAS auth + Jetty - Exception

2013-08-27 Thread contactreji
Hi Bharat You mean to say I should put it this way instructions Import-Package javax.security.auth, javax.security.auth.callback,

Re: JAAS auth + Jetty - Exception

2013-08-27 Thread contactreji
This is my latest POM *?xml version=1.0 encoding=UTF-8 standalone=no? project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd;

Re: JAAS auth + Jetty - Exception

2013-08-27 Thread Bharath
Hi regi, It should be like this *version=[7.0.0.,8.0.0)* and not version={7.0.0,8.0.0}.Please see the brackets what i have used and try Cheers!!! Bharath.R -- View this message in context: http://camel.465427.n5.nabble.com/JAAS-auth-Jetty-Exception-tp5738065p5738107.html Sent from the

Re: Camel service start/stop

2013-08-27 Thread Claus Ibsen
Hi See also http://camel.apache.org/lifecycle If your class is used in a route as part of a process or bean then Camel will manage its lifecycle (eg calling start/stop etc). And enlist in JMX also. Though if your bean is used outside Camel you need to handle this yourself, for example as