Multicast behavior differences based on First Merging Branch Status

2021-04-22 Thread Reji Mathews
ot;} 18:08:14.653 [Camel (camel-1) thread #7 - Multicast] INFO route3 - Another log My Observations : When the path which encountered an exception merges first in the aggregator, for some reason the remaining part of the flow doesn't get executed. On the other hand, if a path which encountered an exception comes later, it still continues to route the remaining part of the flow. You can see I simulate both scenarios using a delayer eip. When i say "remaining part of the flow", I refer to the remaining loggers => *.log("Aggregated results ${body}").log("Another log")* Is this some sort of BUG in the framework or is it there for a reason? Cheers Reji Mathews

Multicast behavior difference based on First Merging Branch Status

2021-04-22 Thread Reji Mathews
e3 - Another log My Observations : When the path which encountered an exception merges first in the aggregator, for some reason the remaining part of the flow doesn't get executed. On the other hand, if a path which encountered an exception comes later, it still continues to route the remaining part of the flow. You can see I simulate both scenarios using a delayer eip. When i say "remaining part of the flow", I refer to the remaining loggers => *.log("Aggregated results ${body}").log("Another log")* Is this some sort of BUG in the framework or is it there for a reason? Cheers Reji Mathews

Re: Adding Global scoped exception handler in DefaultCamelContext

2021-03-01 Thread Reji Mathews
ttps://github.com/rmannibucau> | > LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book > < > https://www.packtpub.com/application-development/java-ee-8-high-performance > > > > > Le lun. 1 mars 2021 à 08:44, ski n a écrit : > > > Hi Reji, > >

Adding Global scoped exception handler in DefaultCamelContext

2021-02-28 Thread Reji Mathews
I am trying to build a camel context from scratch using very basic API's (Not with the RouteBuilder). Started off with an instance of DefaultCamelContext class in plain vanilla java and populated some route definitions into the context as follows myCamelContext.addRouteDefinitions(routeDefinition

Using onCompletion + Synchronization for routing commits

2021-02-25 Thread Reji Mathews
ot be logically right to commit the tasks unless exchange is finished routing through all its paths (including exception path). Any ideas/suggestions here would make my day :) Cheers Reji Mathews

Ipv6 server binding using camel-jetty // Protocol family unavailable

2021-01-21 Thread Reji Mathews
I have a route configured as follows from("jetty:http://[::]:8081/bindingtest?httpMethodRestrict=GET";) .log("received http request") .transform(simple("OK!")) .end(); I have a route configured as follows. I hit the exception with message Caused by: java.net.SocketException: P

Ipv6 support in Jetty consumer(server) mode

2021-01-19 Thread Reji Mathews
hello community I expose my jetty server currently as follows http://0.0.0.0:8081/quotestest?httpMethodRestrict=PUT"; /> < log id="log17" message="Received http payload : ${body}" /> I am curious to know how we can set it up to support ipv6. Are there any examples available which I could refe

Dumping routeContext in Camel3.x using dumpModelAsXml()

2020-11-18 Thread Reji Mathews
Hello camel riders In camel 2.x, I remember dumping the RouteDefinition model as xml using the following api. RoutesDefinition def = new RoutesDefinition(); def.setRoutes(newCamelContext.getRouteDefinitions()); LOGGER.info("Integration is now started. RouteDef model {}", ModelHelper.dumpModelAsXm

Unable to map @UriPath values in Endpoint class

2020-11-11 Thread Reji Mathews
"publishmessage" should be copied to the endpoint class member smnService. But, when I test, its null. Any suggestions? Cheers Reji Mathews

JDBC transacted route // rollback not in-effect

2020-09-24 Thread Reji Mathews
Hello community I have a transacted route with a jdbc operation. It has a DataSourceTransactionManager bean in the application context which is set with the datasource. Though the log indicates rollback, the row inserted into the table wasn't rolled back. Any suggestions would be helpful. 16:25

Transacted routes with camel // JtaTransactionManager exception

2020-09-24 Thread Reji Mathews
Hello community I am trying to write a transacted route following the block diagram in Camel in action book section 12.2.1 Using org.springframework.transaction.jta.JtaTransactionManager. I create a bean of this class and add it into the application context. Following is the error I receive : ==

Re: Rolling back transaction with custom error message using onException

2020-09-22 Thread Reji Mathews
Thanks! I found it under section "12.3.6 Returning a custom response when a transaction fails" Cheers! On Tue, Sep 22, 2020 at 12:15 PM Claus Ibsen wrote: > Hi > > I think that use case is covered in the CiA2 book in the transaction > chapter. > > On Tue, Sep 22,

Rolling back transaction with custom error message using onException

2020-09-22 Thread Reji Mathews
Hello community I have a requirement - Route needs to be transacted : If some failure happens, jdbc operation should be rolled-back - I need to send back a custom error message to API caller. (am trying to do do that in onException) But, I see the transaction rollback doesn't work if I use han

Re: Saga EIP // copying data from the point of failure into compensation flow

2020-09-10 Thread Reji Mathews
eji, > > I've never tested but it remind me about option: > > https://camel.apache.org/components/latest/eips/saga-eip.html#_using_custom_identifiers_and_options > > hth, > Alex > > On Tue, Sep 8, 2020 at 9:48 PM Reji Mathews wrote: > > > Hello community > &g

Re: Saga EIP // copying data from the point of failure into compensation flow

2020-09-10 Thread Reji Mathews
eji, > > I've never tested but it remind me about option: > > https://camel.apache.org/components/latest/eips/saga-eip.html#_using_custom_identifiers_and_options > > hth, > Alex > > On Tue, Sep 8, 2020 at 9:48 PM Reji Mathews wrote: > > > Hello community

Saga EIP // copying data from the point of failure into compensation flow

2020-09-08 Thread Reji Mathews
Hello community I was wondering if there is a way to retain the exchange data from the point of failure in a Saga EIP. Find the following route I have simulated an error right after parsing data from the create-order api. I need to use the same in compensation flow to undo the order creation. Logs

Data corrupting in multicast EIP

2020-08-04 Thread Reji Mathews
Hello community I am just playing around with multicast EIP. I have a route like follows http://camel.apache.org/schema/spring";> http://0.0.0.0:8081/emptybranch?httpMethodRestrict=GET"/> java.lang.Exception

Re: JSONPath error in Content based router

2020-07-20 Thread Reji Mathews
or < 20 the data cannot be re-read. > > See more at > https://camel.apache.org/manual/latest/stream-caching.html > > On Fri, Jul 10, 2020 at 8:30 PM Reji Mathews > wrote: > > > > I have a route like below > > >

Safeguarding against malicious script in Script EIP

2020-07-15 Thread Reji Mathews
such features / best practices to safeguard against such problems? Or if anyone has tried implementing anything around protecting the system from a bad script, feel free to share it across. Cheers Reji Mathews

JSONPath error in Content based router

2020-07-10 Thread Reji Mathews
error table {"error_message":"com.jayway.jsonpath.InvalidPathException: Filter: [?] can not be applied to primitives. Current context is: ","error_code":"APIC.8000"} Any idea? Regards Reji Mathews

Camel Multicast sync vs async

2020-07-09 Thread Reji Mathews
pletion criteria once direct:A and direct:C is done its processing. Cheers Reji Mathews

Parsing http path params from http-server consumer endpoint

2020-07-06 Thread Reji Mathews
mapped into exchange headers as variables. Is there any way can get the path variables as well mapped as header key-value pairs? - Reji Mathews

Re: Merging paths after multicast EIP // Strange Behavior

2020-07-03 Thread Reji Mathews
Oh i see what you mean! thank you Claus. On Fri, Jul 3, 2020 at 3:32 PM Claus Ibsen wrote: > On Fri, Jul 3, 2020 at 9:13 PM Reji Mathews wrote: > > > > Thanks for that quick response. What if I need to have more processing > > after the multi-cast eip? Suppose I want

Re: Merging paths after multicast EIP // Strange Behavior

2020-07-03 Thread Reji Mathews
to("direct:a","direct:b") >.end() > > On Fri, Jul 3, 2020 at 8:37 PM Reji Mathews wrote: > > > > Am just trying to understand the nature of multicast EIP and its further > > processing down. > > > > I have a route as follows

Merging paths after multicast EIP // Strange Behavior

2020-07-03 Thread Reji Mathews
flow works. Isn't the 2 logs supposed to be printed after the multicast aggregator is finished executing? And how come setBody and Transform EIP isn't replacing the output from the aggregator "stringConcatStrategy"? Am using camel v 2.24.0 for this experiment. Cheers Reji Mathews

Re: Converting ProcessorDefinition to DSL and interfacing with camel k

2020-05-27 Thread Reji Mathews
e. > > But I would also say that why... and maybe your existing app is not > suitable for these use cases. > > On Wed, May 27, 2020 at 3:20 AM Reji Mathews > wrote: > > > > This might be a little wierd question. But, I was wondering if there is a > > way to convert

Converting ProcessorDefinition to DSL and interfacing with camel k

2020-05-26 Thread Reji Mathews
This might be a little wierd question. But, I was wondering if there is a way to convert an object of org.apache.camel.model.ProcessorDefinition object into an equivalent camel DSLs. I have an application which constructs ProcessorDefinition object using low level camel api's and create a camel con

Re: Connecting to IBM MQ Cloud using camel JMS component

2020-05-15 Thread Reji Mathews
This was sorted. Thanks. IBM documentation says by-default access is provided for test accounts to only those Queues which have names starting with DEV* Cheers Reji Mathews On Fri, 15 May 2020, 14:45 Reji Mathews, wrote: > My current configuration

Re: Connecting to IBM MQ Cloud using camel JMS component

2020-05-15 Thread Reji Mathews
ot;XMSC_ADMIN_OBJECT_TYPE": 20, "XMSC_WMQ_RECEIVE_EXIT": null, "XMSC_RTT_DIRECT_AUTH": 0, "XMSC_WMQ_TEMP_TOPIC_PREFIX": "", "multicast": 0, "XMSC_WMQ_PROVIDER_VERSION": "unspecified", "XMSC_WMQ_SEND_EXIT"

Re: Connecting to IBM MQ Cloud using camel JMS component

2020-05-15 Thread Reji Mathews
') reason '2035' ('MQRC_NOT_AUTHORIZED') Seems, I am close to success. Just figuring out the last mile.. If anyone has hit upon such errors before, do contribute here. Cheers Reji Mathews On Fri, May 15, 2020 at 12:53 AM Jean-Baptiste Onofre wrote: > Hi, >

Connecting to IBM MQ Cloud using camel JMS component

2020-05-14 Thread Reji Mathews
ormation. If so, it would be helpful if someone can explain how the ConnectionFactory was configured. I went through following link : https://camel.465427.n5.nabble.com/Can-Camel-communicate-over-IBM-MQ-sender-receiver-channels-td4429050.html but this doesn't look like a case where its connecting to cloud MQ. Regards Reji Mathews

Re: Camel Mongo findById // empty results

2020-05-09 Thread Reji Mathews
ongiusti > >> wrote: > >> > > >> > Hi Reji, > >> > actually you're providing a String type to your body, and Mongo does > not > >> > treat the "_id" field as a String but as an ObjectId type. > >> > > >> >

Camel Jdbc // Error while connecting to HIVE

2020-04-29 Thread Reji Mathews
Hello community I am using camel jdbc component to query some data from HIVE database. When I trigger a query, it throws me off with following stack trace. Has any attempted connecting to HIVE database using camel jdbc component? Or, is there a better component to achieve the task. PS: I have

Camel Mongo findById // empty results

2020-04-27 Thread Reji Mathews
Hello Camel Community I am trying to use camel to query records based on mongo id with operation "findById". Following is the route snippet public void configure() throws Exception { from("jetty:http://0.0.0.0:8081/mongo?httpMethodRestrict=GET";) .setBody(constant("5ea1c4ae0911be

Re: camel-salesforce

2020-04-20 Thread Reji Mathews
Create a java keystore file, import the certificate into it and pass the file along as jvm option. Refer https://stackoverflow.com/questions/8980364/how-do-i-find-out-what-keystore-my-jvm-is-using where author shows how to pass a keystore as jvm option. By default, it tries to pick up the cacerts

Re: Upgrading to CamelCXF throws weird error

2020-04-04 Thread Reji Mathews
Try to resolve this cause "The property 'JMS_IBM_MsgType' should be set using type 'java.lang.Integer', not 'java.lang.String'." On Fri, 3 Apr 2020, 06:21 SRIKANT MVS, wrote: > Hi All, > I am getting the below error after upgrading to camel 3.0.0 > > Versions used in the POM > *camel version* :

Re: Camel 3.0.1 Jetty HTTP Basic Authentication - configuration in a route following the doc doesn't work

2020-04-04 Thread Reji Mathews
You just need to install corresponding osgi bundle which has the missing dependency into the karaf Just Google around for that particular osgi dependency. You can use command "osgi:install " Btw, this question should be posted on forums for fuse or service mix Cheers Reji On Sat, 4 Apr 2020,

Camel script eip - JavaScript deprecated?

2020-03-03 Thread Reji Mathews
application to pull in a remote JavaScript module and plug it into camel routes. Something like how it's done for groovy with following DSL - .script().groovy("//script content goes here...").to("log:script output is ${body}")... Cheers Reji Mathews

Camel Script EIP // to manipulate or update Camel message

2020-02-12 Thread Reji Mathews
Hello camel community! I was wondering if we could use camel script eip to write some javascript / groovy script to manipulate or update an exchange object? If so, can you share any examples of such which performs an action on exchange object? Cheers

Sort EIP // using jsonpath expression to sort json array

2020-01-27 Thread Reji Mathews
Hello camel community I see that sort EIP takes simple expressions. I was wondering if it accepts a jsonpath expression and is capable of sorting a json array in ascending or descending order based on a certain field inside the array Cheers Reji

Camel http - simple proxy authentication //error

2020-01-11 Thread Reji Mathews
Hello Camel Community I have a camel http producer endpoint configured as follows. I have an authenticated proxy server running at proxyserver.reji.com at port 8080. I have username and passwords configured below as well. Any help would save my day :) .to("http://host?throwExceptionOnFailure=tr

Re: Custom RouteBuilder instance returned to camelContext.addRoutes() misses out on routeDefinitions

2020-01-10 Thread Reji Mathews
xt. > > > Willem Jiang > > Twitter: willemjiang > Weibo: 姜宁willem > > On Thu, Jan 9, 2020 at 11:27 PM Reji Mathews > wrote: > > > > Hello Camel community! > > > > Am currently using camel version 2.24.1. > > > > I have a code

Custom RouteBuilder instance returned to camelContext.addRoutes() misses out on routeDefinitions

2020-01-09 Thread Reji Mathews
Hello Camel community! Am currently using camel version 2.24.1. I have a code which starts a camel context by passing an instance of RouteBuilder to it. It looks as follows. newCamelContext.addRoutes(new MySmartRouteBuilder(flow)); newCamelContext.start(); Problem : When the application reboo

Runtime error after upgrading to camel 3.0 - stepwise construction of camel RouteDefinition

2020-01-03 Thread Reji Mathews
Hello Camel users community I have a code snippet which builds RouteDefinition via handler chains. I just upgraded to camel 3.0 version Following is the code snippet @Override public RouteDefinition handle(RestDefinition restDef, Step flowStep) throws Exception { LOGGER.info("File handler

No component found with scheme: custom component bean name

2020-01-02 Thread Reji Mathews
Hello Camel community I am manually firing up a camel context with low level API's. The requirement is to create a camel context and add 1 route to it which connects to an activeMQ broker and reads message for processing. I have following code snippets Method 1: ActiveMQComponent activeMQCompo

Building camel route step by step using handler patterns

2019-12-23 Thread Reji Mathews
Hello camel community ! I am trying to build a camel route incrementally using java fluent api on the RouteDefinition object. Code snippet as follows Following method is inside another class which already implements RouteBuilder class @Override public RouteDefinition handleStep(int stepIndex,

onException - properties and headers are lost

2018-06-04 Thread Reji Mathews
Hi guys I have a business requirement where if an api call fails, I need to store the payload in a database for future retry. I have an onException clause like this onException(java.net.SocketException.class) .handled(true) .maximumRedeliveries(3) .log("Records are droppi

Enabling message tracing using Jolokia

2018-04-02 Thread Reji Mathews
Hi guys I am currently deploying camel routes as springboot apps. Is there a way I can enable the hawtio UI into it ? My requirement is to have a monitoring feature enabled over the route level jmx metrics

Re: Producer Template // Count mismatch

2016-01-10 Thread Reji Mathews
Hey Saurabh Thanks for ur solution . It was indeed perfect. I overlooked on the fact that java works on call by reference model and it's always pointers to the memory location. We fixed it by using Cloned objects Cheers Reji On 7 Jan 2016 02:49, "CamelNayar" wrote: > Reji, > > I am not sure why

Re: Camel cache across bundles in karaf

2015-10-31 Thread Reji Mathews
Hey Create a common route containing cache component into some commons bundle and connect to that route using "vm" or "direct-vm" component from any other routes in other bundles. Make sure you set the cache operations headers before calling this common route . Cheers Reji On 30 Oct 2015 14:16,

Re: Camel website is not showing the code blocks

2015-06-30 Thread Reji Mathews
Wow! Things look better now. All code snippets back! Thanks a ton guys.. Cheers Reji On Tue, Jun 30, 2015 at 1:34 PM, fxthomas wrote: > helllo, > > I also still the css tags missging issue on the website > > class="brush: xml > > Many of the XML tag content are missing, but some are present als

Re: How to consume sql blob object and save it as zip file in camel

2015-06-19 Thread Reji Mathews
Read the data from database using jdbc component. It will return ArrayList of Hashmaps. Write a java processor to loop on this Arraylist which is in the camel body, read this blob object from the the MAP. read it as a binary file and write it to file endpoint after setting it in camel exchange bod

Re: Camel https 401 error

2015-06-12 Thread Reji Mathews
We configured SSL as follows .*_EXPORT_.* .*_EXPORT1024_.* .*_WITH_DES_.* .*_WITH_AES_.* .*_WITH_NULL_.* .*_DH_anon_.* Cheers Reji On Fri, Jun 12, 2015 at 11:54 AM, Vanshul.Chawla wrote: > Hello, > > We are trying to invoke a https service via camel route. We are able to >

Re: Camel https 401 error

2015-06-12 Thread Reji Mathews
Basic Authentication on Camel CXF producer endpoint is supported only from camel version 2.12.3 onwards..checkout http://camel.apache.org/cxf.html In older versions, you have to opt for jaxws:client approach or HttpClient class extended to a java processor. Cheers Reji On Fri, Jun 12, 2015 at 11

Re: Fuse elasticsearch error

2015-06-11 Thread Reji Mathews
eatures file which I did. > Issue is its not as is supported in Fuse 6.1 so that might be an issue. In > camel it works fine. > > Thanks and Regards, > > Vanshul Chawla > > -----Original Message- > From: Reji Mathews [mailto:contactr...@gmail.com] > Sent: T

Re: Fuse elasticsearch error

2015-06-11 Thread Reji Mathews
Whats the version of camel you are using? Have you added the dependency in the POM.xml file. On Thu, Jun 11, 2015 at 9:11 AM, Vanshul.Chawla wrote: > Hello, > > I am trying to do a simple POC on elastic search using Fuse. I have > resolved errors for names.txt and snowball and my blueprint gets

Re: Manage CorrelationID using JMS endpoint options

2015-06-09 Thread Reji Mathews
Can you check camel jms docs for option called useMessageIDAsCorrelationID. Am not sure if this might serve the purpose. Cheers Reji On Tue, Jun 9, 2015 at 10:35 AM, Gnanaguru S wrote: > Hi All, > > I have a camel route, which takes messages from a jms queue and further > sends it down to a spl

Re: How to wiretap without consuming the original queue

2015-05-20 Thread Reji Mathews
How about Queue peek operation via JMX? Cheers Reji On Wed, May 20, 2015 at 4:38 PM, Henryk Konsek wrote: > Hi, > > In general Camel can't consume message and not remove it from the queue at > the same time, as it relies on the ActiveMQ client which... consumes the > messages. :) > > You can co

Re: Is there way to parse in camel cxf endpoint for empty tag's as

2015-05-20 Thread Reji Mathews
Is the only tag in the response schema? If so solution is good enough. If any other element is also there, then this approach needs to be revisited. Cheers Reji On Wed, May 20, 2015 at 2:38 PM, Sudhil wrote: > > > > > > > > - > Thanks & Regards, > Su

Re: Unmarshal not working

2015-05-17 Thread Reji Mathews
Are u using the cxf framework itself for Web service invocation ? If so don't worry. Just change the messageFormat= PAYLOAD cxf does the task of ripping out the soap envelop from received response and give you the payload with its name spaces in place. You can easily unmarshal it . But when you

Re: how to get subject and body for mail from a properties file

2015-05-15 Thread Reji Mathews
Will this code snippet help you. {{alertEmailTo}} {{alertEmailCC}} no_re...@server.com {{amqAlertMailSubject}} Hi this is the body of the email

Re: Warning Messages in Logs when camel application running on multiple nodes

2015-05-13 Thread Reji Mathews
Also 'doneFileName' option . Is it applicable for producer endpoints? Am not sure though but I feel its only for consumer endpoints. Docs at http://camel.apache.org/file2.html Regards Reji On Wed, May 13, 2015 at 2:17 PM, Henryk Konsek wrote: > Hi, > > You should see in the logs what is the re

Re: Warning Messages in Logs when camel application running on multiple nodes

2015-05-13 Thread Reji Mathews
Can you check your file access permissions on the RemoteMountedDirectory. Apart form read, do you have 'write' rights as well?? Reji On Wed, May 13, 2015 at 2:17 PM, Henryk Konsek wrote: > Hi, > > You should see in the logs what is the reason for the rename failure. Maybe > problems with IO? >

Re: Handle white space - JSON to XML using XMLJSON component

2015-05-13 Thread Reji Mathews
Hi Guru I really wonder if XML element name supports white spaces and if its legal.. If not, it shudn't be for json either. Anything which comes with a space might be interpreted as XML attribute. Think this way! What will a classname look like when it gets converted to equivalent java classes :

Re: Manipulating JSON from inputStream

2015-04-25 Thread Reji Mathews
Hello I had similar use case for one of my customers. It was a bulk dump of electricity consumption data of subscribers which was to be loaded into charging engine. The records ran to millions. I doubt if there is something out of box for json to json transformation. I did following 1) Source Js

Re: Json Splitter

2015-03-26 Thread Reji Mathews
Hey that's cool. Let me try my luck and update ! Thanks Minh Cheers Reji On 27 Mar 2015 09:48, "Minh Tran" wrote: > Here you go. > > > $.[*] > > > > The json I feed into it is an array, e.g. [ {...}, {} ] > > On 27/03/20

Re: Json Splitter

2015-03-26 Thread Reji Mathews
er/SendEmail.jtp?type=node&node=5764853&i=2>> wrote: > >> > >>> Hi > >>> > >>> Is there something out of the box in camel which can help me split > json > >>> records? > >>> > >>> Regards > >>&

RE: how to send response to the webservice

2015-03-13 Thread Reji Mathews
Hey Try this way. ...write the camel code here to set exchange body with the OrderReponseobject. Looks like ur cxf dataFormat is POJO by default. If so set the java object there. Else if it's in PAYLOAD mode then hardcode the OrderReponse xml...

Re: Enabling SFTP URI Option "Compression" (via JSCH zlib JAR)

2015-02-22 Thread Reji Mathews
Hey Mr Fowler I had a similar requirement where I had to do a jdbc connectivity with Oracle DB. Multiple projects had to access this jar. I did a osgi wrap on the jar and deployed it. Alternatively u can use the plug in development utility in Jboss developer studio to create an OSGI compliant jar

Re: Camel-sql dynamic from ?

2015-02-22 Thread Reji Mathews
Hi Claus. Can't we use the route builder api to create dynamic routes on the fly ! Cheers Reji On 21 Feb 2015 23:34, "Claus Ibsen" wrote: > Hi > > No this is not possible. > > Instead use a timer / scheduler and then use a "dynamic to" to call > the SQL, which can be dynamic. > http://camel.apac

Re: Choosing between Mapping Options

2015-01-21 Thread Reji Mathews
Hi Satyam XSLT/XQuery is cleaner, better performing and above all easy to update and maintain. Maintaining or making any change in java object based mapping is more time consuming and calls for code checkout edit , project re compiling / re bundling and re deployments . If xsd undergoes updates

Re: Enabling CXF's LoggingOutInterceptor in Payload mode

2015-01-19 Thread Reji Mathews
Hi Mahesh The LoggingOutInterceptor will still work even if your operations doesn't have any element as the camel route still returns back some meta informations to the soap client since default MEP is always inOut. It may include http status codes, any headers in the exchange might also get map

Re: Help: FTP/SFTP File Delete Problem and FTP/SFTP Polling Problem

2015-01-13 Thread Reji Mathews
Hey buddy I had faced similar issue few months back. It so happened that my ftp admin hadn't provide delete and write authorizations to my ftp credentials . It would be a good idea to check with ur ftp admin personnel if these rights are provided to ur ftp credentials. Cheers Reji On 9 Jan 2015

Re: how to send a new message to an endpoint, continue with the current one

2015-01-13 Thread Reji Mathews
You can even check out Camel ProducerTemplate .. Cheers Reji On 13 Jan 2015 14:34, "hqi65334" wrote: > Hi, > > from("direct:start").process(processorA).to(myqueue).processor(processorB); > > after processing with processorA I'd like to send a customized message to > the myqueue > and continue wi

Re: Camel jms listener on JMSReplyTo bahaviour

2015-01-13 Thread Reji Mathews
Hey Ett I understand that u are sending request via REST request. You should be getting the response as a REST response with some http status codes isn't it ? Why are you polling the jms queue for the response from your processor . It should already build build a response and send it back to ur

Re: Mail-Component: HTML body is sent twice.

2015-01-01 Thread Reji Mathews
Keep only those values in headers which u wanna allow them to pass to next component like smtp with mapMailMessage option or pass the values even to the next system via producer endpoints. Else its always better practice to store them in exchange properties. Cheers Reji On 01/01/2015 10:27 pm, "J

Re: Camel Exception and Velocity - Blank Values

2014-11-21 Thread Reji Mathews
Wow ! Thanks Scott ! That just missed out my attention :) It works now! And along with that I also had go change ${exception} to ${exception.message} Cheers brother! Reji On 21/11/2014 3:22 pm, "Scott Coleman" wrote: > Have you tried without the space after the header name "CAMEL_EXCEPTION ".

Re: Configuring a servlet with camel-jetty

2014-11-04 Thread Reji Mathews
I guess for Jetty, internally there must be a servlet acting at back. Or probably set some option to get it up and running. Just got some clue from http://camel.apache.org/jetty.html . Alternatively http://camel.apache.org/servlet.html can help too. Reji On Tue, Nov 4, 2014 at 4:42 PM, jack atwo

Re: Camel - JDBC

2014-11-04 Thread Reji Mathews
Take up the project which inserts the records. replace the sql query with a select query. Basically once the flow fires the select query, it should return a List of Maps containing the records and it will be available in Body of Camel Exchange. Did you try that? On Tue, Nov 4, 2014 at 11:57 AM, sm

Re: Web service SOAP fault handling

2014-10-27 Thread Reji Mathews
Looks like u want to process the metadata of the exceptions Then it might be easier to Check docs for the standard exchange properties to which the exception details are mapped when one is thrown. On 27/10/2014 9:44 am, "Jshaan51" wrote: > Hi ABouchama, > > It's not about responding with SOAP f

Re: Problem with sFTP PUT

2014-06-25 Thread Reji Mathews
Looks like you don't have access rights or write permissions given by your ftp server admin. On 25/06/2014 6:27 pm, "deepak_a" wrote: > Hi, > > I am using Camel 2.12.0. > I am using the sftp component. The sFTP server is hosted on a UNIX based > system. > > The following works fine when I 'PUT' a

Re: ACTIVE MQ Error :org.apache.activemq.transport.tcp.ExceededMaximumConnectionsException

2014-06-09 Thread Reji Mathews
Hi How would connection pool work ? What's the difference between convention way of configuring activemq and that with connection pool . Can someone help me understand this . Cheers Reji On 09/06/2014 7:58 pm, "Larry Meadors" wrote: > I was getting the same error in my application - for me, th

Re: Camel lock while multiple routes polling from same file endpoint

2014-05-22 Thread Reji Mathews
Hi Jishnu What exactly is the business requirement ? On 22/05/2014 5:29 pm, "Jishnu" wrote: > There exist a scenario where multiple routes are polling from same folder > .And when a file is locked by one route the other route gives an > IOEXception > and moves on to the next file to poll. Is th

Re: Java in XSLT - Issue

2014-05-21 Thread Reji Mathews
Chinese) > Twitter: willemjiang > Weibo: 姜宁willem > > > > On May 21, 2014 at 10:23:23 PM, Reji Mathews (contactr...@gmail.com) > wrote: > > Hi Williem > > > > I have referred to the file using a disk file path. > > > > The transformation works fin

Re: Java in XSLT - Issue

2014-05-21 Thread Reji Mathews
Hi Williem I have referred to the file using a disk file path. The transformation works fine when am not using the java functions. But if xslt has java function calls , a run time exception is raised . Same works fine in maven stand alone Reji On 21/05/2014 7:49 pm, "Willem Jiang" wrote: > Ho

Re: activemq exception

2014-05-14 Thread Reji Mathews
e" message. > > J. > > > On Mon, May 12, 2014 at 3:43 PM, Reji Mathews > wrote: > > > Make sure no other ActiveMQ instance is running. > > > > Once I had this strange error too. I got this error when I started my > > FuseIDE first and then tried to

Re: activemq exception

2014-05-12 Thread Reji Mathews
Make sure no other ActiveMQ instance is running. Once I had this strange error too. I got this error when I started my FuseIDE first and then tried to start jboss fuse. Am still wondering why it happened so. Can u reboot ur system and start jboss fuse first. After that u try opening other develop

Re: Passing exchange between routes and accessing exchange values in from uri

2014-04-03 Thread Reji Mathews
Hi Guru Once you store the values in a property or header in Route A , will the route B wait till A has populated the values. How can Route B be notified of this event. When a camel project starts , all the routes will start together right? Though I haven't used it, will pollEnrich be useful he

Re: Camel XSLT Param - Issue ( Body is null )

2014-04-01 Thread Reji Mathews
Hi Guru I doubt if you can send parameters to xsl component. The body has to contain a XML payload. Or maybe u might need to do it in custom java code using camel processor . How about temporarily swapping the parameter value with the exchange body just before using the xslt component and restore

Re: Howto delete file from FTP-Endpoint direct

2014-04-01 Thread Reji Mathews
If you are trying to delete a file after consuming from a ftp server using ftp camel component, then put the option "delete=true" while configuring the ftp consumer end point. Make sure the ftp credentials u are using has rights to perform delete operations . Cheers Reji On 01/04/2014 3:01 pm, "e

Re: Camel CXF Proxy with WS-Security

2014-03-23 Thread Reji Mathews
What do you exactly plan to do with the headers ? I wonder if you can really send headers to a CXF endpoint. Meanwhile , I have invoked the web service by generated proxies using the wsdl2java plugin. I haven't tried doing so by passing the soap string to cxf . On 23 Mar 2014 20:15, "chaij" wrote

Re: Camel JMS component tied to Spring framework - bad news

2014-03-22 Thread Reji Mathews
Did you try modifying the Jboss Fuse example - cbr and try creating an activemq bean and send data through camel routes? On Sun, Mar 23, 2014 at 10:00 AM, sumeetkoshal wrote: > Hello All > Can you please advise if there is anyway to use blueprint file in an osgi > container to connect to third p

Re: Camel CXF Proxy with WS-Security

2014-03-22 Thread Reji Mathews
The headers should still be there in the Exchange. We will be altering only Body of the exchange if I am not wrong. Would be good if some experts from this forum would comment on that. JAXB will only convert the Java object into equivalent XML representation. I don't think so it would help you kee

Re: camel-jsonpath

2014-03-21 Thread Reji Mathews
Try adding following to the POM com.jayway.jsonpath json-path 0.9.1 On 22 Mar 2014 05:17, "Lydie" wrote: > Hello, > > I have added camel-jsonpath in my pom.xml file but it complains of: > "Missing artifact org.apache.camel:camel-jsonpath" > > Should I add a repository? > > Thanks, > > Lydie >

Re: Camel CXF Proxy with WS-Security

2014-03-21 Thread Reji Mathews
Did u try using xslt after the processor bean part is over ? On 22 Mar 2014 09:21, "chaij" wrote: > I am writing a SOAP proxy. When a SOAP service call comes in, it goes to a > CXF consumer->Processor->CXF producer (with WS-Security) > > Since the incoming service call and the outgoing service ca

Re: Calling a REST URL dynamically

2014-02-28 Thread Reji Mathews
Have you referred Routing Slip concept? http://camel.apache.org/routing-slip On Fri, Feb 28, 2014 at 5:12 PM, Steffen Larsen wrote: > Hi Guys, > > I need to call different URLs all depending on a earlier route. > So based on a earlier header I need to update the URL that needs to be > called. >

Re: Jetty endpoint as ActiveMQ consumer

2014-02-13 Thread Reji Mathews
Hi Scott Thumb Rule is that you cant have more than 1 consumer endpoint ("from") in a route tag. I would suggest you to have a route take data from Queues and sent it as an http request. And another route to grab that (set up a jetty http server point here) and continue what ever processing you w

Re: How to get response of one camel route inside other camel route

2014-02-12 Thread Reji Mathews
Use a vm: point. In memory queueing reena upadhyay wrote: >Hi , > >I want the response of one camel route inside the other camel route. > >Like for example I have two camel routes route1 and route2 with entry point >camelEntryServicePoint1 and camelEntryServicePoint2 resp. Now I want the >repo

Re: [Camel-Exec] Properties and Header values in URI ?

2014-01-15 Thread Reji Mathews
Hi Nirosha If you need to move the files from ftp location to the local directory, you need to configure the ftp component as consumer endpoint. Something like ftp://username@localhost:21/${in.header. UZVSUBM_SOURCE_DIRECTORY}?password=test"/> In your code, you have used it as producer endpo

Re: SetHeader with same header name having multiple values

2014-01-15 Thread Reji Mathews
You have made an array of strings in the above code fileName[i]? If so you can write a loop which retrieves each string from the above array and append to a string. And on each interation, concatenate a comma Something like while((strLine=br.readLine())!=null) { if(strLine.contains(".lis

  1   2   >