Merging Swagger definitions into one

2016-09-15 Thread Raul Kripalani
Hi, We have several Camel contexts using the REST DSL and exposing Swagger definitions. Unfortunately, each context is exposing its own and we don't have a unified view of all API endpoints. I am aware about the API Context Listing feature, but it's not what I'm after at the moment. Do we suppo

Re: CXF cross cutting concerns

2016-03-14 Thread Raul Kripalani
Hi I blogged about this a long while ago. CXF registers all buses as OSGi services, so you can create a service listener that watches them come and go, reacting accordingly. You do get a reference to the bus, so you can add interceptors, features or change whatever configuration you'd like to by f

Re: How to insert Date String as date in MongoDB

2016-03-14 Thread Raul Kripalani
Yeah. Converting the body to a String is a good way to guarantee that the conversion logic we're interested in will kick in. Just for reference, have a look at the MongoDbConverters class. Cheers, Raúl. On 14 Mar 2016 18:52, "gramanero" wrote: > Yes I can try that. To make sure I am on the same

Re: How to insert Date String as date in MongoDB

2016-03-14 Thread Raul Kripalani
Jackson is not MongoDB-specific and therefore doesn't recognise $date types. The camel-mongodb component uses MongoDB's JSON class to parse Strings, which does recognise Mongo-specific types: http://api.mongodb.org/java/2.6.5/com/mongodb/util/JSON.html. Can you try sending the JSON string directl

Re: How to insert Date String as date in MongoDB

2016-03-03 Thread Raul Kripalani
MongoDB uses a special representation of JSON they call BSON. According to their docs, timestamps should be represented with the $timestamp token, along with 't' and 'i' portions for them to be interpreted correctly by the drivers: https://docs.mongodb.org/manual/reference/mongodb-extended-json/#t

Re: How to specify types in marshalling from XML to JSON

2016-01-07 Thread Raul Kripalani
Hi, Have you changed any defaults of the xmljson data format? By default it comes with type hints enabled with type hints compatibility = true. I'm looking at the jsonlib docs and it seems contradictory with the value of type hints compatibility. Could you try calling your attribute json_type, or

Re: The Camel Name - Just A Thought

2015-12-10 Thread Raul Kripalani
I would also venture a guess that the name Camel has something to do with another platform called Mule back in 2006-2007 :) Regards, Raúl. On Thu, Dec 10, 2015 at 3:26 PM, Claus Ibsen wrote: > Yeah and there is some other reasons here > http://camel.apache.org/why-the-name-camel.html > > On Thu

Re: Transactional Route with JTA

2015-10-30 Thread Raul Kripalani
, "Christian Schneider" wrote: > Hi Raul, > > thanks for the smx blueprint. The only difference I found was to use > org.apache.activemq.jms.pool.JcaPooledConnectionFactory instead of the > XaPooledConnectionFactory. > I remember that I used this one for the tests in C

Re: Transactional Route with JTA

2015-10-30 Thread Raul Kripalani
> I also see that the transaction is rolled back when the error happens. So > the only thing missing seems to be the redelivery. Any idea why that can > happen? > > Christian > > On 30.10.2015 15:37, Raul Kripalani wrote: > >> Hi Christian, >> >> You need to plug

Re: Transactional Route with JTA

2015-10-30 Thread Raul Kripalani
Hi Christian, You need to plug in the JTA TransactionManager into the JMS consumer, so that the transaction is opened as part of the consumption. Otherwise, the transaction starts after the route kicks off and therefore doesn't cover the JMS consumption itself. Maybe this resource helps: https:/

Re: XmlJsonDataFormat - Camel 2.16.0 - xom.jar

2015-10-16 Thread Raul Kripalani
Hi We cannot include that dependency due to licensing issues, as its license is not compatible with ASLv2. This situation is alerted in the Camel XmlJson doc page if I remember correctly. Your IDE probably didn't complain because the dependency does exist in the POM and can be resolved from Maven

Re: http4 component - producer endpoint config - http 401 error

2015-09-29 Thread Raul Kripalani
It looks like this is an authorization key for a restricted API available publicly. Be careful of posting such things on public forums. *Raúl Kripalani* PMC & Committer @ Apache Ignite, Apache Camel | Integration, Big Data and Messaging Engineer http://about.me/raulkripalani | http://www.linkedin.

Re: XML 2 JSON marshaling fails due to missing library in embedded Camel within ServiceMix

2015-09-22 Thread Raul Kripalani
Also check the Dependencies section of the component page. https://camel.apache.org/xmljson.html#XmlJson-Dependencies *Raúl Kripalani* PMC & Committer @ Apache Ignite, Apache Camel | Integration, Big Data and Messaging Engineer http://about.me/raulkripalani | http://www.linkedin.com/in/raulkripal

Re: Camel MemoryIdempotentRepository based Idempotent Consumer

2015-09-18 Thread Raul Kripalani
itory and use a Guava cache (for example) to provide the functionality. Regards, Raúl. On 18 Sep 2015 20:19, "contactreji" wrote: > Hey Raul > > Thanks for that. > > I was checking out your way of doing it on > http://camel.apache.org/idempotent-consumer.html .. &

Re: Camel MemoryIdempotentRepository based Idempotent Consumer

2015-09-18 Thread Raul Kripalani
Hi Reji, I would suggest you use a local cache implementation with an entry TTL or FIFO eviction support with a maximum limit on entry count. I find myself using Guava caches quite often when I require a lightweight cache [1] like what you describe. Beware that the content of the repository will

Re: Interceptor into external file

2015-09-10 Thread Raul Kripalani
If you are using OSGi you can leverage OSGi Service Listeners to programmatically add the interceptors whenever a new context appears in the environment. *Raúl Kripalani* Apache Camel PMC Member & Committer | Enterprise Architect, Open Source Integration specialist http://about.me/raulkripalani |

Re: CamelExecutionException: Exception occurred during execution on the exchange

2015-09-09 Thread Raul Kripalani
Normally CamelExecutionExceptions wrap the actual exception inside it as a cause. Is your log not outputting the cause exception? If not, you can try to insert a Processor to explore the exception.getCause(). *Raúl Kripalani* Apache Camel PMC Member & Committer | Enterprise Architect, Open Source

Re: PEM File for Authentication in route

2015-09-08 Thread Raul Kripalani
Please create a Github repo or Gist with your code so we can assist you better. Thanks, *Raúl Kripalani* Apache Camel PMC Member & Committer | Enterprise Architect, Open Source Integration specialist http://about.me/raulkripalani | http://www.linkedin.com/in/raulkripalani http://blog.raulkr.net |

Re: what's happening to camel extra?

2015-09-04 Thread Raul Kripalani
>>> ;) could tell them before they take the wrong decision? > > >>> > > >>> It's even worse than what I thought because after the Gimp people > told > > SF > > >>> to stop doing their shady things, they actually insisted during 2015:

Re: what's happening to camel extra?

2015-09-04 Thread Raul Kripalani
gt; czw., 3.09.2015 o 20:38 użytkownik Pontus Ullgren >>> napisał: >>> >>> Have not seen any other updates on the comdev mailing list no. >>>> >>>> Perhaps we should reach out to Daniel Gruno (that seems to be in charge >>>> >>

Re: Problem upgrading to Camel 2.15.3 in Karaf 3.0.4

2015-09-03 Thread Raul Kripalani
No worries. Welcome and feel free to ask and contribute! Raúl. On 3 Sep 2015 10:03, "michael.esmann" wrote: > Thank you very much for the answer!! I will try the new Camel version. > > NB: I am new to this user forum, and must learn how to search in the > existing jira issues to see if a problem

Re: Problem upgrading to Camel 2.15.3 in Karaf 3.0.4

2015-09-02 Thread Raul Kripalani
Hey, This has been resolved already on the unreleased versions 2.16.0 and 2.15.4: https://issues.apache.org/jira/browse/CAMEL-9099. You may want to try a SNAPSHOT for the time being. Regards, *Raúl Kripalani* Apache Camel PMC Member & Committer | Enterprise Architect, Open Source Integration sp

Re: Stopping file reading via splitter on exception?

2015-09-02 Thread Raul Kripalani
Hey, You might want to look at the Splitter's stopOnException and shareUnitOfWork options [1]. [1] https://camel.apache.org/splitter.html Regards, *Raúl Kripalani* Apache Camel PMC Member & Committer | Enterprise Architect, Open Source Integration specialist http://about.me/raulkripalani | http

Re: PEM File for Authentication in route

2015-09-02 Thread Raul Kripalani
1. sslContextParameters is a component option, which means you need to configure it in the component, not in the endpoint. 2. I don't think the element supports nesting the element. Note how it is configured here [1]. [1] https://camel.apache.org/camel-configuration-utilities.html *Raú

Re: Camel extra jcifs for camel 2.15.x ?

2015-09-02 Thread Raul Kripalani
Hello, There has been no release of camel-extras partly due to the fact that Google Code is being switched off and the Camel community is pending a decision from ASF ComDev with regards to the upcoming home of Apache Extras projects. The thread is here [1] but there seems to be no conclusion or i

Re: what's happening to camel extra?

2015-09-02 Thread Raul Kripalani
Hey guys, Do we have an update on the ASF front about the Apache Extras migration? Users are asking for new releases of camel-extras components... I quickly went through the ComDev thread but found no conclusion. Maybe I overlooked an email in that thread. Things tend to get very chatty over ther

Re: REST (DSL) in ?

2015-09-02 Thread Raul Kripalani
Hi, Could you please open a JIRA [1] ticket for this improvement? [1] https://issues.apache.org/jira/browse/CAMEL Thanks, *Raúl Kripalani* Apache Camel PMC Member & Committer | Enterprise Architect, Open Source Integration specialist http://about.me/raulkripalani | http://www.linkedin.com/in/ra

Re: component couchdb

2015-09-02 Thread Raul Kripalani
Hey, Thanks for posting the problem and the solution! Which version of Karaf are you using? We may be able to fix the issue in the features descriptor. Thanks, Raúl. On 1 Sep 2015 20:41, "Hilderich" wrote: > Hello fellows, > > In my camel route (Apache Camel 2.15.2) I'd like to use the compon

Re: Camel Groovy DSL

2015-09-02 Thread Raul Kripalani
Hi Reji, Yeah, users tend to use Java DSL or the XML DSLs (Spring or Blueprint) more frequently. Consequently the number Groovy DSL-related topics will be lower, as well as the attention that the contributors and committers give to this DSL. I guess you have already come across the Groovy DSL page

Re: JSON to XML Conversion

2015-09-02 Thread Raul Kripalani
I'm not suggesting that you use JAXB. I just wanted you to try defining the JSON to XML data format nested inside the unmarshal. On 2 Sep 2015 02:06, "anish.somadevan" wrote: > Am actually trying to convert a JSON response from an API to XML, and i > don't > think it can be done using JAXB. Pleas

Re: JSON to XML Conversion

2015-09-01 Thread Raul Kripalani
You don't need to use ref. Have a look at the first XML example for the JAXB data format here: http://camel.apache.org/jaxb.html. Raúl. No On 2 Sep 2015 01:25, "anish.somadevan" wrote: > Am not sure if i have implemented it as you said. This is what i have in my > route now, > > http://camel.apa

Re: JSON to XML Conversion

2015-09-01 Thread Raul Kripalani
Aha! So you are using the XML approach to load your routes. You can define data formats in two places: either (a) inside your Camel Context, which, if you are using exactly this approach [1], is being configured programmatically, or (b) inline inside your marshal / unmarshal XML element. I would

Re: [Camel-Kafka] Value of KafkaConstants.KEY constant

2015-09-01 Thread Raul Kripalani
Hi, Good point. Maybe Samuel (the contributor of camel-kafka, CC'ed) can have a look for us ;-) We should also harmonise the header names with the style we use in other components: CamelKafka... (upper camel case starting with Camel, followed by component name, then header name). We could only

Re: PEM File for Authentication in route

2015-08-31 Thread Raul Kripalani
It depends on what your PEM file contains and what the server is requesting of you. The PEM file may contain a private key for client SSL authentication, in which case you need to use the camel-http4 [1] sslContextParameters option to configure the keystore, key alias, keystore passwd, key passwd,

Re: PEM File for Authentication in route

2015-08-30 Thread Raul Kripalani
Yes, but which component exactly? We have many for the HTTP transport. On 31 Aug 2015 00:31, "anish.somadevan" wrote: > Its a HTTPS call, and am using recipeintList coz i need to construct > dynamic > URI. Also, due to some compatibility issues i can use only 2.10.3 version > camel JARs. > > Than

Re: Send Message to a queue before start & end of a route starts prcoessing

2015-08-30 Thread Raul Kripalani
BeforeConsumer means that the logic will be executed before the consumer finishes, ie. when the route ends and before returning the response to the caller if InOut and/or before executing the Exchange.done(). To capture the start of the route, you may want to look at interceptFrom. Regards, Raúl.

Re: PEM File for Authentication in route

2015-08-30 Thread Raul Kripalani
I assume this is an HTTP call. Which component are you using in your producer endpoint? Raúl. On 30 Aug 2015 22:42, "anish.somadevan" wrote: > I have a route where i need to make a GET request to an API which is hosted > on a server. The authentication is done using a PEM file. Is there a way i

Re: JSON to XML Conversion

2015-08-30 Thread Raul Kripalani
Do you have camel-xmljson in your classpath? Regards, Raúl. On 30 Aug 2015 22:38, "anish.somadevan" wrote: > Hi Yogesh, > > I did define it as you mentoned, and referenced it in my route as given > below, > > > > trimSpaces="true" rootName="newRoot" skipNamespaces="true" >

Re: Camel Velocity pass ArrayList

2015-08-28 Thread Raul Kripalani
I assume you mean a JMS queue. Is your class Serializable? If not, it'll not get passed on. Try making it Serializable and let us know. Thanks, *Raúl Kripalani* Apache Camel PMC Member & Committer | Enterprise Architect, Open Source Integration specialist http://about.me/raulkripalani | http://w

Re: Camel Velocity pass ArrayList

2015-08-28 Thread Raul Kripalani
Ah, of course, I missed that. Sifting through emails too quickly ;-) What version of Camel are you on? Could JPA lazy loading be the culprit here? Can you switch to eager loading? *Raúl Kripalani* Apache Camel PMC Member & Committer | Enterprise Architect, Open Source Integration specialist http

Re: Camel Velocity pass ArrayList

2015-08-28 Thread Raul Kripalani
The signature of .setHeader() is .setHeader(String headerName, Expression expression). Your itemList() method returns a List, so I'm pretty sure something's missing here. Are you sure that's the code you're running? *Raúl Kripalani* Apache Camel PMC Member & Committer | Enterprise Architect, Ope

Re: http4 ignoring CamelHttpPath

2015-08-27 Thread Raul Kripalani
On Thu, Aug 27, 2015 at 4:16 AM, Minh Tran wrote: > uri="http4:myhost:80?httpclient.connectTimeout=1&httpclient.socketTimeout=12"/> > You have a typo related to casing. The option prefixes are httpClient (capital C, using lowerCamelCase). Nevertheless, we do have a bug because your opt

Re: http4 ignoring CamelHttpPath

2015-08-27 Thread Raul Kripalani
I don't think it's expected behaviour. Normally I configure timeouts and the like in the AsyncHttpClientConfig directly. Doing that, the CamelHttpPath header works properly. I will check what you said, but it definitely sounds like a bug. Raúl. On 27 Aug 2015 04:17, "Minh Tran" wrote: > Hi > >

Re: CXF SOAP Message Sent from a Camel Client Twice When No HTTP Response Received

2015-08-27 Thread Raul Kripalani
Are you sure the first request was not an HTTP request that ended with an 401 Unauthorized? Are you using some kind of HTTP auth? If that's the case and you don't set up preemptive auth (for HTTP Basic), it is expected for the server to see 2 wire requests. Could you please try enabling the CXF L

Re: Camel Velocity pass ArrayList

2015-08-27 Thread Raul Kripalani
Could you please paste the itemList() function? Thanks. On 27 Aug 2015 18:17, "Copernico" wrote: > Hi! > > I have a velocity template for send an email. In this template i send to > our > clients a list of items (JPA Entities) as an arraylist (is a result of a > query which size may be diferent

Re: Is it safe to use ThreadLocal to implement route scope for dependency injection?

2015-08-27 Thread Raul Kripalani
Typically what you would do is store the object you want to propagate in an Exchange property, eg. just before a threads() DSL. On the other side of the concurrency threshold, you would unwrap the object back into its thread-bound structure from the Exchange property. If you have a look at the fe

Re: Getting JMSConsumer to look for messages every N seconds

2015-08-26 Thread Raul Kripalani
Currently I think that we only support fixed schedules. So with the cron scheduler you could achieve something like: start/resume the route on every minute at 00 and 30 seconds, stop/suspend every minute at 10 and 40 seconds time marks. This would effectively keep your route running for 10 seconds

Re: Getting JMSConsumer to look for messages every N seconds

2015-08-26 Thread Raul Kripalani
Yes, you can use a Scheduled Route Policy [1] to schedule the activation and deactivation of your route. That, with a JMS consumer, should do the trick. [1] https://camel.apache.org/scheduledroutepolicy.html *Raúl Kripalani* Apache Camel PMC Member & Committer | Enterprise Architect, Open Source

Re: What language is jsonpath looking for?

2015-08-25 Thread Raul Kripalani
The JSON data format and the jsonpath language are different things in Camel. You should add the camel-jsonpath module to your classpath, or if you are on OSGi and Karaf, simply install the feature with the same name. Hope that helps, Raúl. On 25 Aug 2015 22:44, "shuston" wrote: > I am trying t

Re: OSGI Service look up

2015-08-18 Thread Raul Kripalani
Are you using Spring or Blueprint in your Camel application? If yes, you can use elements to get a hold of the OSGi Service. Otherwise, since you haven't indicated what 'ctx' is in your example, and judging by your lookup notation, I will assume it is an InitialContext plumbed against Aries JNDI.

Re: spring osgix:cm-properties not reloading the properties

2015-08-15 Thread Raul Kripalani
Have a look at [1], section 9.1.2.1. [1] http://docs.spring.io/spring-osgi/docs/1.2.0-m2/reference/html/compendium.html Raúl. On 15 Aug 2015 09:29, "chaituu" wrote: > properties are getting not reloaded in case of spring dm.it works fine in > case of blue print xml and properties are reloaded w

Re: Construct Dynamic URI

2015-08-09 Thread Raul Kripalani
Yes, it's possible. But the to EIP is not dynamic. You need to use instead. *Raúl Kripalani* Apache Camel PMC Member & Committer | Enterprise Architect, Open Source Integration specialist http://about.me/raulkripalani | http://www.linkedin.com/in/raulkripalani http://blog.raulkr.net | twitter: @r

Re: Some Stupid Questions

2015-08-03 Thread Raul Kripalani
On 2 Aug 2015 13:05, "Felix Thomas" wrote: > 2) Threading :- If I have declared a Bean as above and if I use it in a > SPLIT in Parallel processing mode using a Thread profile. Will Camel also > create a Pool of the bean and pass it for each thread. i.e. if my Pool size > is 5 will camel create

Re: Camel XmlJson Question

2015-07-31 Thread Raul Kripalani
/org/apache/camel/dataformat/xmljson Regards, Raúl. On Fri, Jul 31, 2015 at 10:47 AM, srinit wrote: > Hi Raul, > > I went through that page and unable get how I can use that for my case. > I don't see any good example for xmljson under Examples section. > > - Thanks &

RE: Camel XmlJson Question

2015-07-31 Thread Raul Kripalani
Hi, Have you tried using the camel-xmljson data format instead of custom code? Take a look at the link provided above. Raúl. On 31 Jul 2015 08:18, "srinit" wrote: > I am trying to xml <==> json using following code > > @Override > public void xml2json(String xml) throws JSONException {

Re: [DISCUSS] Looks like someone feels threatened... (TIBCO vs Open Source ESBs)

2015-04-23 Thread Raul Kripalani
ttp://www.linkedin.com/in/raulkripalani http://blog.raulkr.net | twitter: @raulvk On Thu, Apr 23, 2015 at 6:25 AM, Claus Ibsen wrote: > Hi Raul > > Did you get a chance to continue working on this? > > I think for #3 its due to the openes of the source code that people > dive in and help f

Re: Seconds since 1970

2015-04-17 Thread Raul Kripalani
System.currentTimeMillis() / 1000. You will want to round up or round down (use Math). And please post only Camel-specific questions. For general Java questions, Stack Overflow or Google are your best bets. Regards, *Raúl Kripalani* Apache Camel PMC Member & Committer | Enterprise Architect, Op

[DISCUSS] Looks like someone feels threatened... (TIBCO vs Open Source ESBs)

2015-04-17 Thread Raul Kripalani
Just found this marketing landing page published on social networks. It's made by TIBCO and attempts to highlight the downsides of Open Source ESBs. You don't need to be a rocket scientist to gather what exact ESB they are targeting (not us): just look at the images. http://www.tibco.com/integrati

Re: MongoDB Consumer Endpoint: ReadPreference cannot be set?

2015-03-13 Thread Raul Kripalani
I added a unit test and merged your PR. Thanks for your contribution to Camel, and looking forward to many more! Regards, *Raúl Kripalani* Apache Camel PMC Member & Committer | Enterprise Architect, Open Source Integration specialist http://about.me/raulkripalani | http://www.linkedin.com/in/raul

Re: MongoDB Consumer Endpoint: ReadPreference cannot be set?

2015-03-11 Thread Raul Kripalani
Hi Joerg, Thanks for your feedback! Indeed this can probably be improved. Could you please open a ticket in our Jira? How would you feel about submitting a pull request? Thanks! Sent from my iPad > On 11 Mar 2015, at 16:13, jpeschke wrote: > > Hello, > When trying to use the "readPreference"

Re: Trigger FTP Routes in sync

2015-02-24 Thread Raul Kripalani
Take a look at the Controlbus component to start/stop routes programmatically. Normally with FTP consumers, you know when to start them (when the timer fires) but the tricky part is to know when to stop them. You'd probably want to stop them after a period of inactivity, e.g. after 60 seconds. The

Re: Modifying a shipped TypeConverter

2015-01-28 Thread Raul Kripalani
Yes, we definitely need an option to pick up a custom ObjectMapper. Could you file a JIRA and assign it to me, please? However, the type converter is only used as a (very convenient) fallback. If you provide a DBObject to your endpoint, no type conversions will be triggered. Therefore, for now, y

Re: camel xmljson add @ signs to the json output. how to remove the @ signs

2015-01-28 Thread Raul Kripalani
Hey guys, It's me who developed this component, but in Camel we can only go as far as the Jsonlib library goes. Jsonlib prefixes XML attributes with '@' when converting them into JSON properties [1]. I think this is correct: without some kind of differentiation, you wouldn't be able to cycle back

Re: XPATH woes

2014-11-13 Thread Raul Kripalani
Your Envelope element is declared in a default namespace. Your XPath expression must use the namespace when referring to the element. Cheers. On 13 Nov 2014 22:32, "Gershaw, Geoffrey A." < geoffrey.gers...@credit-suisse.com> wrote: > Hi All, > > I'm trying to filter via xpath using the spring con

Re: Confusing cxf log messages after upgrading to 2.14.0

2014-09-25 Thread Raul Kripalani
Yep, perhaps try setting it as a in your bean... *Raúl Kripalani* Apache Camel PMC Member & Committer | Enterprise Architect, Open Source Integration specialist http://about.me/raulkripalani | http://www.linkedin.com/in/raulkripalani http://blog.raulkr.net | twitter: @raulvk On Thu, Sep 25, 2014

Re: camel-cxfrs and AsyncResponse

2014-08-26 Thread Raul Kripalani
3ContinuationProvider$Servlet3Continuation. > So at least some Continuation is being used. > > > -Original Message- > From: Raul Kripalani [mailto:r...@evosent.com] > Sent: 26 серпня 2014 р. 17:51 > To: users@camel.apache.org > Subject: Re: camel-cxfrs and AsyncResp

Re: camel-cxfrs and AsyncResponse

2014-08-26 Thread Raul Kripalani
I came across this issue recently and the culprit was the default etc/jetty.xml configuration packaged with Apache ServiceMix, which by default uses the BlockingChannelConnector, as explained in the inline XML comment. This connector does not support Jetty Continuations, therefore it is not capabl

Re: mongoDB uri

2014-08-26 Thread Raul Kripalani
Did you just need to change the MongoDB Database and the MongoDB Collections? I thought you also wanted to change the hostname and the port at runtime of the Mongo server... If that's not the case, you can even simplify your solution a lot! After all, it seems that your dynamic router is always r

Re: mongoDB uri

2014-08-26 Thread Raul Kripalani
Can you post the code showing...? a) how you add the bean. b) how you construct the endpoint URI from within the "MongoConnection" class' dynamic router method. Regards, *Raúl Kripalani* Apache Camel PMC Member & Committer | Enterprise Architect, Open Source Integration specialist http://about.m

Re: apache repository down?

2014-08-25 Thread Raul Kripalani
I was able to access the URLs you posted successfully, with a POM file coming back. Perhaps check your proxy settings and try a direct curl/wget... Regards, *Raúl Kripalani* Apache Camel PMC Member & Committer | Enterprise Architect, Open Source Integration specialist http://about.me/raulkripalan

Re: mongoDB uri

2014-08-25 Thread Raul Kripalani
Hello Andrei, This is an interesting use case. Currently there is no easy way to support your scenario because the MongoDB component requires a com.mongodb.Mongo bean in the registry, e.g. mongodb:connectionBean?... In your context: ... However, many ideas come to mind. Y

Re: AHC module not passing the request body

2014-08-20 Thread Raul Kripalani
put. Thanks, *Raúl Kripalani* Apache Camel PMC Member & Committer | Enterprise Architect, Open Source Integration specialist http://about.me/raulkripalani | http://www.linkedin.com/in/raulkripalani http://blog.raulkr.net | twitter: @raulvk On Wed, Aug 20, 2014 at 12:27 PM, Jaume Sancho w

Re: AHC module not passing the request body

2014-08-20 Thread Raul Kripalani
You can enable logging in the AHC library by setting the appropriate log categories to DEBUG or TRACE level in your log stack configuration. This will show what AHC is actually sending to the backend. If you are using AHC 1.8.x, the logging category to enable is com.ning.http. It could happen th

Re: Article Java Magazin July 2014 on Apache Integration stack

2014-06-06 Thread Raul Kripalani
**** > > > -Original Message- > From: Raul Kripalani [mailto:r...@evosent.com] > Sent: Wednesday, 4 June 2014 9:07 PM > To: us...@activemq.apache.org; users@camel.apache.org; > us...@servicemix.apache.org > Subject:

Re: Article Java Magazin July 2014 on Apache Integration stack

2014-06-04 Thread Raul Kripalani
aulkr.net | twitter: @raulvk On Tue, Jun 3, 2014 at 10:20 AM, Raul Kripalani wrote: > Communities, > > Quick announcement to let you know that we have published an article on > Apache Camel, Apache ServiceMix powering a best-practice, > geographically-federated SOA solution in the Jul

Article Java Magazin July 2014 on Apache Integration stack

2014-06-03 Thread Raul Kripalani
Communities, Quick announcement to let you know that we have published an article on Apache Camel, Apache ServiceMix powering a best-practice, geographically-federated SOA solution in the July 2014 issue of the Java Magazin (edited by JAXenter.de). The Apache ServiceMix brand has been featured on

Re: Basic direct-vm scenario produces error

2014-04-21 Thread Raul Kripalani
Check the endpoint URIs on the producer and consumer side. There seems to be a mismatch - perhaps it's a copy paste error? On 22 Apr 2014 00:50, "John Dubchak" wrote: > Hi, > > I am trying to route a JMS message using an xpath expression. The > expression and message conversion seem to work fine

Re: Does Camel MongoDB use cursors on findAll ?

2014-04-18 Thread Raul Kripalani
a. > - loop over the data set reading batch parts using "skip" and "page size" > - write the paged results appending them to the file. > - etc ? > > Have you an example of paging process ? > > Thanks for you help. > > Ephemeris Lappis > > Le

Re: Does Camel MongoDB use cursors on findAll ?

2014-04-17 Thread Raul Kripalani
Hi, We use Mongo cursors to read from the DB. But a DBCursor is not something we can return to the route because not all technologies support Streams, Cursors, Chunking, etc. For example, how would you go about returning a DBCursor to a JMS endpoint? That's why we offer the skipping and limiting

Re: JDBC component and jboss ds.xml file

2014-04-12 Thread Raul Kripalani
This will help you: http://stackoverflow.com/questions/9183321/how-to-use-jndi-datasource-provided-by-tomcat-in-spring. Raúl. > On 12 Apr 2014, at 06:43, moj0002 wrote: > > I have my data source defined in a jboss ds file (myDB2Database-ds.xml) that > goes either in the jboss deploy directory or

Re: Camel Succesful delivery acknowledgements..

2014-04-04 Thread Raul Kripalani
Hello XA transactions are your friend in this scenario. Beware that the whole goal of leveraging a Message Broker is to decouple the producer from the consumer. In fact, when the producer sends the message, there may be a consumer there may be not, but if you've set the JMS delivery mode appropri

Re: DataFormat Versus TypeConverters

2014-04-02 Thread Raul Kripalani
Sorry for the delay, I missed the original post from February. This seems to me like a question on customising the Jackson bindings. Have you tried using the @JsonValue annotation? Have a look at [1]. [1] http://stackoverflow.com/questions/13386930/why-doesnt-jsonunwrapped-work-for-lists HTH,

Re: Looking for ideas to reduce code volume and duplication

2014-04-02 Thread Raul Kripalani
Try this technique. Nothing fancy, just a plain old Java static helper method. It relies on Camel being able to configure exception handlers if placed at the end of the route definition, which I think is possible. Please give it a spin and report back to the community! public class RouteExceptionH

Re: Issues with cxfrs using json

2014-03-31 Thread Raul Kripalani
It depends on what you're exposing the endpoint for. If the REST endpoint is a gateway to a business process / service orchestration / aggregation / scatter-gather / etc. (replace with any kind of EIP or combination of EIPs), speaking to 10+ systems over different protocols (SOAP, plain HTTP, JMS,

Re: Issues with cxfrs using json

2014-03-31 Thread Raul Kripalani
Exactly. Currently you are telling Camel that you want a String. That's why you're not getting a POJO. *Raúl Kripalani* Apache Camel PMC Member & Committer | Enterprise Architect, Open Source Integration specialist http://about.me/raulkripalani | http://www.linkedin.com/in/raulkripalani http://blo

Re: Issues with cxfrs using json

2014-03-28 Thread Raul Kripalani
Hello, Could you add a Log endpoint with the showAll=true option? We need to see what the incoming request looks like. Particularly the Content-Type header. Also please paste your JAX-RS resource class. Are you setting the @Consumes annotation? Another point: getBody(Class) also returns null whe

Re: Updating state in a route.

2014-03-19 Thread Raul Kripalani
Sounds reasonable to me. To prepare the system for HA, you can broadcast the state on a JMS topic to which all nodes subscribe to. Contrary to making the route itself check every two minutes, this method allows you to run the checking logic in a single place inside the cluster, in an HA scenario. T

Re: Accessing an osgi service interface from another bundle

2014-03-13 Thread Raul Kripalani
If Spring DM is able to resolve the OSGi reference correctly, 'mappingservice' becomes a local bean in the Spring Context of the second bundle. This means that you can inject it around like any other bean. For example: ... provided that com.ab.mypgm has a setter for property

Re: Camel CXF RS

2014-03-05 Thread Raul Kripalani
Unfortunately that tutorial only showcases Camel as a client, but not as a service provider. If you want to build a JAX-RS service, I suggest you use the new SimpleBinding to make sure that your @HeaderParams, @PathParams, @QueryParams, etc. are injected as Camel headers, and that your request pay

Re: Unable to resolve endpoint for cxf rest service

2014-02-19 Thread Raul Kripalani
Hello, You have camel-core and camel-spring version 2.10 mixed up with camel-cxf version 2.12. The class definitions are different, that's why they can't find each other. Try upgrading camel-core and camel-spring to 2.12. Regards, *Raúl Kripalani* Apache Camel PMC Member & Committer | Enterpris

Re: Java Route Not Finishing

2014-02-13 Thread Raul Kripalani
If the incoming message via the MQTT consumer was InOut (i.e. request-reply), it's likely that the JMS producer is sending the message as InOut. This means that the producer is waiting for a reply. Try setting the 'exchangePattern' option on the JMS endpoint to 'InOnly' to instruct the producer tha

Re: Camel MongoDB Bug related to Type Conversion

2014-01-16 Thread Raul Kripalani
Hello, Yes, as far as I remember the Type Converter Registry memorises what converters were successful in converting from a given source to a destination type, with the goal of speeding up the resolution of future type conversion attempts. Probably this converter is getting blacklisted due to the

Re: Distributed AggregationRepository

2014-01-09 Thread Raul Kripalani
Hi Claus, On Thu, Jan 9, 2014 at 8:42 AM, Claus Ibsen wrote: > Hmm I am not aware of such. > > camel-levedb is using same principle as the leveldb store in AMQ > http://activemq.apache.org/leveldb-store.html > > And allows concurrent and distributed reads/writes to the shared > store. eg use a s

Re: Distributed AggregationRepository

2014-01-08 Thread Raul Kripalani
Careful, HawtDB is deprecated, as advertised in the camel-hawtdb component page. Unfortunately, the warning doesn't render in a shaded box any longer (due to some recent Confluence migration), so it's easy to miss it. Sorry about that. LevelDB is recommended instead, but the technology has two lim

Re: DSL Logging not outputting to the logs

2013-12-02 Thread Raul Kripalani
Are you getting any other log statements printed out to your 'out' console appender? Given that you've set the root log level to DEBUG in your log4j configuration, you should be seeing a lot of log noise from Camel. If you don't, your container may not be picking up your log4j configuration file.

Re: a camel based solution that can read message headers without de-queuing a message from the MQ

2013-11-20 Thread Raul Kripalani
You can use JMS Message Selectors with Queue Browsers. So if you're looking for messages with a particular value in a particular header, you can create a Message Selector for that. Regards, *Raúl Kripalani* Apache Camel PMC Member & Committer | Enterprise Architect, Open Source Integration specia

Re: xpath filter question

2013-11-16 Thread Raul Kripalani
In the future, you can use the .logNamespaces() option of the XPath expression to ask Camel to dump to your log files the namespaces that are discovered in your incoming XML payload. BTW - the work your processor is doing is simply to convert the payload to a String. You can achieve this by using

Re: xmljson convert XML from file to JSON straight into MongoDB issue

2013-11-14 Thread Raul Kripalani
Do you see any exceptions? Regards, *Raúl Kripalani* Apache Camel PMC Member & Committer | Enterprise Architect, Open Source Integration specialist http://about.me/raulkripalani | http://www.linkedin.com/in/raulkripalani http://blog.raulkr.net | twitter: @raulvk On Thu, Nov 14, 2013 at 2:51 PM,

Re: MongoDB exchange Out Body is null, using Apache Camel

2013-11-09 Thread Raul Kripalani
If you're using Camel >= 2.10.3 or 2.11, enable the writeResultAsHeader endpoint option. In the future, please use the users@ forum for such queries. And please remember to always indicate what version of Camel you're running on. Regards, *Raúl Kripalani* Apache Camel PMC Member & Committer | En

Re: SJMS failure with stale reply queue

2013-11-09 Thread Raul Kripalani
s working after one attempt to send to a missing queue. > >> > >> I've tried to debug the situation, and it seems that SJMS creates > sessions > >> in advance from connections obtained from JBoss, but JBoss closes each > >> connection when an exception o

  1   2   3   4   >