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 that when a file I ask

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 to pass properties using setProperty

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.apache.camel/came

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 think filter would be the clos

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
r task queue !? > > 2015-02-12 10:23 GMT+03:30 Taariq Levack : > > > Hi > > > > SEDA queue size is unbounded by default, you can try the unit test[1] > with > > a very large number, works for me in 2.14.1 and trunk. > > Check all your endpoints with

Re: RejectedExecutionException: Task rejected due queue size limit reached

2015-02-11 Thread Taariq Levack
Hi SEDA queue size is unbounded by default, you can try the unit test[1] with a very large number, works for me in 2.14.1 and trunk. Check all your endpoints with that name, the first one to load is setting the size. [1] https://github.com/apache/camel/blob/master/camel-core/src/test/java/org/apa

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 ContextHandler to

Re: REST DSL - including documents

2015-01-25 Thread Taariq Levack
Hi guys I just did the same thing for Netty and I used Netty's example code for serving static files, just Camelized it a little in a fabric8 quickstart using Rest DSL. With this I can have the REST routes and the static files served on the same port, support browser caching etc. There are still

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
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 throttled or limited appropriately, and forward to your existing endpoint where the work is done. That last endpoint should have more consumers than either

Re: Camel

2014-12-29 Thread Taariq Levack
Smells like a bug in the way you build up the SQL so start by getting it to run in your IDE or db client. Or write the SQL you expect and some unit tests. If that works and Camel doesn't then send the test, that's the fastest way to get help. Also see http://camel.apache.org/support.html Taariq

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 print the exchange I s

Re: Camel Twitter Consumer - DirectMessage

2014-12-20 Thread Taariq Levack
Hi Reji camel-twitter already includes twitter4j-core so no need to include it, the version is 3.0.5 to avoid the error you got. The class itself is included in the jar, but you can't import it because it's not public. No need for the internal api anyway, the responses/tweets already have what yo

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 than this? > >

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 > >... (*) > > > > > According

Re: Sending to Syslog

2014-12-11 Thread Taariq Levack
Hi Mike 2.14.0 camel-activemq is using the 5.10 ActiveMQ client. The doc you linked to earlier shows the dependency on camel-syslog, with maven you just include camel-syslog as a dependency and the data format is defined in there, along with it's dependencies. If you're not using maven, you need

Re: Unexpected behaviour of Camel Simple expression

2014-12-05 Thread Taariq Levack
The type converter ends up looking for a type Thingwithbrackets, the quotes and brackets don't make it easy. I really don't know if it's meant to work that way, when Simple gets tricky I reach for something like Groovy or Java. > On 05 Dec 2014, at 09:08, welshstew wrote: > > Thanks for your

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 :) > > I have a very si

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 every one! > > I'm trying

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

2014-11-24 Thread Taariq Levack
Hi Gordon I don't think your json is valid[1], once that's sorted try this unit test[2] which shows how to achieve what you want. [1] http://jsonlint.com/ The following works, I added some quotes, you'll have to check if your format is supposed to be supported. { "ts": "Timestamp(1415124334, 1)

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 currently use Maven to manage depend

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, Jan 19, 2014 at 2:32 AM, ABo

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 ActiveMQ Queue. > > Would

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

2013-12-13 Thread Taariq Levack
Hi I don't see from your example what you're really doing, I have an idea but I can't see it working, maybe post the actual ugly routes. You can also consider a recipient list for all your SQL stuff, or multicast, it doesn't have to be in parallel. Eg from("direct:import").multicast().to("sql:qu

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 running a batch of 5000 records that

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 but I don't see where t

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 route split it int

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

2013-11-04 Thread Taariq Levack
The HttpProducer handling the Exchange doesn't know or care where the Exchange is going next, so the request headers are preserved for further routing. You may also consider using properties if you'd rather not filter the headers, or extend org.apache.camel.component.http4.HttpHeaderFilterStrategy

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 > what's in the request head

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

2013-10-27 Thread Taariq Levack
Great, glad its solved. I only saw Babak's comment now and didn't think of it earlier. The component will also take a collection of entities, so no need to split, just convert. You now have another tool in the box though, enjoy the ride. > On 27 Oct 2013, at 12:31, "richie.rivi...@gmail.com" >

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" > wrote: > > Hi All, > > Well

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 may need to

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
Hi Try using the stateful option for your timer, which will disable concurrent executions. I think you're running that process every 20 seconds, which could keep the garbage collector very busy. Just a guess after glancing at it, but give it a try. If it's not that, run it through a profiler an

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 console via Log4

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? > > On Tue, Oct 1, 2013

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, that I can > solve my require

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 example. Taariq On Wed, Se

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. > > > > > -- > View this message

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

2013-09-10 Thread Taariq Levack
Hi You weren't clear about the step it's getting stuck at, enable trace logging to see what it's doing. And to transfer from ftp to the file system you don't need "bean:fileCopier", not sure what it's doing because you didn't include details of it. Perhaps it's getting stuck there or at "bean:luce

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, Jul 29

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 xml > file into ServiceMix). > > N

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 this i am taking a so

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 your respons

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
issing for me, is how I can put it in a running context. > Is there a small example that I could investigate to understand how it > works? > > Thanks, Sven > > > On 03/11/13 14:45, Taariq Levack wrote: > >> Hi Sven >> >> Perhaps you've misunderstoo

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 it's own routes. Taariq

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
ariq On 03 Jan 2013, at 18:04, Taariq Levack wrote: > Hi Vincent > > I reproduced your error with your code in Camel 2.9 and 2.10, and maybe > you've found a bug. > At first I thought it's your sleep calculations but even so we shouldn't > throw a null pointer.

Re: Fork/join with resequencing

2013-01-03 Thread Taariq Levack
Hi Vincent I reproduced your error with your code in Camel 2.9 and 2.10, and maybe you've found a bug. At first I thought it's your sleep calculations but even so we shouldn't throw a null pointer. Please file a JIRA so I can attach a patch and you can see if it works for you too, but with the ch

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.xml file,

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 FINE > > to("http4:

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 XPath expression

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 a particular destin

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 wrote: > Hello All, > I

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 the code. > > org.apache.camel.ResolveEn

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, the name of this option

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 to 255. Taariq

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; if I use a JDBC

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 available datacoding > pos

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 API stopRoute(String

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
uot;, routeD); >camelContext.addRouteDefinition(routeD); >camelContext.startRoute(routeD); > > Not sure which ProcessorDefinition type I need. > > Thx. > > David > > > From: Taariq Levack > To: &qu

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 through this

Re: NPE for FTP endpoint

2011-12-29 Thread Taariq Levack
But these are the least of my worries since on my customers machine I get the > NPE, but in testing here I do not? Any ideas on this NPE? > > Thx. > > David > > > > From: Taariq Levack > To: "users@camel.apache.org" >

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, > names etc. chan

Re: FTP - Get single file

2011-12-11 Thread Taariq Levack
Hi Did you try the fileName or include options inherited from File[1]? [1] http://camel.apache.org/file2.html Taariq On Mon, Dec 12, 2011 at 7:23 AM, diwakar wrote: > Hi, > > In Camel FTP, is it possible to specify single file to be > retrieved? The URI takes only the folder and

  1   2   >