Re: Camel Route Not Starting in Docker

2017-08-26 Thread Taariq Levack
Looks like you're connecting to a broker on localhost, which in docker is not the same. On 23 Aug 2017 03:47, "Jeremy Deane" wrote: > If start a local Spring-Boot App with a Camel Route listening to ActiveMQ, > itself either local or from a Docker Container, then the Camel Route > starts. > That

Re: aws-s3, get a single object

2017-06-21 Thread Taariq Levack
rrorThreshold, backoffIdleThreshold and > backoffMultiplier as the only properties that mention error handling, but I > guess they're not for what I want. > > Am i missing something? > > Cheers > Artur > > > On Wed, Jun 21, 2017 at 6:26 AM, Taariq Le

Re: aws-s3, get a single object

2017-06-20 Thread Taariq Levack
You can use a timeout of 0 for receiving with no wait, or greater than 0 for waiting a bit. Default is -1 http://camel.apache.org/content-enricher.html Cheers, Taariq On 20 Jun 2017 22:12, "Artur Jablonski" wrote: > Right, that almost works. > > Now the problem I have is

Re: Camel moves the file despite "noop=true"

2017-06-07 Thread Taariq Levack
Hi Noop applies to the consumer, try on the poll enrich. Cheers On 07 Jun 2017 21:23, "sap" wrote: I have a route similar to below. from("direct:start") .to("sql:bla") .pollEnrich("file:location?fileName=fname",aggregatorProcessor) .to("http://bla";) .to("file:location?fileName=fname&noop=tru

Re: activemq store percent is very high

2017-06-05 Thread Taariq Levack
Hi This is really an activemq question, but the short answer is to clear the DLQ periodically. Cheers On 05 Jun 2017 09:54, "tnk" wrote: > Hi, > > i have simple camel route, which reads from activemq queue and sends email > messages, if exception occurs message is moved to dead letter queue. T

Re: Synchronizing SFTP and ActiveMQ

2017-05-12 Thread Taariq Levack
Still along those lines, the claim check comes to mind. As you know beforehand whether the file should exist, you can indicate this to the activemq route, along with an ID or filename etc, That route will then check if the file has arrived or not before proceeding, likely recheck several times as

Re: Pass the properties for each request coming between the route definitions

2017-03-19 Thread Taariq Levack
You're looking for "dynamic to", depending on your Camel version you may have to use the recipient list eip instead. See this faq http://camel.apache.org/how-to-use-a-dynamic-uri-in-to.html Cheers, Taariq On 19 Mar 2017 3:23 PM, "vcamel9" wrote: I am unable

Re: camel-test 2.18.3 not in mvn repo?

2017-03-14 Thread Taariq Levack
Check central, http://search.maven.org http://repo1.maven.org/maven2/org/apache/camel/camel-test/2.18.3/ Cheers, Taariq On 14 Mar 2017 9:20 PM, "Wilson MacGyver" wrote: I noticed camel-test 2.18.3 is not in mvn repo, is there a reason? https://mvnrepository.com/artifact/org.ap

Re: Netty Http4 (client): Null body whereas content-length > 0

2017-02-05 Thread Taariq Levack
Hi Stephane, I just took a quick stab and it works with the following route, note the endpoint is the url with netty4 prefixed. @Override protected RoutesBuilder createRouteBuilder() throws Exception { return new RouteBuilder() { @Override public void conf

Re: How to call a route, wait to finish, and ignore any changes when this returns?

2017-01-10 Thread Taariq Levack
In that scenario you might consider multicasting to a route that processes the deletes in order, as well as to the next/result route. Just don't process in parallel in that case. Also, I wouldn't suggest the enricher for each delete like in your example, perhaps rather route to something that spli

Re: How to call a route, wait to finish, and ignore any changes when this returns?

2017-01-09 Thread Taariq Levack
Hi, Content enricher seems like a good fit. Cheers On 09 Jan 2017 20:35, "sim085" wrote: Hi Colin, Thanks for your answer. I tried your example: [code] from("seda:A") .log("Hello From A") .setHeader("MyHeader", constant("A-HEADE

Re: Restarting an Endpoint from an ErrorHandler

2016-12-16 Thread Taariq Levack
Hi Guess it depends on your case if restarting can fix the connection problem, but try the control bus to stop/start. https://camel.apache.org/controlbus.html Cheers On 16 Dec 2016 14:56, "sa_james" wrote: > Does something like the following make sense? > > onException(*ConnectionException.cla

Re: Cache api call result

2016-11-07 Thread Taariq Levack
Hi, You can use camel-ehcache, something like this example from the old camel-cache; from("direct:start") // Prepare headers .setHeader(CacheConstants.CACHE_OPERATION, constant(CacheConstants.CACHE_OPERATION_GET)) .setHeader(CacheConstants.CACHE_KEY, constant("Ralph_Waldo_Emerson")).

Re: Throttle Camel Requests based on query param

2016-06-16 Thread Taariq Levack
Hi, You can use the query param itself and throttle by header, or the choice EIP to decide based on your query param, what to set the header to. throttleValue Cheers On Thu, Jun 16, 2016 at 8:43 PM, Debraj Manna wrote: > Hi, > > I have a camel route like below:- > > from("jetty:http://lo

Re: How to return early from a direct: subroute?

2016-04-03 Thread Taariq Levack
In that case you can also try the interceptor. Something like this, note the stop() at the end. intercept().when(header("ROUTE_STOP").isNotNull()).stop(); Cheers, Taariq On Sun, Apr 3, 2016 at 5:01 AM, bocamel wrote: > Quinn, > > > > Thanks for the response. I

Re: How to return early from a direct: subroute?

2016-04-01 Thread Taariq Levack
Did you already look at the dynamic router and routing slip patterns? > On 01 Apr 2016, at 17:12, bocamel wrote: > > I have two routes: > > > > > > > > > > > > > > What should I do if, in proc1, I want to - for certain exchanges - return > back to route1 without completing the

Re: Tutorial on Spring Remoting with JMS

2016-01-27 Thread Taariq Levack
Hi Roger, The mvn:create goal is deprecated[1] for a while and I guess now broken, use mvn:generate instead. Fixed the wiki, thanks for reporting. [1] http://maven.apache.org/archetype/maven-archetype-plugin/create-mojo.html Cheers On Tue, Jan 26, 2016 at 12:01 AM, RogerN wrote: > The Tutori

Re: Documentation on writing endpoints is lacking...

2015-12-06 Thread Taariq Levack
PS if all of the mysteries weren't cleared up by the project generation feel free to ask. Also see this page about the architecture which explains the various parts quite well. http://camel.apache.org/architecture.html Cheers > On 06 Dec 2015, at 21:24, Taariq Levack wrote: > >

Re: Documentation on writing endpoints is lacking...

2015-12-06 Thread Taariq Levack
Hi Jimi, We really love contributions so please feel free to make notes and edit the wiki. I usually create components using maven as shown here; http://camel.apache.org/creating-a-new-camel-component.html Change the version and run, you'll have a working project in seconds. Have fun. > On 06 D

Re: REST DSL typo in webpage

2015-03-26 Thread Taariq Levack
Fixed, thanks for reporting and please feel free to edit the site as you go along. On Thu, Mar 26, 2015 at 4:16 PM, Mark Webb wrote: > First off, thanks for this feature. It rocks. I've used it a few times > already. > > Near the bottom of the page http://camel.apache.org/rest-dsl, there's a >

Re: how to send response to the webservice

2015-03-12 Thread Taariq Levack
Hi Instead of routing to "seda:generateCSV", you can wiretap, then the response goes back to the client while the file is generated. See http://camel.apache.org/wire-tap.html On Fri, Mar 13, 2015 at 3:55 AM, chaituu wrote: > > > // generate the OrderResponse reply for

Re: RejectedExecutionException: Task rejected due queue size limit reached

2015-02-13 Thread Taariq Levack
tMaxQueueSize()); } else { return answer; } Taariq On Thu, Feb 12, 2015 at 9:29 AM, Behrad wrote: > I don't think it be a SEDA queue size problem, since my SEDA endpoint queue > size is a very big number in logs, there should be something with > redelivery/errorHandle

Re: RejectedExecutionException: Task rejected due queue size limit reached

2015-02-11 Thread Taariq Levack
/apache/camel/component/seda/SedaDefaultUnboundedQueueSizeTest.java Taariq On Thu, Feb 12, 2015 at 7:33 AM, Behrad wrote: > When my SEDA producer peaks seems I'm getting ExecusionService queue limit > with this tr

Re: REST DSL - including documents

2015-02-01 Thread Taariq Levack
Tim you missed the hash in the context handler, should be #contextHandler I also had to redefine that handler, you'll find the working code in your gist. Taariq On Sat, Jan 31, 2015 at 8:56 PM, Tim Dudgeon wrote: > Pinging again on this. > I looked over my attempts to add a Contex

Re: REST DSL - including documents

2015-01-25 Thread Taariq Levack
what would you suggest Claus? I'll remove the file handling stuff before sending a PR to keep the quickstart simple, or do a new REST DSL quickstart using something else. Here's the branch; https://github.com/levackt/quickstarts/tree/Camel_REST_DSL/quickstarts/java/netty-http-restdsl Ta

Re: Rate limit producer to match consumer

2014-12-31 Thread Taariq Levack
e policies nicely. http://camel.apache.org/route-throttling-example.html Taariq On Tue, Dec 30, 2014 at 8:32 PM, Taariq Levack wrote: > How about a content based router that checks the file size and forwards > large messages to one endpoint and smaller ones to another? > Both are t

Re: Rate limit producer to match consumer

2014-12-30 Thread Taariq Levack
either of the others. You can get more creative with the general idea, like dynamically setting the maximumRequestsPerPeriod[1] higher for the small file endpoint when there are no large files to process. [1] http://camel.apache.org/throttler.html Taariq > On 30 Dec 2014, at 13:41, Nathan Jo

Re: Camel

2014-12-29 Thread Taariq Levack
pport.html Taariq > On 29 Dec 2014, at 13:20, smilevasu6 wrote: > > No one is here to support this issue? > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Camel-tp5761107p5761112.html > Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel Twitter Consumer - DirectMessage

2014-12-20 Thread Taariq Levack
That's no problem either. The body type is DirectMessage which provides methods for that. Check the camel-twitter component page for the body types, and the Twitter4j api for details. Taariq > On 20 Dec 2014, at 14:42, contactreji wrote: > > Thanks Taariq. > > When I

Re: Camel Twitter Consumer - DirectMessage

2014-12-20 Thread Taariq Levack
have what you need. Taariq On Sat, Dec 20, 2014 at 10:15 AM, contactreji wrote: > As of now I have made a temporary work around on this. > I copied the source of the class from following link into my project and I > am not isntantiating the object to access members. Wondering if ther

Re: Persisting CBR choice in body

2014-12-20 Thread Taariq Levack
Hi Just wondering, is there a reason you want to enrich the body instead of setting a header or property on the exchange? Taariq On Fri, Dec 19, 2014 at 8:44 PM, Behrad wrote: > I want to persist which predicate of a CBR has been matched in my message > body. Is any better way tha

Re: Unexpected behaviour of splitter using stopOnException

2014-12-14 Thread Taariq Levack
4,680 [Camel (camel-1) thread #0 - dataset://bookDataSet] [INFO] 1 > 18:34:25,684 [Camel (camel-1) thread #0 - dataset://bookDataSet] [INFO] 1 > 18:34:26,689 [Camel (camel-1) thread #0 - dataset://bookDataSet] [INFO] 1 > > does not throw an exception, but it acts like an ex

Re: Unexpected behaviour of splitter using stopOnException

2014-12-14 Thread Taariq Levack
Hi Seiji Try without the Taariq > On 14 Dec 2014, at 07:27, Seiji Sogabe wrote: > > Hi, > > I have a simple camel route: > > > > > >body > >... (*) >

Re: Sending to Syslog

2014-12-11 Thread Taariq Levack
, you need to check which dependencies to include. Try the archetype[1] to generate the ActiveMQ project and then add the camel-syslog dependency to the pom as well, and replace the sample camel context with your own and it should work. [1] http://camel.apache.org/camel-maven-archetypes.html

Re: Unexpected behaviour of Camel Simple expression

2014-12-05 Thread Taariq Levack
t; > Thanks for your response Taariq - but as you can see form the log output this > isn't the case. The myEval bean actually doesn't do anything but the String > it receives during the simple expression evaluation is missing the single > quotes - as per the log output: >

Re: Unexpected behaviour of Camel Simple expression

2014-12-04 Thread Taariq Levack
Hi and welcome You don't say what myEval does, but the following expression does what you want. INSERT INTO SOMETHING (${body[VALUE_ONE]},${body[VALUE_TWO]}) Taariq On Fri, Dec 5, 2014 at 1:51 AM, welshstew wrote: > Long time lurker - first time poster! Please be nice :) > >

Re: Seeking understanding of Parameter Binding in Bean invocation

2014-12-04 Thread taariq
Hi I've attached a test that reproduces this in 2.11.1, but not in 2.14.0 Are you able to upgrade? BeanBindingTest.java -- View this message in context: http://camel.465427.n5.nabble.com/Seeking-understanding-of-Paramete

Re: [Rest DSL] Automatic convertion of body to java.util.Map . How to fix it ?

2014-11-26 Thread Taariq Levack
Hi You need to set the type as SpeakerPojo.class I don't see a spring example here setting type but it should work the same as java so adjust accordingly. http://camel.apache.org/rest-dsl.html Taariq > On 26 Nov 2014, at 17:40, Vaïsse-Lesteven Arthur > wrote: > > Hi ev

Re: how to read json in a file and use jsonpath

2014-11-24 Thread Taariq Levack
"Timestamp(1415124334, 1)", "op": "i", "ns": "test.products", "o": { "_id": "ObjectId('5459156e7950e8c18c094992')", "item": "card", "qty": 15 } } [2] https://github.com/apache/

Re: Problem with REST DSL (2.14.0) and String bean

2014-11-14 Thread Taariq Levack
Thought it would be weird to be jaxb versions in camel components. Glad you found it, thanks for sharing your fix as well. On Fri, Nov 14, 2014 at 11:36 AM, Vaïsse-Lesteven Arthur < arthurvai...@yahoo.fr> wrote: > Thanks to a teammate, I finally understood the error. > > Problem really come from

Re: Problem with REST DSL (2.14.0) and String bean

2014-11-12 Thread Taariq Levack
Took another squizz at the tree and there's also a 2.1 version of jaxb in camel-cxf, try exclude that too and let us know. On Wed, Nov 12, 2014 at 7:19 PM, Taariq Levack wrote: > Hi > Looks like camel-Jackson and camel-jaxb have different jaxb-api versions, > 2.2 and 2.2.7 > T

Re: Problem with REST DSL (2.14.0) and String bean

2014-11-12 Thread Taariq Levack
Hi Looks like camel-Jackson and camel-jaxb have different jaxb-api versions, 2.2 and 2.2.7 Try excluding jaxb-api from one of them. Taariq > On 12 Nov 2014, at 10:52, Vaïsse-Lesteven Arthur > wrote: > > Hi Claus, > > Firstly, thank for your answer. > > I curre

Re: Invoking route inside processor

2014-02-05 Thread Taariq Levack
Hi Just note the FAQ[1] before creating ProducerTemplate inside a processor, rather inject/create a single instance on startup. [1] http://camel.apache.org/why-does-camel-use-too-many-threads-with-producertemplate.html On Wed, Feb 5, 2014 at 2:02 PM, Alvaro Rodriguez wrote: > Hi Muhzin > > To

Re: Deploying REST service on running camel:jetty instance

2014-01-31 Thread Taariq Levack
Hi Have you seen the restlet docs[1] for Using the Restlet servlet within a webapp? [1]http://camel.apache.org/restlet.html > On 31 Jan 2014, at 10:19, bijoy wrote: > > Any thoughts how to achieve this? > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Deploying

Re: Dysfunction of recipientList with 2 same endpoints in the List (using onPrepareRef)

2014-01-18 Thread Taariq Levack
Hi For every exchange you loop but don't break, since you match "direct://A" twice, the 1st header is overwritten. Can you tell us more about what you're trying to do? If it's just to track how many times the endpoint is invoked, there are other ways. Taariq On Sun

Re: Camel Security Framework - ActiveMQ Store error

2014-01-08 Thread Taariq Levack
You have a version mismatch, camel-core-2.12.2 is being used with camel-jms-2.9.2 Taariq On Wed, Jan 8, 2014 at 8:47 AM, contactreji wrote: > Hi > > I was trying to do some encryption exercises. Once the message is > decrypted, > I am unable to store the result into a

Re: Ideas on how to structure route (alternatives to direct:...)

2013-12-13 Thread Taariq Levack
t:import").multicast().to("sql:query1", "sql:query2") Taariq > On 13 Dec 2013, at 23:46, "richie.rivi...@gmail.com" > wrote: > > Hi All, > > I've got two main routes in my application. An import route and an export > route. > > At t

Re: Setting exchange out body

2013-12-13 Thread Taariq Levack
Sure, check the camel-jms page[1] for options, there's jmsMessageType. [1] http://camel.apache.org/jms.html > On 13 Dec 2013, at 16:49, johndoe1 wrote: > > It seams like the jmsConfiguration for the component has the message type set > to text: > jmsConfiguration.setJmsMessageType(JmsMessageTyp

Re: Batch Timeout Question

2013-12-05 Thread Taariq Levack
I meant to add the link[1] to the docs about those options, perhaps you were looking at the old aggregator which talks about batch timeout. [1] http://camel.apache.org/aggregator2.html Taariq On Fri, Dec 6, 2013 at 5:34 AM, Taariq Levack wrote: > You can choose which behavior you n

Re: Batch Timeout Question

2013-12-05 Thread Taariq Levack
You can choose which behavior you need, there's completionTimeout and completionInterval. Taariq > On 06 Dec 2013, at 3:33, "kraythe ." wrote: > > Been looking all over the docs for this. If I have an aggregator with a > batch timeout of 1000 mills and I am runn

Re: New blog post: Writing a Camel Component

2013-11-25 Thread Taariq Levack
Nice post. Just noticed that you meant to say producer but said consumer; "First since this is a consumer component" > On 25 Nov 2013, at 18:15, Tracy Snell wrote: > > > Just put up a blog post demonstrating how to write a new Camel component. > > http://code.notsoclever.cc/writing-camel-com

Re: Factoring out exception Handling fragments.

2013-11-08 Thread Taariq Levack
An abstract CXF route builder for example can handle all exceptions in a certain way. No need to mention it in the subclass, just call super.configure() where you have the onException Taariq > On 08 Nov 2013, at 16:52, "kraythe ." wrote: > > Yeah I can inherit classes bu

Re: Forcing file write to complete without stream caching

2013-11-05 Thread Taariq Levack
That's the old file component, have a look at file2. http://camel.apache.org/file2.html > On 05 Nov 2013, at 20:36, Ben Hood <0x6e6...@gmail.com> wrote: > > Hey Claus, > > Having to acquire a lock on the file sounds like a good way to implement the > "don't start attempting to read an empty fil

Re: count of processed messages when using aggregation

2013-11-05 Thread Taariq Levack
Aggregator has a CamelAggregatedSize, maybe try Simple[1] to set a header with the sum. [1] http://camel.apache.org/simple.html > On 05 Nov 2013, at 15:48, Olaf wrote: > > Hello, > > thanks! CamelSplitSize is useful. I'd add then > >.to("remote") >.choice() >

Re: count of processed messages when using aggregation

2013-11-05 Thread Taariq Levack
Hi I think your split size is actually , try use the header from the split, CamelSplitSize. Taariq On Tue, Nov 5, 2013 at 1:57 PM, Olaf wrote: > Hello, > > is there an easy way to count and sum all processed lines by an aggregator? > Suppose, my file has lines, the ro

Re: Camel http4 adds request headers to response headers by default

2013-11-04 Thread Taariq Levack
erStrategy or DefaultHeaderFilterStrategy. http://camel.apache.org/http4.html (See section on Message Body) Taariq On Mon, Nov 4, 2013 at 8:54 PM, orchid wrote: > Hi, > > The headers we do not want are our custom headers. Why are they copied from > request to response always in the

Re: Camel http4 adds request headers to response headers by default

2013-11-04 Thread Taariq Levack
Hi You can remove or filter the headers, see this FAQ http://camel.apache.org/how-to-avoid-sending-some-or-all-message-headers.html Taariq > On 04 Nov 2013, at 19:54, orchid wrote: > > Hi, > > We are using Camel 2.12.1 and noticed the http4 components always copies > wha

Re: JPA component - Persist 1 record working but how to persist many records?

2013-10-27 Thread Taariq Levack
.rivi...@gmail.com" > wrote: > > Thank you so much Taariq, > > Your advice was exactly what I needed to give me enough information to > resolve my issue. > > public List splitItemsRootDocuments(ItemRootDocument doc) { > List items = new ArrayList(); >

Re: JPA component - Persist 1 record working but how to persist many records?

2013-10-27 Thread Taariq Levack
Hi I think you're getting there, the splitter should return all the items, but the converter should convert a single ItemDocument to an entity. Maybe also change the splitter signature to public List Taariq > On 27 Oct 2013, at 8:04, "richie.rivi...@gmail.com" >

Re: Display only the last message into the browser

2013-10-20 Thread Taariq Levack
If the aggregator isn't suitable, camel-cache[1] might work better. [1] http://camel.apache.org/cache.html Taariq On Mon, Oct 21, 2013 at 5:00 AM, Willem jiang wrote: > In most case the queue is serving as first in and first out, if you just > want to display the last message, you

Re: Camel gradually slowing down with large sql results

2013-10-14 Thread Taariq Levack
Ah yes, I see that. I use JProfiler but it's not free. I've also found Eclipse Memory Analyzer very useful, so you might try JVM monitor. VisualVM will also be enough, for now you're just trying to see what's getting the most CPU time since that's maxed out when things slow down. What happens w

Re: Camel gradually slowing down with large sql results

2013-10-14 Thread Taariq Levack
a profiler and let us know what the cpu's doing. Taariq > On 14 Oct 2013, at 19:39, rjsteixeira wrote: > > Hi. > > I'm seeing a constant slowdown in Camel. It starts at 600 inserts/s and > never ends because the rate drops to 5 or 6 inserts a second... > > >

Re: Get BeanCreationException when try to add Jackson Library to my applicationContext.xml

2013-10-10 Thread Taariq Levack
Define the data format before the routes. Check the schema or the spring example[1] [1]http://camel.apache.org/data-format.html Taariq > On 10 Oct 2013, at 22:13, erj2code wrote: > > I have a simple Hello World example that passes a Map to Camel and displays > the values to the

Re: Bean component/Bean Binding: Body as InputStream parametr (specified as ${body} in route)

2013-10-01 Thread Taariq Levack
If you're not aware and you need a workaround and this suits your scenario, you'll get the body as the InputStream if you don't use Simple. ie Taariq On Tue, Oct 1, 2013 at 9:35 PM, Claus Ibsen wrote: > Hi > > Yeah sounds like a bug. Do you mind logging a JIRA ticket?

Re: Bean component/Bean Binding: Body as InputStream parametr (specified as ${body} in route)

2013-10-01 Thread Taariq Levack
Hi Looks like you're trying to read the stream twice, try again after enabling stream-caching[1] [1] http://camel.apache.org/stream-caching.html Taariq On Tue, Oct 1, 2013 at 11:25 AM, wrote: > Hello, > I am playing with "bean binding" on bean component. I know,

Re: Camel Quartz Query

2013-09-25 Thread Taariq Levack
Hi Can you use an idempotent consumer[1] before sending to the web service? http://camel.apache.org/idempotent-consumer.html If you did have a sort of 'busy' status, you'd have to handle the situation where records are left in that 'busy' state due to a JVM crash for

Re: Camel JBDC : Connection pooling

2013-09-11 Thread Taariq Levack
Hi Yes, just configure a pooled datasource. Taariq On Wed, Sep 11, 2013 at 12:15 PM, myhumandreams < kv.prajeesh.rajas...@gmail.com> wrote: > Camel JDBC is having support for Database connection pooling? > > Or else it is just a connection like JDBC connection. > >

Re: Need Help in a scenario, which is not working as expected: Camel Route based code

2013-09-10 Thread Taariq Levack
. Perhaps it's getting stuck there or at "bean:luceneIndexer?method=luceneIndexing", it's also possible there are no files in that directory and it's waiting, so check the logs. Just a note that pipeline is the default mode so you don't have to explicitly state it. Regard

Re: Is it Camel Bug?

2013-07-28 Thread Taariq Levack
Syed, if you post your actual code and config we will likely see some misuse or misconfiguration. Its not typical to create threads in a web application, especially not for every request. And it's not typical to start/stop the producer or the camel context for each request. Taariq On Mon

Re: "costants" string for URIs in a bean.xml

2013-06-13 Thread Taariq Levack
Rather store the URI in a file, see http://camel.apache.org/properties.html Taariq On Thu, Jun 13, 2013 at 1:08 PM, Cristiano Costantini < cristiano.costant...@gmail.com> wrote: > Hi all, > > I'm moving my routes from Java DSL to the beans.xml (I'll deploy the x

Re: Soap request

2013-06-09 Thread Taariq Levack
Hi Take a look at this CXF proxy example http://camel.apache.org/cxf-proxy-example.html Taariq On Sun, Jun 9, 2013 at 10:50 AM, subramanyam wrote: > Hi to all, > > > I am subramanyam new to camel integration framework.Currently i am working > onthis.i have a scenario like thi

Re: Camel routing issue

2013-04-17 Thread Taariq Levack
Hi Looks like java needs a hand[1], after .to(SCHEDULE_QNAME,ONLINE__QNAME), you can try endChoice() [1] http://camel.apache.org/why-can-i-not-use-when-or-otherwise-in-a-java-camel-route.html Taariq On Wed, Apr 17, 2013 at 11:00 AM, prabumc...@gmail.com wrote: > Thanks Claus for y

Re: base class for context component?

2013-03-14 Thread Taariq Levack
.java?revision=1069442&view=markup Taariq On Wed, Mar 13, 2013 at 5:10 PM, Sven Bauhan wrote: > On 03/13/13 12:50, Taariq Levack wrote: > >> I got the idea that you really want to define an instance of the >> DefaultCamelContext, and not the new class/implementation that you

Re: base class for context component?

2013-03-13 Thread Taariq Levack
:foo"). to("direct:bar"); } }); fooBlackBox.start(); registry.bind("someKey", fooBlackBox); I hope I understood you, else lets try again starting with what you want to accomplish. Taariq On Wed, Mar 13, 2013 at 12:35 PM, Sven Bauhan wrote: > Ok now you lo

Re: base class for context component?

2013-03-11 Thread Taariq Levack
Hi Sven Perhaps you've misunderstood the following... "Defining the context component" In this context(excuse me), what's meant is a bean definition. You should just use the DefaultCamelContext to define your own context, with it's own name as this one is blackbox, and

Re: Issue using camel-cxf-transport (2.10)

2013-02-09 Thread Taariq Levack
Charles try without the forward slashes, like so "direct:supervisor" On 08 Feb 2013, at 19:03, Charles Moulliard wrote: > Hi, > > Itry to use camel-cxf-transport but get a "No consumers available on > direct://supervisor". > > [msConsumer[supervisorworklist]] DirectProducer W

Re: Spring bean injection best practice

2013-02-01 Thread Taariq Levack
I don't know about best practices, often depends on use cases, but Camel will also cache the result of the registry lookup, if the bean is a singleton.[1] For instance you may not want to autowire all these services into your router, or even know which ones to autowire, then Camel can look it up in

Re: Files from remote host

2013-01-29 Thread Taariq Levack
No, but it might be a job for camel-ftp [1] [1] http://camel.apache.org/ftp2.html On Tue, Jan 29, 2013 at 11:43 AM, AMARNATH, Balachandar < balachandar.amarn...@airbus.com> wrote: > Right, I was thinking about the situation where mouting facility is not > available. In such cases, camel does fi

Re: Fork/join with resequencing

2013-01-03 Thread Taariq Levack
For completion, that snippet wasn't complete but it you apply the change you'll see to also use that unitOfWork reference throughout the method, otherwise the null pointer will likely only be delayed. I'll run the camel-core tests tomorrow but your code worked consistently. Ta

Re: Fork/join with resequencing

2013-01-03 Thread Taariq Levack
tUnitOfWork(); if (unitOfWork != null) { unitOfWork.pushRouteContext(routeContext); } Taariq On Thu, Jan 3, 2013 at 12:09 PM, Vincent Lombart wrote: > Hello, > > Does anybody have an idea about what could sometimes cause a > NullPointerException in Camel c

Re: Spring DSL and sftp password

2013-01-02 Thread Taariq Levack
Hi Have you seen this FAQ? https://camel.apache.org/how-do-i-use-spring-property-placeholder-with-camel-xml.html Taariq On 02 Jan 2013, at 22:14, Tyler Durvik wrote: > I have routes defined that use the sftp endpoint. Right now I have > the user password stored in the camel-context.xm

Re: Return Value from Python Script Not In Message Body

2012-12-14 Thread Taariq Levack
On 14 Dec 2012, at 8:47, neilac333 wrote: > I thought about that so I tried the following: > > def foo(): >return "hello" > > foo() > > > But I still get the same NPE. How do I get the result of the script to be > passed along? > > Thanks. > > > > -- > View this message in context:

Re: HTTP4 component body CachedOutputStream to String

2012-10-26 Thread Taariq Levack
Hi You should enable stream caching[1] if you want to read a stream more than once. [1] http://camel.apache.org/stream-caching.html Taariq On 26 Oct 2012, at 18:34, clakech wrote: > I find an answer to my question: > > to("http4://sample").convertBodyTo(String.class) WORKS

Re: Camel enrichment

2012-09-03 Thread Taariq Levack
That sounds like too much effort. I liked the simpler solution you got yesterday a whole lot better. On 04 Sep 2012, at 5:10, Naveen Raj wrote: > hi, >The camel enrich processor needs an aggregation strategy to be > implemented,where I need to implemented my own bean to enrich.The scenario

Re: @XPath evaluation

2012-08-27 Thread Taariq Levack
Hi In what version of camel is this method setFileNameHeader? Or did you define it? BTW the filename should already be in the headers, check CamelFileName and CamelFileNameOnly Taariq On Tue, Aug 28, 2012 at 4:56 AM, Willem jiang wrote: > setHeader() should be able to take the XP

Re: Content Based Router Query

2012-08-20 Thread Taariq Levack
Hi Yes, the CBR is rightly based on content, I think you want the recipient list [1]. [1] http://camel.apache.org/recipient-list.html Taariq On 20 Aug 2012, at 18:09, gilboy wrote: > Hi > > The content based router does not appear to support the routing of a message > to

Re: Camel Custom Data Format xmljson

2012-08-11 Thread Taariq Levack
Hi Here's a nice page on custom data format[1] [1]http://camel.apache.org/custom-dataformat.html On 11 Aug 2012, at 18:55, Nitn Gautam wrote: > I am trying to make a custom dataformat using xmljson. I want to support ":" > in marshall/UnMarshall process. > I am using Spring XML for route defin

Re: extract header from camel-mail component

2012-03-30 Thread Taariq Levack
Hi Instead of the 1st "process" unless there's more going on there, use setHeader [1] , and instead of the 2nd "process", use header[2]. [1] http://camel.apache.org/constant.html [2] http://camel.apache.org/header.html Taariq On 30 Mar 2012, at 7:52, Filippo Balicchia

Re: HTTPS Usage

2012-02-20 Thread Taariq Levack
Hi You didn't start the camel context, so the component is not started, so the connection manager is not initialised either. Please try camelCtx.start(); Taariq On Mon, Feb 20, 2012 at 8:33 PM, ckiran wrote: > This is he exact exceptionI get when I run

Re: Datacoding/Alphabet issue in SMPP

2012-01-31 Thread Taariq Levack
Woops, I saw the range in the docs and didn't think twice of it, relied on what I saw in the trunk code. I'm sorry I thought it's 2 options Andre. Taariq On Tue, Jan 31, 2012 at 3:25 PM, Christian Müller < christian.muel...@gmail.com> wrote: > Starting with Camel 2.9.0,

Re: Datacoding/Alphabet issue in SMPP

2012-01-30 Thread Taariq Levack
Hi Andre Actually the determinedAlphabet isn't set based on the dataCoding, it's determined isGsm0338Encodeable(). Please check your URI to be sure you've set the correct alphabet, one of those enums, or leave it to default. dataCoding is a different option in the URI, set that

Re: Enrich message with data from dynamic sql query

2012-01-25 Thread Taariq Levack
Hi The aggregator will take in the original exchange and then also the exchange returned by the resource. Give it a try. Taariq On Wed, Jan 25, 2012 at 4:19 PM, Pablo Venini wrote: > Christian: > as I see it, the problem would occur before the aggregation > strategy; i

Re: Datacoding/Alphabet issue in SMPP

2012-01-23 Thread Taariq Levack
Hi Andre Those are just examples for the documentation, please go ahead and try 245. Taariq On Tue, Jan 24, 2012 at 8:55 AM, andrer wrote: > I am currently using the camel 2.9 smpp component to send sms's via our > smpp > provider. The smmp 3.4 spec lists a number of availa

Re: ProducerCache memory leak?

2011-12-29 Thread Taariq Levack
Ah yes, it stops with the chain in my test loop. How do you stop the route? Taariq On Fri, Dec 30, 2011 at 3:50 AM, Willem Jiang wrote: > Hi, > > I don't know how you stop the route. > The ProducerCache is service, it should be stop which the service chain. > Please use the

Re: NPE for FTP endpoint

2011-12-29 Thread Taariq Levack
ewhere of how to use the API? > > Thx. > > > > From: Taariq Levack > To: "users@camel.apache.org" > Sent: Thursday, 29 December 2011, 18:56 > Subject: Re: NPE for FTP endpoint > > Why do you want to create a processor definition that way? > The example only

Re: NPE for FTP endpoint

2011-12-29 Thread Taariq Levack
with low level camel API in my apps, so maybe first try to avoid it in this case or help me understand why you need it. Maybe you're only doing this to set a dynamic path for the consumer and producer? Taariq On 29 Dec 2011, at 8:26 PM, David Wynter wrote: > Ok, I misunderstood th

Re: ProducerCache memory leak?

2011-12-29 Thread Taariq Levack
Can we see the routebuilder? On 29 Dec 2011, at 7:58 PM, suman wrote: > No iam not.For every "to" dsl in routebuilder,sendprocessor gets invoked and > it is newing up producercache instances. > > Thanks > > -- > View this message in context: > http://camel.465427.n5.nabble.com/ProducerCache-m

Re: ProducerCache memory leak?

2011-12-29 Thread Taariq Levack
Hi Are you creating the producer yourself somewhere? People often create a producer for every message. Taariq On 29 Dec 2011, at 7:42 PM, suman wrote: > Hello All, > Iam using camel 2.8.3 and have an issue regarding ProducerCache objects not > being garbage collected. > I browsed

Re: NPE for FTP endpoint

2011-12-29 Thread Taariq Levack
Hmmm, can you talk more about your use case? Because the FAQ seems a perfect fit, you consume the file and then stop the route, later it starts again in whatever way you want. No idea on the NPE, sorry. Taariq On 29 Dec 2011, at 7:29 PM, David Wynter wrote: > Hi, > > I do not wan

Re: NPE for FTP endpoint

2011-12-29 Thread Taariq Levack
Hi Did you try this FAQ[1] on how to stop a route from a route? [1] http://camel.apache.org/how-can-i-stop-a-route-from-a-route.html Taariq On 29 Dec 2011, at 6:12 PM, David Wynter wrote: > Hi, > > I tested on my machine and deployed to my customer, It went boom as follows, &g

  1   2   >