Re: Jetty consumer - how to send reply?

2013-09-30 Thread alapaka
Yep - pollEnrich works fine. I tried using setBody() directly in the route like so: from("jetty:http://localhost:8123/services?matchOnUriPrefix=true";) .streamCaching() . setBody(body().append("TEST RESPONSE")) .end(); this does not seem to work... any reason why? thanks for the fast reply Cl

Re: Using different SSLContextParameters with HTTP4 component

2013-09-30 Thread Guillermo
Thanks for your reply Claus. But I still have a problem. My basic route definition is like this: ... ... .to("http4-foo:") In this case an exception is thrown by the method getPort in HttpComponent class because the scheme is not https4, http4, https or http: Unknown scheme, cannot determi

Camel sFTP how to track processed files?

2013-09-30 Thread deepak_a
Hi All, As per http://camel.apache.org/ftp2.html "The FTP consumer will by default leave the consumed files untouched on the remote FTP server. You have to configure it explicitly if you want it to delete the files or move them to another location. For example you can use delete=true to delete th

Re: Consuming camel twitter component

2013-09-30 Thread anirbanroysap
Hi Claus, Yes I have seen the example. The twitter endpoint requires some configuration parameters like consumerKey,accesToken etc. to be set. If I understand correctly it can be set while creating the endpoint URL. So, can I declare my endpoint as And then use it in my route as: Thanks

Re: Camel sFTP how to track processed files?

2013-09-30 Thread Claus Ibsen
Hi See the idempotent consumer option on the component. On Mon, Sep 30, 2013 at 10:13 AM, deepak_a wrote: > Hi All, > > As per > http://camel.apache.org/ftp2.html > > "The FTP consumer will by default leave the consumed files untouched on the > remote FTP server. You have to configure it explici

Re: Camel sFTP how to track processed files?

2013-09-30 Thread deepak_a
Thanks Claus! Looks like that's exactly what I may need. But what does it mean by repository here? "Camel will add the message id eagerly to the repository to detect duplication" Ans also does this hold good even when the Came RouteContext is recreated. i.e. camel is bounced and routes are recrea

Re: AW: Camel Routing using map message help required

2013-09-30 Thread prabumc...@gmail.com
Please provide some example... -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Routing-using-map-message-help-required-tp5740305p5740469.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel sFTP how to track processed files?

2013-09-30 Thread deepak_a
Hi Claus, Found the answer I will be using JdbcMessageIdRepository or JpaMessageIdRepository. Will prefer JpaMessageIdRepository in my case. regards D -- View this message in context: http://camel.465427.n5.nabble.com/Camel-sFTP-how-to-track-processed-files-tp5740461p5740471.html Sent fro

Re: splitting xml failed when running on tomcat

2013-09-30 Thread Claus Ibsen
Hi See this FAQ http://camel.apache.org/using-getin-or-getout-methods-on-exchange.html On Mon, Sep 30, 2013 at 5:50 AM, hutao722 wrote: > i added some logs and observed that the stax works. And in the last > processor, i can get the split result from content. But the restlet cannot > set the spl

Re: OSGI marshal and bindy

2013-09-30 Thread Claus Ibsen
Hi How do you run it in OSGi / Karaf? On Sun, Sep 29, 2013 at 10:38 PM, mabels wrote: > Hey, > > i have the following camel route: > > from("file:///tmp/input") > .split(StAXBuilder.stax(ShopFeedProdukt.class, false)) > .streaming() > .marshal(new ShopFeedProdukt()) >

Re: OSGI marshal and bindy

2013-09-30 Thread Claus Ibsen
Hi Yeah there is a NPE bug in camel-bindy which we should fix. On Sun, Sep 29, 2013 at 10:38 PM, mabels wrote: > Hey, > > i have the following camel route: > > from("file:///tmp/input") > .split(StAXBuilder.stax(ShopFeedProdukt.class, false)) > .streaming() > .marshal(new

Re: OSGI marshal and bindy

2013-09-30 Thread mabels
Hello, what you mean how i run it, i have a small bundle which i start with osgi::install ... in karaf. In prepartion i loaded all needed camel features. The Activator looks like this: final CamelContext camelContext = new DefaultCamelContext(); camelContext.disableJMX(); DefaultPacka

Camel: when() with boolean parameter

2013-09-30 Thread smehta34
Hi, I have two Strings which I have to check in choice(). If both equals then route to an endpoint else route to different endpoint. I am stuck as when() accepts only predicates and I am comparing two strings with equals() method which returns boolean value. How should I proceed? Any help will be

Re: OSGI marshal and bindy

2013-09-30 Thread Claus Ibsen
Hi You cannot use the DefaultCamelContext, you have to use an OSGi one. Also the package scan should be osgi aware. Though its often easier to use a blueprint xml file to bootstrap Camel in OSGi as it setup all the OSGi stuff for you. Though in camel-core-osgi there is the osgi pieces you would

Re: Camel: when() with boolean parameter

2013-09-30 Thread Claus Ibsen
There is a PredicateBuilder where you can build these kind of predicates. See for example http://www.davsclaus.com/2009/02/apache-camel-and-using-compound.html On Mon, Sep 30, 2013 at 12:13 PM, smehta34 wrote: > Hi, > > I have two Strings which I have to check in choice(). If both equals then >

Re: splitting xml failed when running on tomcat

2013-09-30 Thread Willem.Jiang
As you are using splitter you have to aggregator to put the response together. -- View this message in context: http://camel.465427.n5.nabble.com/splitting-xml-failed-when-running-on-tomcat-tp5740407p5740482.html Sent from the Camel - Users mailing list archive at Nabble.com.

CVE-2013-4330: Apache Camel critical disclosure vulnerability

2013-09-30 Thread Christian Müller
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 CVE-2013-4330: Apache Camel critical disclosure vulnerability Severity: Critical Vendor: The Apache Software Foundation Versions Affected: Camel 2.9.0 to 2.9.7, Camel 2.10.0 to 2.10.6, Camel 2.11.0 to 2.11.1, Camel 2.12.0 The unsupported Camel 2.3.x

Re: Consuming camel twitter component

2013-09-30 Thread Claus Ibsen
On Mon, Sep 30, 2013 at 10:15 AM, anirbanroysap wrote: > Hi Claus, > > Yes I have seen the example. > The twitter endpoint requires some configuration parameters like > consumerKey,accesToken etc. to be set. > If I understand correctly it can be set while creating the endpoint URL. > > So, can I d

Apache Camel - war project How to process the Queue and set to another queue?

2013-09-30 Thread kosalads
I have done a small app which connect to the camel war and do the processing and set to another queue. However, when I process sample xml files it does goes to the relevant queues and process. Unfortunately, when I use Bean Object via camel It doesnt get updated in the 2nd queue. If I explain bit

Re: Apache Camel - war project How to process the Queue and set to another queue?

2013-09-30 Thread Claus Ibsen
Hi I dont think its a good idea to use java beans over JMS. Then you have a tight coupling with java code as message format. You would need to have the same .class files on both the sender and receiver side. Can you not use text messages or use some neutral binary format. If you still want java

Re: Read a stream from telnet service

2013-09-30 Thread Claus Ibsen
This is not currently possible out of the box in any of the camel-mina or camel-netty components. You can of course use Mina or Netty API and write the logic yourself. There is some tickets in JIRA about having camel-mina supporting to connect to a remote server and read input as a stream. On

Re: Apache Camel - war project How to process the Queue and set to another queue?

2013-09-30 Thread kosalads
Hi, This is for internal Applications and those Objects are serialized and using the same class in the both side. Provided that above scenario how can I achieve this? -- View this message in context: http://camel.465427.n5.nabble.com/Apache-Camel-war-project-How-to-process-the-Queue-and-se

Re: Consuming camel twitter component

2013-09-30 Thread anirbanroysap
Hi Claus, Does this mean that I can give the configuration parameters as a part of the endpoint URI ONLY? Thanks and regards, Anirban -- View this message in context: http://camel.465427.n5.nabble.com/Consuming-camel-twitter-component-tp5740432p5740531.html Sent from the Camel - Users maili

Re: OSGI marshal and bindy

2013-09-30 Thread mabels
Hello, i now use the OsgiDefaultCamelContext and now it runs like excepted. I had to install osgi:install -s mvn:org.apache.camel/camel-core-osgi/2.12.1 features:install eventadmin these both are needed some how. Thanks meno On Mon, Sep 30, 2013 at 12:21 PM, Claus Ibsen-2 [via Camel] < ml-n

Re: contentObjectId in XML Security (camel-xmlsecurity)

2013-09-30 Thread atiato
Dear Claus , Please check the above error message when setting the camel header for Content reference URI ? thanks, Omar Atia -- View this message in context: http://camel.465427.n5.nabble.com/contentObjectId-in-XML-Security-camel-xmlsecurity-tp5740265p5740536.html Sent from the Camel - Users

Re: Consuming camel twitter component

2013-09-30 Thread Claus Ibsen
You can configure it the usual spring bean style also. On Mon, Sep 30, 2013 at 1:02 PM, anirbanroysap wrote: > Hi Claus, > > Does this mean that I can give the configuration parameters as a part of the > endpoint URI ONLY? > > Thanks and regards, > Anirban > > > > > > -- > View this message in co

AW: AW: Camel Routing using map message help required

2013-09-30 Thread jhm
Maybe this helps: public class MapMessageTest extends CamelTestSupport { private Map createMap(String option) { Map map = new HashMap(); map.put("OPTION", option); map.put("text", "Hello " + option); return map; }

Re: OSGI marshal and bindy

2013-09-30 Thread James Carman
You should really consider using camel-blueprint. This is the best way to use Camel in an OSGi environment. You will run into quite a bit of troubles to get everything working right if you try to do it "manually." On Mon, Sep 30, 2013 at 7:06 AM, mabels wrote: > Hello, > > i now use the OsgiDef

Camel + Ibatis

2013-09-30 Thread Ankur
Hi All, I want to get whole data from one datasource which I want to insert into another table at the same time to another datasource For this i have created two datasource, two session factory and two ibatis instances. my route looks like this I'm confused how to write insert statement

Issue with camel-http4 HttpProducer

2013-09-30 Thread sbo13
Hi, I'm having a problem with the HttpProducer of camel-http4 (version 2.12) In the createMethod() function, line 365, the producer always tries to build a request entity. Unfortunately we issue a lot of GET requests that don't support bodies, but in order to build the request-url we have a body

Re: Camel + Ibatis

2013-09-30 Thread Larry Meadors
Mybatis won't insert a list - you need to make that work yourself. It might be possible to do a for-each in your mapped statement to create multiple inserts there, or if you're using mysql, use the "insert ... values () () ... ()" syntax. Larry

Re: Apache Camel - war project How to process the Queue and set to another queue?

2013-09-30 Thread James Carman
Regardless of whether it's for an internal application, it' still not wise to use a bean payload on a JMS queue. You can run into all sorts of problems with serialization and you're making it virtually impossible for non-java code to talk to your services. On Mon, Sep 30, 2013 at 6:58 AM, kosalad

Re: CAMEL-SOAP uses wrong namespace

2013-09-30 Thread Claus Ibsen
Hi You are welcome to submit a patch to fix camel-soap. That component could use some love. Not everybody really loves SOAP / XML, and think its cool to improve/fix it in their spare time. As said many times we love contribtutions http://camel.apache.org/contributing.html On Thu, Sep 26, 2013 a

Re: OGNL property syntax in documentation does not work

2013-09-30 Thread Claus Ibsen
Hi I suggest you send an ICLA to Apache and help fix/improve the docs. Apache depend on people contributing on the projects. If you want X fixed on page Y, then please make it super easy for others to fix/do. Eg post a link and have replace FROM to TO so ppl can do it easily. On Fri, Sep 20, 2

Re: Apache Camel - war project How to process the Queue and set to another queue?

2013-09-30 Thread kosalads
Hi James, Please note that I was able to send the Java bean to the queue and read the same java bean from another application. So I dont think it will be a problem to do this. But my issue is that I cannot get the Java Object from one queue and set to another queue in the same application, So t

Re: PollingConsumerPollStrategy for AMQPComponent endpoint

2013-09-30 Thread magner58
Hi Claus, thanks for answer. So how one should react on permanent errors happened during consumption using polling consumer? In our case queue went wrong. Claus Ibsen-2 wrote > That option is not supported on amqp component. > > On Wed, Sep 25, 2013 at 3:02 PM, magner58 < > johnhenrysmith@ >

PollingConsumer.receiveNoWait() never returns null consuming from AMQPComponent endpoint in browsing mode

2013-09-30 Thread magner58
I create PollingConsumer for my AMQP queue and consume with receiveNoWait() until null is received. It worked nicely in default mode, but in browsing mode (queue name suffixed with "{mode: browse}", see https://qpid.apache.org/books/0.12/Programming-In-Apache-Qpid/html/ch02s04.html "2.4.3.3. browse

Re: PollingConsumer.receiveNoWait() never returns null consuming from AMQPComponent endpoint in browsing mode

2013-09-30 Thread Claus Ibsen
Hi There is a JIRA ticket about this https://issues.apache.org/jira/browse/CAMEL-6784 On Mon, Sep 30, 2013 at 2:59 PM, magner58 wrote: > I create PollingConsumer for my AMQP queue and consume with receiveNoWait() > until null is received. It worked nicely in default mode, but in browsing > mode

Re: Consuming multiple JMS messages in one single transaction

2013-09-30 Thread bacar
Thanks - I'll try that! -- View this message in context: http://camel.465427.n5.nabble.com/Consuming-multiple-JMS-messages-in-one-single-transaction-tp5640489p5740558.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: AW: AW: Camel Routing using map message help required

2013-09-30 Thread prabumc...@gmail.com
I want use filter (not when) without too many functions If u don't mind can u give example -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Routing-using-map-message-help-required-tp5740305p5740561.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel + Ibatis

2013-09-30 Thread Ankur
I have written my my insert statement like this insert into approvals (APPROVALID, SOURCESYSTEM, APPROVALTYPE, APPROVAL, SOURCESYSTEMID, APPROVALDESC, DELEGATEDBY, STATUS, ASSIGNEDDATE, DUEDATE, UPDATEDBY, UPDATEDON) values ( #{item.projectDetails.approvalId},#{item.projectDetails.approvalSyste

Re: AW: AW: Camel Routing using map message help required

2013-09-30 Thread prabumc...@gmail.com
I was trying to do some thing like this from("Queue1") .filter(header(EVENT_TYPE)).isEqualTo("Transaction") .filter(in.).isEqualTo("C") .process(new Processor() { public void process(Exchange exchange) { Map map = (Map) exchange.getIn().getbody();

Re: Apache Camel - war project How to process the Queue and set to another queue?

2013-09-30 Thread James Carman
We're not saying you won't be able to do it. It will work, but you will run into troubles down the road with your application and it makes it less flexible. Have you tried playing with a unit test (using embedded ActiveMQ)? It's really easy to set up. On Mon, Sep 30, 2013 at 8:50 AM, kosalads w

Re: Jetty consumer - how to send reply?

2013-09-30 Thread Dale King
Actually if you are trying to return one specific file there is probably an easier way. If you set the body of a message to a java.io.File object pointing to the file you want and the built-in type converters can convert that to an InputStream. Setting up a file endpoint is way overkill. A file

Re: Extend Camel Loop to support While Behavior

2013-09-30 Thread Dale King
There is a JIRA from a year or 2 ago that has no progress. This would be trivial to add. The work around is to use distribution list on a header and when you want to exit set that header to null. On Sep 30, 2013, at 2:28 AM, Claus Ibsen wrote: > Hi > > Yeah we have talked about this in the p

Re: Extend Camel Loop to support While Behavior

2013-09-30 Thread James Carman
Patches (with unit tests) are always welcome. On Mon, Sep 30, 2013 at 9:53 AM, Dale King wrote: > There is a JIRA from a year or 2 ago that has no progress. This would be > trivial to add. > > The work around is to use distribution list on a header and when you want to > exit set that header to

RE: Extend Camel Loop to support While Behavior

2013-09-30 Thread Goyal, Arpit
Hi Dale, What you mean by use distribution list to set header to NULL? Can you share the example (Spring DSL if possible) Do you mean that we should change the value of Headers "LOOP_INDEX" & "LOOP_SIZE"? Is this the JIRA Item for the same? --> https://issues.apache.org/jira/browse/CAM

Re: Integrating Apache Camel into http request/reply cycle

2013-09-30 Thread kraythe .
Take a look at the Servlet and ServletListener components as well as the Restlet component. You can actually use Camel to serve parts of a web application easily *Robert Simmons Jr. MSc. - Lead Java Architect @ EA* *Author of: Hardcore Java (2003) and Maintainable Java (2012)* *LinkedIn: **http://

Re: Camel: when() with boolean parameter

2013-09-30 Thread kraythe .
Did you try ... when(simple("${header.isValid} == Yes")) Look at Simple and other expresision languages. If those fail, use predicate builder. *Robert Simmons Jr. MSc. - Lead Java Architect @ EA* *Author of: Hardcore Java (2003) and Maintainable Java (2012)* *LinkedIn: **http://www.linkedin.com/

Does Camel log Load Balancer destination

2013-09-30 Thread jprosa
Hi, Does Camel set a header or property value somewhere indicating which destination the Load Balancer choose to send a message to? This could be useful for logging purposes. Regards, Jeff -- View this message in context: http://camel.465427.n5.nabble.com/Does-Camel-log-Load-Balancer-destin

Re: Extend Camel Loop to support While Behavior

2013-09-30 Thread Dale King
Yeah, I probably should have been more clear. And I meant dynamic router, not distribution list. Put the body of your loop into its own route, let's say direct://foo To execute the loop (in Java DSL): .setHeader("loop", constant("direct://foo")) .dynamicRouter().header("loop") // Any

Re: Extend Camel Loop to support While Behavior

2013-09-30 Thread Dale King
I thought for sure I read the Jira issue for adding a while loop since I too had to figure out that work around, but I'll be darned if I can find the Jira issue now. I found a post from last year where Claus said, "There is a JIRA to make the loop like a while loop so we can use a predicate to kno

Re: AW: AW: Camel Routing using map message help required

2013-09-30 Thread prabumc...@gmail.com
Please help how can i do this using filter -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Routing-using-map-message-help-required-tp5740305p5740581.html Sent from the Camel - Users mailing list archive at Nabble.com.

[BLOG] Light-weight, open-source integration: Apache Camel or Spring Integration?

2013-09-30 Thread Christian Posta
Hey all, Thought you might be interested in my latest blog post comparing Spring Integration with Aapche Camel. http://www.christianposta.com/blog/?p=327 Cheers, Christian -- *Christian Posta* http://www.christianposta.com/blog twitter: @christianposta

RE: Extend Camel Loop to support While Behavior

2013-09-30 Thread Goyal, Arpit
I wrote small code by copying the logic of Loop and defined my own 'While'. As I have no experience what-so-ever in camel contribution or knowledge about whether extension of Loop is proposed solution or writing existing one, I was asking if there was any JIRA item. There are two new classes (T

Re: Extend Camel Loop to support While Behavior

2013-09-30 Thread Dale King
For while vs. doWhile I would rather have additional DSL for doWhile methods in addition to the while methods. Of course, the other DSLs would need to be updated too. On Mon, Sep 30, 2013 at 1:39 PM, Goyal, Arpit wrote: > I wrote small code by copying the logic of Loop and defined my own > 'Whi

Re: Camel: when() with boolean parameter

2013-09-30 Thread Raul Kripalani
Is the variable initialized at route construction time? If yes, you should wrap the isEquals in a constant expression: constant(isValid.equals(...)). The simple language wouldn't work because the variable doesn't exist during the runtime of the route. If you want to set the isValid depending on

SJMS component and IBM Websphere MQ quirks

2013-09-30 Thread nigel
Guys, I've bumped into a bug using sjms with IBM MQ. All works fine using topics, but with queues my reply messages are rejected as with a 2027 error (no reply destination). One of the MQ headers is the JMS_IBM_MsgType, which, because the incoming message wants a reply, is of type MQMT_REQUEST. IB

Re: [BLOG] Light-weight, open-source integration: Apache Camel or Spring Integration?

2013-09-30 Thread Babak Vahdat
Hi Christian, Thanks for sharing this! Last year Bilgin also blogged about something similar: http://www.ofbizian.com/search/label/Spring%20Integration Babak Am 30.09.13 19:02 schrieb "Christian Posta" unter : >Hey all, > >Thought you might be interested in my latest blog post comparing Spri

Re: AW: AW: Camel Routing using map message help required

2013-09-30 Thread kraythe .
If you mean a JMS queue you will have a problem doing that because with JMS queues, messages only get picked up by a single consumer so if that consumer filters the message, it is dropped into the ether of nothingness. So that is why it is better routed before the queue. Look at recipient list EIP

Re: SJMS component and IBM Websphere MQ quirks

2013-09-30 Thread nigel
A workaround I'm using is to add a processor on the end of my pipeline to remove the JMS_IBM_MsgType property. When I do this Websphere is fine (uses a datagram type for the reply though - I guess I could set it explicitly to 2). eg: .process(new Processor() { @Override

Dynamic suspension of JMS producer

2013-09-30 Thread Baris Acar
Hi, We have two instances of a service, one for low and one for high priority users. Both post messages to a single shared queue, with the appropriate priority level set so that high priority requests jump in front. If the queue is completely full of low priority requests, it's impossible for

Re: dynamicly change the url of the element after the camelcontext is started

2013-09-30 Thread Babak Vahdat
Hi Ali, you could make use of the PropertiesComponent for this purpose: http://camel.apache.org/properties.html#Properties-ConfiguringinJavaDSL You can find lots of tests about using this component inside Spring DSL here: https://github.com/apache/camel/tree/master/components/camel-spring/src/t

Re: SJMS component and IBM Websphere MQ quirks

2013-09-30 Thread Scott England-Sullivan
Hi Nigel, Sorry to hear you are having issues with the component. Sounds like there are several bugs here. I will have to take a look this week to see if I can clean this up. Thanks for the feedback. Best Regards, Scott ES On Mon, Sep 30, 2013 at 2:21 PM, nigel wrote: > A workaround I'm us

Re: dynamicly change the url of the element after the camelcontext is started

2013-09-30 Thread Babak Vahdat
You can make use of the other PropertiesComponent method to pass over an array of locations upfront: PropertiesComponent.setLocations(String[] locations) So given your code example it would become: PropertiesComponent pc = new PropertiesComponent(); pc.setLocations(new String[] {"classpath

Re: Jetty consumer - how to send reply?

2013-09-30 Thread alapaka
Seems like the only way (without using a processor/filter/endpoint ) is to use enrich. I tried to use a file directly in setBody: from("jetty:http://localhost:8123/services?matchOnUriPrefix=true";) .log("Received Request\n\n ${body} \n-\n") .setBody(body().app

Re: dynamicly change the url of the element after the camelcontext is started

2013-09-30 Thread Babak Vahdat
There's a also the following unit-test which should make the idea below clear to you (check the custom MyCustomResolver implementation): https://github.com/apache/camel/blob/master/camel-core/src/test/java/org/apache/camel/component/properties/PropertiesResolverTest.java Babak Babak Vahdat wrot

Camel's use of jsch/java.io

2013-09-30 Thread neil
Hi, I would like to report a potential bug in Camel's use of jsch/java.io, and find a potential workaround. Apologies in advance for abusing terms -- I am only a Camel user, I am not intimately familiar with its implementation. We have an indefinite polling route that does a directory listing o

Re: Camel route - how to move the file in the failed directory if there's an error

2013-09-30 Thread nguyen
Oups the route didn't show.. Inserted now the route definition. http://camel.apache.org/schema/spring";> Route to poll a directory for transaction alert file and launch the job ${headers.CamelFileNameOnly}

dynamicly change the url of the element after the camelcontext is started

2013-09-30 Thread salemi
Hi, During the camel startup, our code will query a database and retrieve the uri information for all the jms endpoints. I was wondering how can I overwrite the uri of the elements in example below? Ali - Alireza Salemi -- View this message in contex

Camel route - how to move the file in the failed directory if there's an error

2013-09-30 Thread nguyen
Hi all, i'm new in camel, so thanks in advance for any help.I have the following route defined in my context file. This route is using in the context of a spring batch job. I would like to do the following:If the my batch job fails, because there's an error in my input file, for example if th

Re: RestFul service using camel

2013-09-30 Thread vjboston
Hi All, I am trying to achieve the same thing.Invoking a remote restful service.But the response of the service is Null. SO the body keeps comign as null. Can somebody please help me with sample code ? -- View this message in context: http://camel.465427.n5.nabble.com/RestFul-service-using-c

Invoking remote RESTful services urgent !!

2013-09-30 Thread vjboston
Hi , Can somebody share a sample code for invoking an remote restful service. I tried it with following code start ** package org.apache.camel.example.jmstofile; import org.apache.camel.CamelContext; import org.apache.camel.Exchange; import org.apache.camel.ExchangePattern; import org.apache.c

Re: dynamicly change the url of the element after the camelcontext is started

2013-09-30 Thread salemi
Hi Babak, Thank you for your quick respond. We tried the approach to override a property at the run time. It seem like if you set the uri attribute for the element then it become immutable! In our example we have defined the following elements in the camel context file

"The Camel Components Poster" poll

2013-09-30 Thread gliesian
I'm selecting a winner later tonight for my camel components poster contest... If anyone wants to take a poll I put together for the finalists, please do so here: POLL Sincerely, Robert Liguori -- View this message in context: http://camel.4

Re: File component consumer to consume files by timestamp based

2013-09-30 Thread rrajen2
Thx Claus. In the i/p file directory structure data/report/infolder ,it has several zip files underneath it. Say when one of the zip file gets modified, the infolder directory timestamp also accordingly gets modified. So lets say there are 5 zip files in the infolder which was modified 1hr or mor

Re: SJMS component and IBM Websphere MQ quirks

2013-09-30 Thread Dale King
You do know that you can shorten that to just: .removeHeader("JMS_IBM_MsgType") On Sep 30, 2013, at 3:21 PM, nigel wrote: > A workaround I'm using is to add a processor on the end of my pipeline to > remove the JMS_IBM_MsgType property. When I do this Websphere is fine (uses > a datagr

Re: Jetty consumer - how to send reply?

2013-09-30 Thread Dale King
Appending a file like that probably won't work. Here is what I am doing in a route where I need to read a file: .setBody().simple("path/To/File", File.class) which also lets you use ${...} expressions to form the file path If absolutely necessary you could then do a convertBodyTo but Camel s

Re: Jetty consumer - how to send reply?

2013-09-30 Thread Claus Ibsen
You can do setBody(constant(new File(""))) On Tue, Oct 1, 2013 at 1:24 AM, alapaka wrote: > Seems like the only way (without using a processor/filter/endpoint ) is to > use enrich. > I tried to use a file directly in setBody: > > from("jetty:http://localhost:8123/services?matchOnUriPrefix=t

Re: Apache Camel - war project How to process the Queue and set to another queue?

2013-09-30 Thread kosalads
Hi James, So how do we handle the below scenario with Camel? -- View this message in context: http://camel.465427.n5.nabble.com/Apache-Camel-war-project-How-to-process-the-Queue-and-set-to-another-queue-tp5740524p5740574.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: File component consumer to consume files by timestamp based

2013-09-30 Thread Claus Ibsen
You can check if its a file or directory, and then always accept directories, and then only file the timestamp on files. There is a file.isDirectory() you can use. On Tue, Oct 1, 2013 at 2:48 AM, rrajen2 wrote: > Thx Claus. > > In the i/p file directory structure data/report/infolder ,it has sev

Re: Does Camel log Load Balancer destination

2013-09-30 Thread Claus Ibsen
There is already a Exchange.TO_ENDPOINT header if you send a message to an endpoint. On Mon, Sep 30, 2013 at 6:00 PM, jprosa wrote: > Hi, > > Does Camel set a header or property value somewhere indicating which > destination the Load Balancer choose to send a message to? This could be > useful

Re: Does Camel log Load Balancer destination

2013-09-30 Thread Claus Ibsen
There is also message history eip http://camel.apache.org/message-history.html >From Camel 2.12 onwards you have that more easily available out of the box >also. On Tue, Oct 1, 2013 at 8:37 AM, Claus Ibsen wrote: > There is already a Exchange.TO_ENDPOINT header if you send a message > to an end

Re: Jetty consumer - how to send reply?

2013-09-30 Thread alapaka
thanks again guys! sorry for the newbie questions - still getting my head around the architecture and the major moving parts. aloha ala -- View this message in context: http://camel.465427.n5.nabble.com/Jetty-consumer-how-to-send-reply-tp5740450p5740633.html Sent from the Camel - Users mailin