Re: A lot of spam

2017-08-22 Thread souciance
lt;http:///user/SendEmail.jtp?type=node=5811757=0>>: > > > > Yes we have given up on nabble - do not use it. > > > > On Mon, Aug 21, 2017 at 1:13 PM, souciance > > <[hidden email] <http:///user/SendEmail.jtp?type=node=5811757=1>> > wrote: &

A lot of spam

2017-08-21 Thread souciance
Hello, I do receive quit a bit of spam mail from Camel nabble. Is it just me or does everyone else receive nabble mail promoting marriage in India? Best Souciance -- View this message in context: http://camel.465427.n5.nabble.com/A-lot-of-spam-tp5811575.html Sent from the Camel - Users

Re: Camel FTP polling is very slow

2017-08-16 Thread souciance
What do you mean slow? Slow compared to what? On Wed, Aug 16, 2017 at 11:16 AM, chandresh pancholi [via Camel] < ml+s465427n5810828...@n5.nabble.com> wrote: > Hi, > > I am polling files from FTP with below attributes. > > ftpBuilder.append("://") > .append(username + "@"+ url) >

Re: File consumer exchange fails when async/fire-forget SEDA subroute fails

2017-06-29 Thread souciance
What is it exactly that fails? I don't see anywhere in your code where you invoke a processor? Where exactly does the exception occur? On Thu, Jun 29, 2017 at 12:18 AM, craig.w [via Camel] < ml+s465427n5805390...@n5.nabble.com> wrote: > Hello all, > > I have 2 routes: > * a file consumer route:

Re: Use dead letter with RabbitMQ after N retries

2017-06-28 Thread souciance
What error message do you get from Rabbit when you try to send it to the dead letter exchange? It depends. It can created for the first time if you set certain properties to true. It can assume the exchange exists and create it if those properties are set to false. Look at the properties,

Re: split by byte chunks

2017-05-31 Thread souciance
Hello, Although there is no such method you can just write it in a bean and refer to it in your splitter. I have done it when wanting to split based on some uncommon value. The below is taken directly from the documentation. from("direct:body") // here we use a POJO bean mySplitterBean

Re: 61M csv file cause Heap error on JVM with 1 GB limit

2017-05-22 Thread souciance
Classic ;) On Mon, May 22, 2017 at 1:34 PM, brent-e2 [via Camel] < ml+s465427n572...@n5.nabble.com> wrote: > Thanks for the reply. > > I'm posting the solution here in case anybody else falls into the same > trap I did: > > My route is splitting the file on Windows/Dos line-endings CR-LF. >

Re: 61M csv file cause Heap error on JVM with 1 GB limit

2017-05-21 Thread souciance
At first I thought you were reading the whole file at once but it seems you are splitting it and use streaming. I am not sure if it is something to do with the ftp operation. Why not have a route that first moves/copies the file from the ftp server to a local folder. Then let another route get

Re: CamelContext Fails to start when consuming from a down database

2017-05-16 Thread souciance
Tricky situation, but as a workaround you can stop the context or route from karaf. There are camel commands you can run. So if the DB is down due to maintenance then you manually issue a command to stop the context and start it after DB is up again. At least that way you don't get a lot of error

Re: Java Rest DSL Spring boot and Rabbitmq

2017-05-14 Thread souciance
Have a look at the camel-rabbitmq component, there are some parameters for pooling but I haven't used them myself. Maybe the unit tests provide more information. I believe .to("rabbitmq...") opens and closes a new connection. For json schema validation there are various frameworks you can use to

Re: Problem using setProperty() with groovy() on optional Field

2017-05-10 Thread souciance
That's strange. I mean worst case scenario, create an inline processor and extract the xml and check the field and extract the field value and put in source property.This way you are sure what should happen. On Wed, May 10, 2017 at 4:29 PM, Mic [via Camel] < ml+s465427n5799236...@n5.nabble.com>

Re: Problem using setProperty() with groovy() on optional Field

2017-05-10 Thread souciance
I don't know the groovy version but simple language has null safe operator. Can't you write it like this: .setProperty("source").simple("${request.body.source?") See here for examples: http://camel.apache.org/simple.html On Wed, May 10, 2017 at 3:32 PM, Mic [via Camel] <

Re: How to suspend a particular request and resume later

2017-05-10 Thread souciance
Perhaps there are good ways to do this technically, but in general I would avoid keeping state in your integration layer. It will just introduce you to a set of new problems when it comes to error handling and retry. You'd be better off redesigning the solution without the wait if possible. If

Re: Dynamic "from" and pollEnrich

2017-05-08 Thread souciance
And you are sure the file exist at that location with that name? I have done pollEnrich with file before and that has worked. Can you log the headers before the poll enrich and post it? Den 8 maj 2017 4:47 em skrev "geppo [via Camel]" < ml+s465427n5799112...@n5.nabble.com>: &g

Re: Dynamic "from" and pollEnrich

2017-05-08 Thread souciance
One question, Do you have a header where you store the date and you want to use that, or do you want to access the simple language to access current date? If I am not misstaken if it is the former, it should be ${headers.date} and for the latter it should be ${date:now:MMdd} to include year,

Re: How to increase camel exchange timeout threshold

2017-05-04 Thread souciance
Try setting this method to a value of your choice. https://camel.apache.org/maven/camel-2.15.0/camel-core/apidocs/org/apache/camel/impl/DefaultShutdownStrategy.html#setTimeout(long) Exchange timeouts are set att Camel context level and not the seda level. On Wed, May 3, 2017 at 6:39 PM, Ryan T

Re: Charset on file poller endpoint

2017-05-04 Thread souciance
Probably the easiest is to read the file and send the exchange to a bean. In the bean try to read it and determine the encoding and if it has a BOM character. Finally do your conversion and put the body back to the exchange. from(file:/myDir) .to(DetermineEncoding.class, "determineEncoding")

Re: Sometimes the data in body is null..

2017-05-04 Thread souciance
I guess it could be network errors or something else that takes time? Maybe add more logging such as log the the headers, properties, timestamp or the old exchange, to give you a clue why this exchange body was empty. Maybe some other business logic that caused it? What is it you want to

Re: Help diagnosing camel exception

2017-04-27 Thread souciance
Couldn't you use an OnException for logging and then continue? This way, the processing doesn't step because of one error. OnException().continued(true).to("seda:LogErrors"); Virusfritt.

Re: Help diagnosing camel exception

2017-04-27 Thread souciance
goes away or perhaps it could be worth run some sort of a load test using JMeter to trigger those timeouts and then see exactly which record is causing this happen. Best Souciance <https://www.avast.com/sig-email?utm_medium=email_source=link_campaign=sig-email_content=webmail> Viru

Re: Help diagnosing camel exception

2017-04-27 Thread souciance
Just a quick thing, couldn't you disable all the routes and beans first and then enable them one by one to pinpoint which one is the culprit? Den 27 apr. 2017 6:54 em skrev "Ryan T [via Camel]" < ml+s465427n579842...@n5.nabble.com>: In the bean:jobService it may go on to hit a mongo instance.

Re: Guidance to choose "future proof" http consumer/producer components

2017-04-27 Thread souciance
Hi, Do you guys have any comments on the netty component for http? Will it continue or will it also soon be deprecated? Thanks Souciance On Thu, Apr 27, 2017 at 3:18 PM, sbrandt2 [via Camel] < ml+s465427n5798412...@n5.nabble.com> wrote: > Thank you Zoran and Claus! > &g

Re: Help diagnosing camel exception

2017-04-27 Thread souciance
on the logs but can't confirm. Do you do any calls to third party systems in that bean? Best Souciance On Thu, Apr 27, 2017 at 1:08 AM, Ryan T [via Camel] < ml+s465427n5798367...@n5.nabble.com> wrote: > More code that might help in diagnosing the issue. What do you think > could

Re: camel splitter

2017-04-26 Thread souciance
save the line as a value to that key if key is not found create a new entry with the column as key and line as value I guess it depends on how big the structure will grow. But yeah, could work as an alternative. Best Souciance On Wed, Apr 26, 2017 at 11:41 PM, Gary [via Camel] <

Re: camel splitter

2017-04-26 Thread souciance
Since it seems your file has a well defined structure, why not map it to bindy or csv dataformat first. Then you will have a list of rows which you can filter out in some way. But do you know in advance how many type of collections you are interested in? On Wed, Apr 26, 2017 at 6:58 PM, Gary

Re: Parsing issue with unmarshal and bindy.csv with double quotes and commas in a single field

2017-04-19 Thread souciance
You have four fields in the fourth row hence the error. On Wed, Apr 19, 2017 at 7:10 AM, sadiq [via Camel] < ml+s465427n5797871...@n5.nabble.com> wrote: > I'm experiencing a parsing issue using Bindy to unmarshal a CSV file into > a List of POJOs (my POJO class is annotated with @CsvRecord). > >

Re: Using Split with JSON File

2017-04-17 Thread souciance
I would suggest get the whole resultset and save the data on a queue or even as a file. Then you can parse it as a stream or every x number of rows and split. On Mon, Apr 17, 2017 at 7:49 PM, andcrow [via Camel] < ml-node+s465427n5797772...@n5.nabble.com> wrote: > Did not work using

Re: Using Split with JSON File

2017-04-17 Thread souciance
Couldn't you split the resultset from the database and for each split produce a json and send that batch to your web service? On Mon, Apr 17, 2017 at 6:45 PM, andcrow [via Camel] < ml-node+s465427n5797770...@n5.nabble.com> wrote: > Still in the battle with this case . hehehehe > > Viewing

RE: Camel Http vs Camel Http4 - Content Type Header

2017-04-06 Thread souciance
Hi, I can take a look later during the day and get back to you. Den 6 apr. 2017 7:44 fm skrev "Goyal, Arpit [via Camel]" < ml-node+s465427n5797051...@n5.nabble.com>: > Hi souciance, > > Below is the complete test case I have written to debug this problem. You > can

Re: JAXB Marshalling from email route

2017-04-05 Thread souciance
No problem, hope it solves it! On Thu, Apr 6, 2017 at 12:35 AM, Gary [via Camel] < ml-node+s465427n5797035...@n5.nabble.com> wrote: > :) I think you're on to something - was thinking the same thing. I will > try tomorrow morning and let you know... I greatly appreciate your help, it > helps

Re: JAXB Marshalling from email route

2017-04-05 Thread souciance
Just a guess but could it be that you are converting the attachment to a string`? In the documentation it is converted to a byte[] first. On Thu, Apr 6, 2017 at 12:12 AM, Gary [via Camel] < ml-node+s465427n5797032...@n5.nabble.com> wrote: > here is my code for extracting attachments - thank

Re: JAXB Marshalling from email route

2017-04-05 Thread souciance
How you extract the attachment from the e-mail? On Wed, Apr 5, 2017 at 11:15 PM, Gary [via Camel] < ml-node+s465427n5797029...@n5.nabble.com> wrote: > hello, I am wondering if anyone has seen this before. > a route that does JAXB unmarshalling. it works fine. it works as it > should. > however,

Re: Camel Not Sending Objects in Headers to RabbitMQ

2017-04-05 Thread souciance
or Objects will be returned as null so I guess that is why the header is not allowed to pass through. Could be a feature request? Best Souciance On Wed, Apr 5, 2017 at 8:44 PM, Caleb Skidmore [via Camel] < ml-node+s465427n579702...@n5.nabble.com> wrote: > Hello, > > When I set a head

Re: Performance issue in Camel SFTP component

2017-04-05 Thread souciance
Well, have you transferred the same amount of files with some other FTP client just to compare how much "slower" the ftp component is? 40,000 files in 3 minutes doesn't sounds ok. On Wed, Apr 5, 2017 at 7:53 AM, Ayush Dixit [via Camel] < ml-node+s465427n5796945...@n5.nabble.com> wrote: > Hi, > >

Re: Camel Http vs Camel Http4 - Content Type Header

2017-04-04 Thread souciance
-outgoing-0 >> > "Accept-Encoding: gzip,deflate[\r][\n]" > > 2017/04/04 00:48:55:619 CEST [DEBUG] wire - http-outgoing-0 >> > "Authorization: Basic [\r][\n]" > > 2017/04/04 00:48:55:619 CEST [DEBUG] wire - http-outgoing-0 >> > "[\r][\n]"

Re: How to append text to the beginning of the file using Camel

2017-04-04 Thread souciance
You could perhaps PollEnrich to fetch the data from the file then then simply concatenate the new portion to the file data and then write to the same file again. But its easier to write some bean method to do this. On Tue, Apr 4, 2017 at 2:11 PM, Amruta Jawlekar [via Camel] <

Re: Issues running unit tests based on CamelTestSupport

2017-03-29 Thread souciance
, DAVID [via Camel] < ml-node+s465427n5796720...@n5.nabble.com> wrote: > > -Original Message- > > From: souciance [mailto:[hidden email] > <http:///user/SendEmail.jtp?type=node=5796720=0>] > > Sent: Wednesday, March 29, 2017 1:31 PM > > To: [hidden email]

Re: Help diagnosing camel exception

2017-03-29 Thread souciance
reRouteId", simple("${property.CamelFailureRouteId}")) On Wed, Mar 29, 2017 at 11:17 PM, Ryan T [via Camel] < ml-node+s465427n5796719...@n5.nabble.com> wrote: > First, thanks souciance for responding. You seem to be the only one that > will respond to me posts and yo

Re: Issues running unit tests based on CamelTestSupport

2017-03-29 Thread souciance
How does your pom look where you run the tests`? On Wed, Mar 29, 2017 at 10:27 PM, KARR, DAVID [via Camel] < ml-node+s465427n5796717...@n5.nabble.com> wrote: > > -Original Message- > > From: KARR, DAVID > > Sent: Wednesday, March 29, 2017 12:47 PM > > To: [hidden email] >

Re: Issues running unit tests based on CamelTestSupport

2017-03-29 Thread souciance
I am not sure seems to indicate that it it cannot find the junit rule called TestWatcher. I don't think this is Camel related. I run those tests with Junit and various rules and works fine. Seem if that rule is added to your dependency. On Wed, Mar 29, 2017 at 9:07 PM, KARR, DAVID [via Camel] <

Re: SEDA vs embedded ActiveMQ

2017-03-29 Thread souciance
The nice thing about SEDA is that it is built in Camel so you don't need any extra dependencies. On Wed, Mar 29, 2017 at 4:56 PM, Mark Nuttall [via Camel] < ml-node+s465427n5796700...@n5.nabble.com> wrote: > Thanks for the reply. > > Yeah, it will just be simple pub/sub, no topics or message

Re: Help diagnosing camel exception

2017-03-28 Thread souciance
According to the log you are not receiving the out message in time so it times out. Caused by: org.apache.camel.ExchangeTimedOutException: The OUT message was not received within: 3 millis. Exchange[ID-mid1-34304-1490639453105-0-772494] On Wed, Mar 29, 2017 at 12:04 AM, Ryan T [via Camel] <

Re: Help with getting camel-extra karaf itest to pass

2017-03-28 Thread souciance
Not sure but from the log: ERROR: Bundle org.apache.camel.karaf.camel-karaf-commands [61] Error starting mvn:org.apache.camel.karaf/camel-karaf-commands/2.18.0 (org.osgi.framework.BundleException: Unresolved constraint in bundle org.apache.camel.karaf.camel-karaf-commands [61]: Unable to resolve

Re: Unable to Catch an Exception in Netty

2017-03-27 Thread souciance
What happens if you add a doTry() and doCatch(Exception.class) around the part which throws the exception? Does this catch the exception? On Mon, Mar 27, 2017 at 9:38 PM, hammod [via Camel] < ml-node+s465427n5796442...@n5.nabble.com> wrote: > I found this thread, it is the same problem I think,

Re: Unable to Catch an Exception in Netty

2017-03-27 Thread souciance
Can you share your OnException code as well`? On Mon, Mar 27, 2017 at 9:16 PM, hammod [via Camel] < ml-node+s465427n5796438...@n5.nabble.com> wrote: > I just found that the OnExcpetion is working when I remove the > part form the routes, unfortunately I need this route to be > transacted > >

Re: RabbitMQ fanout exchange + request-reply + aggergator

2017-03-27 Thread souciance
and then return the aggregated list to the original caller. It sounds a bit messy. Best Souciance On Mon, Mar 27, 2017 at 3:53 PM, dancsi [via Camel] < ml-node+s465427n5796289...@n5.nabble.com> wrote: > I'd like to implement the request-reply pattern over RabbitMQ the > follow

Re: Process several messages from several JMSEndpoints with single ThreadPool

2017-03-27 Thread souciance
Are you using ActiveMQ as your provider? On Mon, Mar 27, 2017 at 9:57 AM, makkenza [via Camel] < ml-node+s465427n5796247...@n5.nabble.com> wrote: > The GUI might get updates to the product from the customers, therefore, we > want to keep the queues as long as the GUI is running. Users have

Re: Process several messages from several JMSEndpoints with single ThreadPool

2017-03-27 Thread souciance
The reason I ask is that, shouldn't the queues be temporarily created and once the processing is over, they are then destroyed? On Mon, Mar 27, 2017 at 9:16 AM, makkenza [via Camel] < ml-node+s465427n5796223...@n5.nabble.com> wrote: > They usually start with 50 then during the day, as users need

Re: Process several messages from several JMSEndpoints with single ThreadPool

2017-03-26 Thread souciance
Are those 200 products created in parallel or quick succession? Den 24 mars 2017 12:49 em skrev "makkenza [via Camel]" < ml-node+s465427n5796093...@n5.nabble.com>: > We have a GUI app that creates a queue for every product to communicate > with the server. As a result for every queue, Camel

Re: Need help retaining files in source folder..

2017-03-23 Thread souciance
I know that is your requirement but wouldn't it make sense to move the files that failed the filter to some other folder so it will be easier to notice them rather than keep them in the source folder? Makes everything more complicated. On Thu, Mar 23, 2017 at 8:51 PM, Hari [via Camel] <

Re: A simple Web Service consumer and producer using Apache Camel

2017-03-23 Thread souciance
Hello, If you are using JBoss Fuse please use the Fuse forum for that. Best Souciance On Thu, Mar 23, 2017 at 11:17 AM, anirban.gupta4 [via Camel] < ml-node+s465427n5796012...@n5.nabble.com> wrote: > Hi, > > I am new to JBoss Fuse and Apache Camel. In our project we

Re: jsonpath expressions in when() clause

2017-03-22 Thread souciance
If you look at the jsonpath documentation you can see there is a not equals operator you can use. https://github.com/jayway/JsonPath But for your case, can you not just write: .when().jsonpath("$.table.length()>0") On Wed, Mar 22, 2017 at 4:21 PM, rafaeltuelho [via Camel] <

Re: ExchangeTimedOutException

2017-03-21 Thread souciance
You could try to use the exchange property ${property.CamelFailureEndpoint} and ${property.CamelFailureRouteId} to determine which route and endpoint failed. On Tue, Mar 21, 2017 at 4:40 PM, catequil [via Camel] < ml-node+s465427n5795836...@n5.nabble.com> wrote: > I have a route similar to the

Re: Conditional registration of routes (or route builders)

2017-03-17 Thread souciance
I guess the solution I am describing doesn't apply to your case but perhaps worth as a discussion. What I have done previously is to describe my integrations via features in Karaf. Then I create a custom karaf distribution and install all the features on install level. Then for every instance I

Re: I need to set Body by new Pojo each time the router called

2017-03-15 Thread souciance
Why don't you do the new Y() part in your changeYbean? On Wed, Mar 15, 2017 at 12:23 PM, ayman.elshayb [via Camel] < ml-node+s465427n5795518...@n5.nabble.com> wrote: > Hello All, > > I have a problem . I have a sub router . The router get in the body an > object with type x then i need to

Re: Recommend a platform for running Camel

2017-03-14 Thread souciance
I also have jolokia installed as a karaf feature in every service deployed and then use a local hawtio installation to connect to each service and view camel metrics or perform other operations. Den 14 mars 2017 7:46 fm skrev "Souciance Eqdam Rashti" < souciance.eqdam.ras...@gmail.

Re: Recommend a platform for running Camel

2017-03-14 Thread souciance
I am no Karaf expert but yes those features exist in the Karaf world as well. You can install decanter which has alerting, monitoring, kibana for logs and metrics. Off course you can install hawtio inside karaf as well. I guess one critical thing to consider is whether you want to completely

Re: Recommend a platform for running Camel

2017-03-13 Thread souciance
Here is a tutorial that shows how to build the same using a custom distribution of karaf and camel inside docker. https://www.theguild.nl/dockerizing-a-custom-karaf-distribution-in-5-minutes/ I have stayed away from the hardcore osgi stuff and just used it as a barebone container and that has

Re: Recommend a platform for running Camel

2017-03-12 Thread souciance
. Best Souciance Den 12 mars 2017 6:01 em skrev "mtod09 [via Camel]" < ml-node+s465427n5795331...@n5.nabble.com>: > I have been running ActiveMQ and Camel for a few years now. > Our organization is in the process of growing to multi locations across > the globe

Re: REST Producer with HTTP-cache

2017-03-11 Thread souciance
Perhaps not in the restlet but it seems you can achieve similar functionality using memcache and camel. See here http://stackoverflow.com/questions/20628545/caching-http-requests-using-apache-camel On Sat, Mar 11, 2017 at 8:33 PM, IanPea [via Camel] < ml-node+s465427n5795292...@n5.nabble.com>

Re: Tracing performance

2017-03-10 Thread souciance
You can get the processing times of each step buy adding this class to context. https://dzone.com/articles/measure-elapsed-time-camel-0 On Fri, Mar 10, 2017 at 8:41 PM, catequil [via Camel] < ml-node+s465427n5795264...@n5.nabble.com> wrote: > I would like to be able to print out in the logs

Re: Using method inside a choice/when

2017-03-08 Thread souciance
Can you share your bean code? Den 8 mars 2017 5:46 em skrev "Peter J Nelson [via Camel]" < ml-node+s465427n5795092...@n5.nabble.com>: > I am trying to use a custom predicate inside of a choice in Spring XML, > but I'm finding my predicate is always being treated as "false" - the bean > itself

Re: Camel Application Monitor tool

2017-03-08 Thread souciance
If you can include Jolokia in your environment then external applications like Nagios or others like Telegraf can parse the data and send to a db like influxdb and you can create alerts for instance in Grafana based on the metrics. Another option is to deploy in Karaf and use the decanter

Re: how to config two routes use the same endpoint?

2017-03-07 Thread souciance
I am not sure I follow but Camel has a toD() endpoint. You can dynamically route to an endpoint using some value from a header or property. If you can dynamically calculate where to route you can use toD() to accomplish this for you. So you can write code to say A-->X where X is B, C , D ,E etc.

Re: Split file based on content

2017-03-07 Thread souciance
Just a quick and perhaps "dirty"solution, couldn't you rewrite it as below ? Your bean contains a method that simply saves the row as a key value in a map. But do you want a complete map of all the rows or different maps for the different rows? from("file:{{filepath}}?noop=true")

Re: Camel performance issue

2017-03-06 Thread souciance
Well I have used the file component both in a VM, docker and a physical host and did not see any drop in performance. There must be something else on your physical host that is cause this. Have you done any profiling or enabled AuditEventNotifier on Camel to see which steps are taking the most

Re: Camel performance issue

2017-03-06 Thread souciance
You will need to be more specific about the performance. What was slow? How long did things take and what was your expectation? How are you putting the files? All at once? Please provide more metrics. Den 6 mars 2017 11:13 fm skrev "RichardChen [via Camel]" <

Re: Camel with OSGI in Felix with Spring DSL

2017-03-03 Thread souciance
I use Blueprint with Karaf rather than spring to setup my routes and camelcontext. It has worked well so far although Karaf can be a bit of pain sometimes. But have a look here for a simple example. http://blog.nanthrax.net/2014/08/testing-utest-and-itest-apache-camel-blueprint-route/ On Fri, Mar

Re: handle multiple JSON formats in same route

2017-03-03 Thread souciance
I think you can use camel-jsonpath to perform xpath like to evaluate the message and based on the evaluation you can select one model over the other. On Fri, Mar 3, 2017 at 1:02 PM, Mark Webb [via Camel] < ml-node+s465427n5794737...@n5.nabble.com> wrote: > I have an incoming route that will be

Re: Best RES-component with SSL

2017-03-02 Thread souciance
In general if you have several rest services that need https I find it easier to have some proxy to offload the https for you as configuring that in Camel/Karaf can be very tricky. I use nginx to off load the https and let Camel focus on the route logic. On Fri, Mar 3, 2017 at 8:14 AM, IanPea

Re: Consuming data from external REST service

2017-03-01 Thread souciance
Camel] < ml-node+s465427n5794629...@n5.nabble.com> wrote: > Hi Souciance and all, > > With this code, it worked this time with http4. > Used ExchangePattern.InOut. > > from("file:d:\\testcamel").convertBodyTo(String.class) > .set

Re: Consuming data from external REST service

2017-03-01 Thread souciance
http4 cannot be used as a consumer. You can only use it to send http requests not receive. You need netty-http4 or some other component that can also receive. Http4 is more like a client. But you can just use a file component which is build it and send some dummy data if you want to test. Or

Re: dynamic select csv column

2017-02-28 Thread souciance
Well you need the Camel file component to read from a file and again write to the file after extracting the data. The actual CSV logic would probably have to be implemented in some bean. 2017-02-28 15:17 GMT+01:00 Richter, Thomas [via Camel] < ml-node+s465427n5794574...@n5.nabble.com>: > Moin, >

Re: Stop polling the input folder after the scheduled route is completed

2017-02-27 Thread souciance
Did you try to stop the route after polling was done? How does your route code look like? On Mon, Feb 27, 2017 at 1:51 PM, Amruta Jawlekar [via Camel] < ml-node+s465427n5794516...@n5.nabble.com> wrote: > Hi, > > I am working on a project which polls to one input folder, processes it > and keeps

Re: Camel route does not reconnect

2017-02-24 Thread souciance
I would say that is a activemq setting firstly. In websphere mq the same thing happens unless you define a backout queue for your input queue. Alternatively must be a setting for setting number of times the message should be rolled back.. Den 24 feb. 2017 5:07 em skrev "Nader [via Camel]" <

Re: Camel route does not reconnect

2017-02-24 Thread souciance
Just a question, but why do you need to restart the Camel application? Even if you get time out the code should gracefully handle the error and roll back or do something to indicate that an error occured but you shouldn't have to restart it? On Fri, Feb 24, 2017 at 4:32 PM, Nader [via Camel] <

Re: Camel route does not reconnect

2017-02-24 Thread souciance
Well the thing is the statement here: [org.apache.camel.ExchangeTimedOutException: The OUT message was not received within: says that it got a time out issue and also at the end of the log there are statements that indicate the the route seems to use the mina component to send the data. But

Re: Camel route does not reconnect

2017-02-24 Thread souciance
Can you share your route or at the least the "camel" part? On Fri, Feb 24, 2017 at 2:56 PM, Nader [via Camel] < ml-node+s465427n579442...@n5.nabble.com> wrote: > Thanks a lot for your quick answers. > > There are two facts that I didn't include in my request for keeping it as > simple as

Re: Camel Groovier DSL

2017-02-23 Thread souciance
Hi Sohrab Cool, look good, I will give it a try within next few days and let you know. Best Souciance On Thu, Feb 23, 2017 at 1:03 PM, sohrab [via Camel] < ml-node+s465427n5794343...@n5.nabble.com> wrote: > I've always felt that our Camel Groovy DSL is a bit of a cop-out, being >

Re: Mask password using log component

2017-02-23 Thread souciance
I think you can write the invokation something like this: ${bean:orderService?method=getOrderType} where orderService is the name of your bean and the method name is the method of your masking. so perhaps something like .log("${bean:orderService?method=getOrderType}") On Thu, Feb 23, 2017 at

Re: using apache camel : org.apache.http.NoHttpResponseException after 10 seconds of request

2017-02-22 Thread souciance
You may wanna look here: http://camel.465427.n5.nabble.com/soTimeout-ignored-by-camel-http-component-td5746289.html#a5746290 On Thu, Feb 23, 2017 at 3:04 AM, ishant_ag [via Camel] < ml-node+s465427n5794302...@n5.nabble.com> wrote: > > Souciance, Following is the final req

Re: using apache camel : org.apache.http.NoHttpResponseException after 10 seconds of request

2017-02-22 Thread souciance
Please share your route. Den 22 feb. 2017 6:30 em skrev "ishant_ag [via Camel]" < ml-node+s465427n579429...@n5.nabble.com>: > Hi Tomo, > > Actually I am getting this exception as soon as the request takes more > than 10 seconds. > I tried hitting the server directly via postman it gives the

Re: Stop component "direct-vm" from another OSGI camelContext

2017-02-22 Thread souciance
I would post this on the Karaf forum and hear what they say. Probably more people there using OSGI services. On Wed, Feb 22, 2017 at 8:46 AM, alexey-s [via Camel] < ml-node+s465427n5794231...@n5.nabble.com> wrote: > Command context-list extend class CamelControllerImpl. > This class find OSGi

Re: Installing camel-amqp in ServiceMix 6.1.1

2017-02-21 Thread souciance
on:=optional, > org.apache.qpid.amqp_1_0.client;resolution:=optional, > org.apache.qpid.amqp_1_0.messaging;resolution:=optional, > org.apache.qpid.amqp_1_0.transport;resolution:=optional, > org.apache.qpid.amqp_1_0.type;resolution:=optional, > org.apache.qpid.amqp_1_0.type.messaging;resolution:=optional

Re: Installing camel-amqp in ServiceMix 6.1.1

2017-02-21 Thread souciance
t; > On Tue, Feb 21, 2017 at 4:32 PM, souciance <[hidden email] > <http:///user/SendEmail.jtp?type=node=5794222=0> > > wrote: > > > https://servicemix.apache.org/docs/7.x/users-guide/deployer.html > > > > Somewhere in the middle sections there is documentat

Re: Installing camel-amqp in ServiceMix 6.1.1

2017-02-21 Thread souciance
ue, Feb 21, 2017 at 4:06 PM, souciance <[hidden email] > <http:///user/SendEmail.jtp?type=node=5794219=0> > > wrote: > > > I have not worked with ServiceMix but with Karaf if the thing you are > > deploying is not a osgi bundle you need to use the "wrap" com

Re: Installing camel-amqp in ServiceMix 6.1.1

2017-02-21 Thread souciance
I have not worked with ServiceMix but with Karaf if the thing you are deploying is not a osgi bundle you need to use the "wrap" command to wrap it which will instruct Karaf to add some OSGI stuff to it. Must be something similar for ServiceMix. Something like

Re: Stop component "direct-vm" from another OSGI camelContext

2017-02-21 Thread souciance
Well it sounds a bit strange that the camel commands do not work. What version of Camel and Karaf do you run? I have 2.17.0 and 4.0.2 and that works and I have tried with two camel contexts in a bundle. Anyway stopping one shouldn't stop the other unless you have some other kind of dependency

Re: Stop component "direct-vm" from another OSGI camelContext

2017-02-21 Thread souciance
Before running it a second time, you can run bundle:list to see if that bundle containing the first consumer is active or not. On Tue, Feb 21, 2017 at 3:45 PM, alexey-s [via Camel] < ml-node+s465427n5794194...@n5.nabble.com> wrote: > There are two OSGI bundle. > > First OSGI bundle > >

Re: Netty4 HL7 - reject messages larger than a specified size

2017-02-13 Thread souciance
Just a guess, but can't you convert the byte array into a string and verify the size? On Mon, Feb 13, 2017 at 12:10 PM, slew77 [via Camel] < ml-node+s465427n5793826...@n5.nabble.com> wrote: > Hi, > > Please can someone help with this? > > Thanks, > Steve. > > -- > If

Re: RabbitMQ Strange Behaviour

2017-02-10 Thread souciance
Well I have not experienced it that way. Like I said, that temporary queue is for request-reply processing. If you want to fire and forget you need to specify that the exchange pattern is InOnly. On Fri, Feb 10, 2017 at 8:58 AM, ravindra [via Camel] < ml-node+s465427n5793745...@n5.nabble.com>

Re: RabbitMQ Strange Behaviour

2017-02-09 Thread souciance
Which Camel version are you on? I would not expect it to send to the temporary queue which is created when you do request-reply messaging. On Fri, Feb 10, 2017 at 6:55 AM, ravindra [via Camel] < ml-node+s465427n5793741...@n5.nabble.com> wrote: > I am sending some messages from a Camel Route to

Re: Camel Http vs Camel Http4 - Content Type Header

2017-02-09 Thread souciance
Well it should be pretty easy to setup a http server and see what headers your route are sending and compare that to what the actual server wants. If camel-http4 is suppressing some headers then perhaps try another component. On Thu, Feb 9, 2017 at 10:32 PM, Goyal, Arpit [via Camel] <

Re: Removing headers

2017-02-09 Thread souciance
I tried every possible regex but for some reason it didn't work. Eventually I created a processor and removed the headers like below; exchange.getIn().getHeaders().keySet().removeAll(Collections.singleton("Accept"));

Re: Skip Footer / Last Line

2017-02-09 Thread souciance
I think you can add a processor and you can use java 8 streams to remove the last line. On Thu, Feb 9, 2017 at 10:53 AM, Claus Ibsen-2 [via Camel] < ml-node+s465427n5793715...@n5.nabble.com> wrote: > There is no such option to skip last line. > > You can do a message transformation afterwards to

Re: Evaluate JsonPath on string inside a Map

2017-02-08 Thread souciance
Not sure if this is what you are after but I have done it this way: .when(PredicateBuilder.isEqualTo(ExpressionBuilder.languageExpression("jsonpath","$.Status"), "whatyouwantequalto")) The $.Status is a node in the json string. -- View this message in context:

Removing headers

2017-02-08 Thread souciance
\w+Content-Length\\w+", "\\w+Content-Type\\w+", "\\w+VALID_SIP2\\w+" , "\\w+SIP2_MESSAGE_RABBITMQ_ROUTING_KEY\\w+") However after I print the log all the headers are still there. I have also tried with .* on both ends but that didn't work either. I tried with single * at the

Re: How to shutdown Camel context when threshold exceeded?

2017-02-02 Thread souciance
Somewhere some stream or handle is probably not being closed. On Thu, Feb 2, 2017 at 6:30 PM, raffi [via Camel] < ml-node+s465427n5793376...@n5.nabble.com> wrote: > I believe you are right, just found likely problem: camel-salesforce > connector, too many open file handles, a bit odd the

Re: camel pollEnrich API not working properly Camel 2.15 leaves file locks on aggregation uri path

2017-01-27 Thread souciance
I guess if the files are not removed automatically you could at a custom bean that removes them after an OnCompletion block. On Fri, Jan 27, 2017 at 10:45 PM, GaryLeeMills [via Camel] < ml-node+s465427n5793139...@n5.nabble.com> wrote: > Clause, again thank you for taking time to help out of your

Re: ProducerTemplate using netty4 component

2017-01-26 Thread souciance
r message changes to > > Failed to resolve endpoint: tcp://10.18.2.161:6509 due to: No component > found with scheme: tcp > > -Original Message- > From: souciance [mailto:[hidden email] > <http:///user/SendEmail.jtp?type=node=5793087=0>] > Sent: Thursday, Janua

  1   2   3   4   >