Camel MQTT Connection Pooling

2016-09-21 Thread Joe San
Camel Users, Is there a comparable pooled connection implementation for the MQTT component in Camel? For the ActiveMQ / JMS, there is a *PoolingConnectionFactory* that I could use. Is there something for the MQTT component? Looking at the configuration parameters, I suspect it is not:

Re: No Consumer available Exception

2013-07-25 Thread Joe San
I use the 2.8.0 version of Camel. Regards, Joe On Thu, Jul 25, 2013 at 8:45 AM, Claus Ibsen claus.ib...@gmail.com wrote: Hi We ought to have duplication detection in place. Also on the route ids AFAIR. What Camel version do you use? On Thu, Jul 25, 2013 at 2:52 AM, Joe San codeintheo

Re: No Consumer available Exception

2013-07-25 Thread Joe San
Is there a JUnit that I could try? Regards, Joe On Thu, Jul 25, 2013 at 10:11 AM, Joe San codeintheo...@gmail.com wrote: I use the 2.8.0 version of Camel. Regards, Joe On Thu, Jul 25, 2013 at 8:45 AM, Claus Ibsen claus.ib...@gmail.comwrote: Hi We ought to have duplication detection

Re: No Consumer available Exception

2013-07-24 Thread Joe San
Not in this route definition, but I have another route definition where I used the same routeId as one of the routeId in this one. Is there an exception that hints me that I used the same routeId? Currently, it says no consumer available which seems a bit strange when the actual problem was with

Re: Run once a month Camel Bean

2013-07-16 Thread Joe San
Much simpler approach would be to use a CronScheduledRoutePolicy! Regards, Joe On Tue, Jul 16, 2013 at 1:02 PM, Christian Müller christian.muel...@gmail.com wrote: Yes, take a look at the Camel Quartz component. Best, Christian Am 16.07.2013 12:48 schrieb kikou1984

Re: CSV files processing

2013-07-11 Thread Joe San
The problem is that I cannot rely on that file name. I have to rely on the content. The first line in the CSV file will always contain what is being exported with the field names. This set of field names are finite. I can of course hard code that comma seperated field names in a string and compare

Camel Aggregator Strategy Question

2013-03-18 Thread Joe San
Camel Users, I need to acheive the following scenario: I have a file system where 3 different CSV files will be written, csv1, csv2 and csv3. All these 3 files will be available at the same time. I need to read all the three files, do some processing on iut and produce one CSV file as a result.

Re: Unmarshall CSV to MapString, MapString, String

2013-03-12 Thread Joe San
or bindy component? Instead of a converter, you can also implement a Processor or bean. Best, Christian On Mon, Mar 11, 2013 at 9:52 AM, Joe San codeintheo...@gmail.com wrote: Camel Users, Is there a way to convert the body to a Map of a Map without needing to write a custom converter

Re: Camel Blueprint Test Error

2013-03-12 Thread Joe San
wrote: Can you share your route with us? Which version do you use? Sent from a mobile device Am 12.03.2013 11:00 schrieb Joe San codeintheo...@gmail.com: Hi all, I'm using the Camel Blueprint Test Support to test my routes. I have the following configured for my active mq definition

Camel Blueprint Test Support - Error

2013-02-26 Thread Joe San
Is there anything that I have to set so that I could use the camel-blueprint-test support? When I tried running my camelContext configured in the blueprint.xml, I get the following error: I'm using 2.10.0 versions of the camel-xxx libraries. java.lang.NoClassDefFoundError:

Re: Camel Blueprint Test Support - Error

2013-02-26 Thread Joe San
blueprint test class is located. Regards, Jothi On Tue, Feb 26, 2013 at 4:03 PM, Claus Ibsen claus.ib...@gmail.com wrote: I suggest to upgrade to a newer 2.10.x release, as we have fixed osgi stuff since. On Tue, Feb 26, 2013 at 3:45 PM, Joe San codeintheo...@gmail.com wrote

Re: Camel Blueprint Test Support - Error

2013-02-26 Thread Joe San
Seems like I have to put that blueprint.xml in the resources folder. It worked! Regards, Jothi On Tue, Feb 26, 2013 at 4:47 PM, Joe San codeintheo...@gmail.com wrote: Good. the upgrade landed me in an another error as below: java.io.FileNotFoundException: Cannot find resource in classpath

Re: Camel Message Mapping to XML

2013-02-20 Thread Joe San
://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English) http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese) Twitter: willemjiang Weibo: 姜宁willem On Tuesday, February 19, 2013 at 4:37 AM, Joe San wrote: Camel Users, I have a scenario wherein I need to convert

Re: Camel Scala JAXB DSL

2013-02-12 Thread Joe San
(jaxb).process(new EIMProcessor()).to(file:/Users/joe/Desktop/out/) Regards, Jothi On Tue, Feb 12, 2013 at 8:15 AM, Claus Ibsen claus.ib...@gmail.com wrote: On Mon, Feb 11, 2013 at 7:20 PM, Joe San codeintheo...@gmail.com wrote: Does the Scala DSL support JAXB marshal and unmarshal? I have

Re: Camel Scala DSL and IntelliJ

2013-02-11 Thread Joe San
11.02.2013 um 13:36 schrieb James Carman jcar...@carmanconsulting.com : How about from(file://...).to(file:///) You're trying to call to on a java.lang.String literal object. On Feb 11, 2013, at 5:30 AM, Joe San codeintheo...@gmail.com wrote: Guys, I'm just trying a simple Scala DSL

Re: Camel Scala DSL and IntelliJ

2013-02-11 Thread Joe San
11, 2013, at 5:30 AM, Joe San codeintheo...@gmail.com wrote: Guys, I'm just trying a simple Scala DSL using intelli. I have a project created and tried configuring a simple route as below: class SimpleRouter extends App { def main(args : Array[String]) { val camelContext

Re: business case for migration

2012-09-24 Thread Joe San
May be you should compare the feature differences between Camel 2.4 and Camel 2.9, try to find an analogy on what benefits and value addition would migrating to Camel 2.9 would bring for your project and whether this value addition is financially substantial. Regards, Jothi On Mon, Sep 24, 2012

Re: @XPath evaluation

2012-09-10 Thread Joe San
://www.fusesource.com (http://www.fusesource.com/) Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English) http://jnn.javaeye.com (http://jnn.javaeye.com/) (Chinese) Twitter: willemjiang Weibo: willemjiang On Monday, August 27, 2012 at 6:53 PM, Joe San

Re: JAXB Data Format

2012-09-05 Thread Joe San
Wondering how you had the patience to go through this entire mail thread that helped you resolve your issue. The Camel Riders are awesome! Regards, Jothi On Wed, Sep 5, 2012 at 2:32 PM, Naveen Raj naveenra...@gmail.com wrote: Thanks, This helped me with the same issue i faced. thanks,

Re: @XPath evaluation

2012-08-27 Thread Joe San
christian.muel...@gmail.com wrote: Yes, should be possible. Sent from a mobile device Am 24.08.2012 13:56 schrieb Joe San codeintheo...@gmail.com: The most common language to use is XPath, which allows you to evaluate XPath expressions on the message body. For example, suppose the message

Camel OSGi Blueprint Question

2012-08-27 Thread Joe San
With the maven archetype for Camel blueprint, I created my project. I can see from the generated pom.xml file the following comment: !-- to generate the MANIFEST-FILE of the bundle -- What I did after generating my project is added additional dependencies. Now I want to make those dependencies

Re: Camel OSGi Blueprint Question

2012-08-27 Thread Joe San
Ok. A maven clean install made it all available in the Manifest.MF file. Regards, Jothi On Mon, Aug 27, 2012 at 2:35 PM, Joe San codeintheo...@gmail.com wrote: With the maven archetype for Camel blueprint, I created my project. I can see from the generated pom.xml file the following comment

Write Apache POI Workbook to the Exchange

2012-08-27 Thread Joe San
Guys, I have an Apache POI workbook and I would like to write that workbook to the Camel Exchange. How could I do that? // Outputting to Excel spreadsheet FileOutputStream output = null; try { output = new FileOutputStream(new File(FILE_NAME + FILE_TYPE_XLS));

Type Conversion Exception

2012-08-25 Thread Joe San
Guys, I have an xml for which I generated the xsd and using this xsd, I generated my model objects using xjc. When I tried them using my route, I got the following exception: org.apache.camel.TypeConversionException: Error during type conversion from type:

Re: Camel JMS to CSV (with Excel Strategy)

2012-08-24 Thread Joe San
this : com.mycompany.domain.v1_0.mymodel com.mycompany.domain.v1_1.mymodel com.mycompany.domain.v2_0.mymodel So, based on different xsd files, you will generate domain classes that you can next enrich with Bindy annotations. Regards, On Fri, Aug 24, 2012 at 6:47 AM, Joe San codeintheo...@gmail.com wrote: Christian

Re: Camel JMS to CSV (with Excel Strategy)

2012-08-24 Thread Joe San
, Charles Moulliard ch0...@gmail.com wrote: Hi Jothi, You can have a look here http://camel.apache.org/xpath.html Regards, On Fri, Aug 24, 2012 at 8:20 AM, Joe San codeintheo...@gmail.com wrote: When versioning with the package names, I would end up changing the imports of these models

Re: Camel JMS to CSV (with Excel Strategy)

2012-08-24 Thread Joe San
Ok. After a bit of reading about xPath, I have the following. But not sure if this would work as expected. The xml: pss:persons xmlns:pss=persons:datatype rss:person xmlns:rss=person:datatype namejothi/name

Re: JAXB Data Format

2012-08-24 Thread Joe San
Thanks Claus. I have the following lines being shown in the console. [ main] DefaultCamelContextINFO Route: route1 started and consuming from: Endpoint[file://.?fileName=my.xml] [ main] DefaultCamelContextINFO Total 1

Re: JAXB Data Format

2012-08-24 Thread Joe San
, Jothi On Fri, Aug 24, 2012 at 10:33 AM, Joe San codeintheo...@gmail.com wrote: Thanks Claus. I have the following lines being shown in the console. [ main] DefaultCamelContextINFO Route: route1 started and consuming from: Endpoint[file://.?fileName

Re: Camel JMS to CSV (with Excel Strategy)

2012-08-24 Thread Joe San
more I can understand that I have to define the namespace but where do I do that? Regards, Jothi On Fri, Aug 24, 2012 at 9:22 AM, Joe San codeintheo...@gmail.com wrote: Ok. After a bit of reading about xPath, I have the following. But not sure if this would work as expected. The xml

Re: Camel JMS to CSV (with Excel Strategy)

2012-08-24 Thread Joe San
) at org.apache.camel.component.file.GenericFileConsumer.poll(GenericFileConsumer.java:155) at org.apache.camel.impl.ScheduledPollConsumer.doRun(ScheduledPollConsumer.java:139) at org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:91) On Fri, Aug 24, 2012 at 11:08 AM, Joe San codeintheo...@gmail.com wrote: I tried

Re: Camel JMS to CSV (with Excel Strategy)

2012-08-24 Thread Joe San
May be I started with a complex example. So I decided to start with a simple xml without namespace definitions: info address streetxyz/street cityFrankfurt/city /address person namejothi/name age32/age countryGermany/country /person /info

Re: Camel JMS to CSV (with Excel Strategy)

2012-08-24 Thread Joe San
to the book from here http://camel.apache.org/books On Fri, Aug 24, 2012 at 11:43 AM, Joe San codeintheo...@gmail.com wrote: May be I started with a complex example. So I decided to start with a simple xml without namespace definitions: info address streetxyz/street

Camel JMS to CSV (with Excel Strategy)

2012-08-23 Thread Joe San
I would have to route a JMS message which I guess would be from Tibco to a CSV file to be saved as .xls in a file system. I guess I have to use both the JAXB and Bindy dataformats. JAXB to unmarshall from xml to Java and marshall from java to csv using Bindy. But can I annotate the same domain

Re: Camel JMS to CSV (with Excel Strategy)

2012-08-23 Thread Joe San
PM, Joe San codeintheo...@gmail.com wrote: I would have to route a JMS message which I guess would be from Tibco to a CSV file to be saved as .xls in a file system. I guess I have to use both the JAXB and Bindy dataformats. JAXB to unmarshall from xml to Java and marshall from java to csv

Re: Camel JMS to CSV (with Excel Strategy)

2012-08-23 Thread Joe San
: Yep. You can annotated your domain class with both JAXB and Bindy annotations. On Thu, Aug 23, 2012 at 4:37 PM, Joe San codeintheo...@gmail.com wrote: I would have to route a JMS message which I guess would be from Tibco to a CSV file to be saved as .xls in a file system

Camel OSGi Question

2012-08-22 Thread Joe San
Guys, I created a new project using the camel-maven-blueprint archetype to be used in an OSGi container. I ran mvn clean install on my project. Where and how do I deploy this bundle to my OSGi container? Im using ServiceMix. I had a look at the generated files from the blueprint archetype. In the

Re: Camel OSGi Question

2012-08-22 Thread Joe San
machine. As mvn install deploys the bundle to your local maven repo it should work. In your question you ommitted the version number. Can you try to add it? Christian Am 22.08.2012 15:43, schrieb Joe San: Guys, I created a new project using the camel-maven-blueprint archetype to be used

Re: Camel OSGi Question

2012-08-22 Thread Joe San
requirement [156.0] package; (package=org.apache.camel.spring Bundle ID: 156 karaf@root Now Im sure that when I install camel-spring, it will complain of another missing bundle. Is there a way out. This is interesting for me Regards, Jothi On Wed, Aug 22, 2012 at 5:44 PM, Joe San codeintheo

Re: Camel OSGi Question

2012-08-22 Thread Joe San
And then you can install the Camel components as features eg to use the Camel FTP component features:install camel-ftp On Wed, Aug 22, 2012 at 5:54 PM, Joe San codeintheo...@gmail.com wrote: One after the other... when installing camel-osgi, it says that I need to install camel-spring

Producer and ConsumerTemplate

2012-08-19 Thread Joe San
Camel fans, The Producer and Consumer templates - are they kind of mock interfaces to create a Producer and a Consumer? What benefits do they serve when comparing against the different EndPoint Components? Regards, Jothi

Re: JAXB Data Format

2012-08-19 Thread Joe San
=my.xml); Why does this not work either? What else should I tell Camel so that he writes the my.xml to the outbox? Regards, Jothi On Fri, Aug 17, 2012 at 12:47 PM, Joe San codeintheo...@gmail.com wrote: Thanks for the pointer. I made the necessary changes to my route but still unable to make

Re: JAXB Data Format

2012-08-19 Thread Joe San
On Sun, Aug 19, 2012 at 11:14 AM, Joe San codeintheo...@gmail.com wrote: After being unsuccessful at my effort to make the above route to work, I created the necessary inbox and outbox folders and my new route looks like below: from(file://Users/jothi/Desktop/inbox/filename=my.xml).unmarshal(jaxb

Re: JAXB Data Format

2012-08-19 Thread Joe San
(formatter); context.addInterceptStrategy(tracer); from(file://Users/jothi/Desktop/inbox?fileName=person.xml).to(file://Users/jothi/Desktop/outbox); } }); Regards, Jothi On Sun, Aug 19, 2012 at 6:19 PM, Joe San codeintheo...@gmail.com wrote: Just

Re: JAXB Data Format

2012-08-19 Thread Joe San
. I'm enjoying it! Regards, Jothi On Sun, Aug 19, 2012 at 1:09 PM, Claus Ibsen claus.ib...@gmail.com wrote: On Sun, Aug 19, 2012 at 12:14 PM, Joe San codeintheo...@gmail.com wrote: What is wondering me is that I do not see any exception at all. Thread.sleep(1) sleeps for 10 seconds and I

Re: JAXB Data Format

2012-08-17 Thread Joe San
: On Thu, Aug 16, 2012 at 4:08 PM, Joe San codeintheo...@gmail.com wrote: Even with the al4j-log4j dependecy added in the libraries, I get this error. Are you sure they are on the classpath when you run the app form within Eclipse. And you may want to add slf4j-log4j12 or some other logging

Re: JAXB Data Format

2012-08-17 Thread Joe San
On Fri, Aug 17, 2012 at 10:18 AM, Claus Ibsen claus.ib...@gmail.com wrote: On Fri, Aug 17, 2012 at 10:06 AM, Joe San codeintheo...@gmail.com wrote: I've tried to get rid of this issue but unfortunately could not. What I do not understand is the following: The Error says: Exception

Re: JAXB Data Format

2012-08-17 Thread Joe San
So here comes the next bump! javax.xml.bind.JAXBException: com.example.filexml doesnt contain ObjectFactory.class or jaxb.index Do I have to add a jaxb.index file to my package? Regards, Jothi On Fri, Aug 17, 2012 at 10:24 AM, Joe San codeintheo...@gmail.com wrote: Just managed to get rid

Re: JAXB Data Format

2012-08-17 Thread Joe San
using a processor and write the new xml to the same file. Regards, Jothi On Fri, Aug 17, 2012 at 10:57 AM, Claus Ibsen claus.ib...@gmail.com wrote: On Fri, Aug 17, 2012 at 10:46 AM, Joe San codeintheo...@gmail.com wrote: So here comes the next bump! javax.xml.bind.JAXBException

Re: JAXB Data Format

2012-08-17 Thread Joe San
not invoked? Also how can I see that my.xml was picked up by Camel in the from clause? Regards, Jothi On Fri, Aug 17, 2012 at 12:19 PM, Claus Ibsen claus.ib...@gmail.com wrote: On Fri, Aug 17, 2012 at 11:26 AM, Joe San codeintheo...@gmail.com wrote: Thanks! That solved the problem. Now I'm

Re: Camel Build Error

2012-08-17 Thread Joe San
at 12:42 AM, Joe San wrote: [ERROR] Failed to execute goal on project camel-spring: Could not resolve dependencies for project org.apache.camel:camel-spring:bundle:2.11-SNAPSHOT: Could not find artifact org.apache.camel:camel-core:jar:tests:2.11-SNAPSHOT in apache.snapshots ( http

Re: JAXB Data Format

2012-08-16 Thread Joe San
at 1:56 PM, Joe San codeintheo...@gmail.com wrote: Guys, I have a route which is defined as below: from(file://my.xml).marshal().xstream(UTF-8).bean(new ProcessorBean()).to(file://my.xml); All I want to do is access the my.xml in my ProcessorBean. Where and how do I specify the Java object

Re: JAXB Data Format

2012-08-16 Thread Joe San
PM, Babak Vahdat babak.vah...@swissonline.chwrote: Check the documentation for this: http://camel.apache.org/bean-binding.html Babak Am 16.08.12 14:32 schrieb Joe San unter codeintheo...@gmail.com: I have decided to use JAXB instead of xStream. My route definition looks like

Re: JAXB Data Format

2012-08-16 Thread Joe San
: On Thu, Aug 16, 2012 at 3:16 PM, Joe San codeintheo...@gmail.com wrote: Thanks for pointing me to toe documentation. My actual question got clarified once I had a look into the documentation. From the Camel in Action book: from(quartz://report?cron=0+0+6+*+*+?) .to(http://riders.com

Re: JAXB Data Format

2012-08-16 Thread Joe San
/dependency dependency groupIdorg.apache.camel/groupId artifactIdcamel-jaxb/artifactId version2.9.2/version /dependency Do I need additional dependencies to be added other than this? Regards, Jothi On Thu, Aug 16, 2012 at 3:34 PM, Joe San codeintheo...@gmail.com wrote: I just

Re: JAXB Data Format

2012-08-16 Thread Joe San
Even with the al4j-log4j dependecy added in the libraries, I get this error. Regards, Jothi On Thu, Aug 16, 2012 at 3:59 PM, Claus Ibsen claus.ib...@gmail.com wrote: Hi See this FAQ http://camel.apache.org/what-jars-do-i-need.html On Thu, Aug 16, 2012 at 3:50 PM, Joe San codeintheo

enrich and pollEnrich

2012-08-15 Thread Joe San
Camel Riders, I fail to fathom the fact that enrich works with a Producer EndPoint and pollEnrich works with a Consumer EndPoint. Is there a design consideration behind this mechanism? Can anyone please clarify why a pollEnrich should be used with a Consumer EndPoint and not with a Producer

Re: enrich and pollEnrich

2012-08-15 Thread Joe San
? Regards, Jothi On Wed, Aug 15, 2012 at 3:00 PM, Claus Ibsen claus.ib...@gmail.com wrote: On Wed, Aug 15, 2012 at 2:53 PM, Joe San codeintheo...@gmail.com wrote: Camel Riders, I fail to fathom the fact that enrich works with a Producer EndPoint and pollEnrich works with a Consumer EndPoint

Re: enrich and pollEnrich

2012-08-15 Thread Joe San
, 2012 at 3:32 PM, Joe San codeintheo...@gmail.com wrote: Thanks for the explanation. From your example in the Camel in Action book in Chapter 3: from(quartz://report?cron=0+0+6+*+*+?) .to(http://riders.com/orders/cmd=receiveddate=yesterday;) .process(new OrderToCsvProcessor()) .to(file

Re: enrich and pollEnrich

2012-08-15 Thread Joe San
then be easier to introduce the EIP pattern along that. On Wed, Aug 15, 2012 at 4:08 PM, Joe San codeintheo...@gmail.com wrote: Yes. Your statement The TO in the Camel routes is *always* a producer, eg you produce a message to an endpoint. In the http endpoint you would then do

Camel Build Error

2012-08-15 Thread Joe San
[ERROR] Failed to execute goal on project camel-spring: Could not resolve dependencies for project org.apache.camel:camel-spring:bundle:2.11-SNAPSHOT: Could not find artifact org.apache.camel:camel-core:jar:tests:2.11-SNAPSHOT in apache.snapshots ( http://repository.apache.org/snapshots/) - [Help

Re: Camel - ActiveMQ communication failes in Tomcat

2012-08-10 Thread Joe San
It has got something definitely to do with the missing Spring content libraries. In your case it is the spring-web.jar. Seems nothing specific to Camel itself. How are you building your project? If you are using Maven, check your spring-web.jar if it is properly downloaded. One way to do this is

Re: Camel usage in Online usecases

2012-08-09 Thread Joe San
*In the data ingest side, we will have around 5 million records/sec traffic* Are you serious with your above statement? How big is that data record. Are you using Super Computing? I've never seen a system that can handle this. Regards, Jothi On Thu, Aug 9, 2012 at 12:36 PM, mk

Re: Camel - ActiveMQ communication failes in Tomcat

2012-08-09 Thread Joe San
1. How to avoid repetition, I need to tell something to the pom ? Answer: scopeprovided/scope will instruct maven to not include the dependency in your war file. Regards, Jothi On Thu, Aug 9, 2012 at 11:02 AM, Gnanaguru S gnanaguru.sattanat...@wipro.com wrote: Hi Jiang, Thanks. I checked

Re: Camel - ActiveMQ communication failes in Tomcat

2012-08-08 Thread Joe San
Do you have the stack trace? Could you post that here? Regards, Jothi On Wed, Aug 8, 2012 at 11:47 AM, Gnanaguru S gnanaguru.sattanat...@wipro.com wrote: Hi I have my camel application running in Tomcat. It works perfect. In my existing route I wanted to add a ActiveMQ endpoint. But