Re: select message via camel filter

2019-06-06 Thread James Carman
Try using a JMS selector on the URI: https://camel.apache.org/jms.html On Thu, Jun 6, 2019 at 1:03 AM Wang Yan wrote: > I used below example to select message. > although it can send matched message to toqueue > but not matched messages are also dequeued > What I want to achieve is only

Re: [DISCUSS] - Apache Camel 3 - A new tagline

2019-02-20 Thread James Carman
Apache Camel: Integrate All the Things! On Wed, Feb 20, 2019 at 6:23 AM Valdis Andersons wrote: > +1 for "Integrate Everything!" > > -Original Message- > From: Francois Papon [mailto:francois.pa...@openobject.fr] > Sent: 20 February 2019 10:19 > To: users@camel.apache.org > Subject: Re:

Re: Camel internships

2019-02-16 Thread James Carman
Anyone is welcome to contribute to Apache Camel, or any other ASF project at any time. The foundation also takes part in the Google Summer of Code every year: https://community.apache.org/gsoc.html If a student wishes to participate, I would encourage them to find a project that interests them

Re: unable to work apache.camel (latest version) with Spring.Boot 2.1.0 Release

2018-12-26 Thread James Carman
https://github.com/spring-projects/spring-boot/issues/13609 On Wed, Dec 26, 2018 at 10:33 AM James Carman wrote: > They disabled bean overriding by default in the latest spring boot. You > can re-enable it to fix as a workaround. > On Wed, Dec 26, 2018 at 9:09 AM Onder SEZGIN

Re: unable to work apache.camel (latest version) with Spring.Boot 2.1.0 Release

2018-12-26 Thread James Carman
They disabled bean overriding by default in the latest spring boot. You can re-enable it to fix as a workaround. On Wed, Dec 26, 2018 at 9:09 AM Onder SEZGIN wrote: > What's your jdk version? > It looks like you have missing jaxb dependencies > > On Tue, 25 Dec 2018, 16:19 Alper Kopuz > > Hello

Re: Best REST (JSON) component to use

2016-07-11 Thread James Carman
Do you really need Camel? Are you needing to do any "routing" or anything? Or, are you just looking to create a REST web service? If you don't need Camel, CXF is pretty simple to use for just building JAX-RS web services by itself. A lot of folks get caught up in trying to use Camel for

Re: Create 'to' http endpoint (with arguments) with bean

2015-08-21 Thread James Carman
Because beans aren't tied to camel and can be tested in isolation. On Fri, Aug 21, 2015 at 2:38 AM rwijngaa rino.van.wijngaar...@gmail.com wrote: Work-around: (works, but why use bean:xxx at all then? could then just replace it with a processor ;-) -- View this message in context:

Re: Issue with 'javax.annotation' when installing 'camel' followed by 'cxf' feature

2015-04-08 Thread James Carman
, 2015-04-07 3:49 GMT+02:00 James Carman ja...@carmanconsulting.com javascript:;: You need to update jre.properties to make sure you have the right version coming from the jre. What jdk? On Monday, April 6, 2015, Martin Lichtin lich...@yahoo.com.invalid wrote: In a Karaf 3.0.3

Re: Issue with 'javax.annotation' when installing 'camel' followed by 'cxf' feature

2015-04-08 Thread James Carman
Which JDK are you using to run Karaf? On Mon, Apr 6, 2015 at 3:17 PM, Martin Lichtin lich...@yahoo.com.invalid wrote: In a Karaf 3.0.3 container one cannot install feature 'camel' followed by installing 'cxf'. karaf@root() feature:repo-add

Re: Issue with 'javax.annotation' when installing 'camel' followed by 'cxf' feature

2015-04-06 Thread James Carman
You need to update jre.properties to make sure you have the right version coming from the jre. What jdk? On Monday, April 6, 2015, Martin Lichtin lich...@yahoo.com.invalid wrote: In a Karaf 3.0.3 container one cannot install feature 'camel' followed by installing 'cxf'. karaf@root()

Re: Apache camel monitor activemq

2015-03-25 Thread James Carman
Is it a Camel route that's consuming the messages eventually? If so, you can wiretap the messages off and log them if you want. http://camel.apache.org/wire-tap.html

Re: Apache camel monitor activemq

2015-03-25 Thread James Carman
of the camel route. The intercept process will copy the message if and only if this message is consume via the JMS component. Greg AUTRIC JBoss Middleware Consultant email : gautric __at__ redhat __dot__ com twitter : @gautric_io - Mail original - De: James Carman ja

Re: breadcrumbId does not survive http call

2015-02-10 Thread James Carman
The SOAP endpoint doesn't appear to be pulling headers from the HTTP part of the message, only the SOAP part. So, your breadcrumbId would have to be copied into the SOAP headers in order to propagate, it seems. On Tue, Feb 10, 2015 at 8:24 AM, rsteppac2 r...@steppacher.name wrote: James,

Re: breadcrumbId does not survive http call

2015-02-10 Thread James Carman
Yeah, I sent a follow-up message saying that. Do you absolutely require that the breadcrumb's match between the proxy and your web service? On Tue, Feb 10, 2015 at 12:16 PM, rsteppac2 r...@steppacher.name wrote: James, sorry, I did not want to make the impression of lightheartedly dismissing

Re: breadcrumbId does not survive http call

2015-02-10 Thread James Carman
What does your web service route look like? On Tuesday, February 10, 2015, rsteppac2 r...@steppacher.name wrote: Hello all, I am using Camel (2.14.1) to proxy calls to a web service and for the web service implementation itself (camel-spring-ws). I expected the breadcrumbId to be the same

Re: breadcrumbId does not survive http call

2015-02-10 Thread James Carman
In particular, you might be interested in line 107 of this class: https://github.com/apache/camel/blob/master/components/camel-spring-ws/src/main/java/org/apache/camel/component/spring/ws/filter/impl/BasicMessageFilter.java On Tue, Feb 10, 2015 at 7:07 AM, James Carman ja

Re: breadcrumbId does not survive http call

2015-02-10 Thread James Carman
You probably want to read the section The custom header and attachment filtering from here: http://camel.apache.org/spring-web-services.html On Tue, Feb 10, 2015 at 3:39 AM, rsteppac2 r...@steppacher.name wrote: Hi James, this is how the route looks like I used as an example: Ralf

Re: breadcrumbId does not survive http call

2015-02-10 Thread James Carman
It's an easy thing to test, right? Just copy/paste the default impl into your source and modify it NOT to remove the header. If you're right, the problem will still be there. If I'm right, your problem is fixed. It should take you 2 mins tops to wire this up, so you have very little to lose

Re: Is it possible to intercept camel proxy calls?

2015-02-09 Thread James Carman
To be fair, I just did exactly that for a client, so it was fresh on my mind at the time. :) Good luck! Glad to help. On Mon, Feb 9, 2015 at 2:09 PM, lutfijd lutf...@gmail.com wrote: went with the first suggestion, works like a charm, thanks. (why didn't i think of that) -- View this

Re: Is it possible to intercept camel proxy calls?

2015-02-08 Thread James Carman
You want to use camel to intercept? You don't have to proxy straight to the endpoint. You could create a new route with a new entry point (a direct endpoint or something) that terminates at the other endpoint and put your proxy in front of that. You could always wrap the proxy in your own

Re: Please remove me from this list

2014-06-13 Thread James Carman
Send an email to users-unsubscr...@camel.apache.org (as long as you're sending from the subscribed account). You'll get back an email asking you to reply to confirm you want to leave. On Fri, Jun 13, 2014 at 1:27 PM, Sealfon, Rebecca rebecca.seal...@citi.com wrote: Hi, Sorry to spam. I've

Re: LoadBalancing does not increaing performace

2014-01-31 Thread James Carman
You're also using direct endpoints in your load balancer. That's not going to help you, since it'll just stay on the same thread. Check out my example here and look at the output:

Re: Can I write a route that reads an arbitrary database table and stores it in a file?

2014-01-06 Thread James Carman
to implement that as Java code in a processor. I was hoping for some kind of dynamic route building that would allow me to use the jdbc or sql component. Thanks anyway On Fri, Jan 3, 2014 at 5:46 PM, James Carman ja...@carmanconsulting.comwrote: It's possible, but probably not advisable. :) from

Re: Can I write a route that reads an arbitrary database table and stores it in a file?

2014-01-03 Thread James Carman
It's possible, but probably not advisable. :) from(cxf:bean:foo).process(new Processor() { @Override public void process(Exchange exchange) throws Exception { // Query the database and build up the JSONifiable data structure here...

Re: Master Slave Camel-ActiveMQ

2013-12-31 Thread James Carman
ActiveMQ or WebSphere MQ? On Monday, December 30, 2013, Preethi wrote: Hi We are trying to setup Master slave for ActiveMQ using camel-context. Our current architecture is like this. 1. A camel route which subscribes to MQ topics (these MQ topics are IBM topics). 2. This camel

Re: Throttling by client ID?

2013-12-12 Thread James Carman
I have implemented a version of this logic here: https://github.com/jwcarman/camel-sandbox/blob/master/src/main/java/com/carmanconsulting/sandbox/camel/throttle/ClientThrottler.java There's a unit test here:

Re: ISO8583

2013-12-09 Thread James Carman
Camel can support any binary format you want. It doesn't have built-in support for these, though. On Mon, Dec 9, 2013 at 5:12 AM, Manoranjitham G manoranjitha...@polarisft.com wrote: Does camel support ISO8583,ISO20022,EBCDIC dataformats? -- View this message in context:

Re: Content Based Routing with Camel

2013-12-09 Thread James Carman
Perhaps you can deserialize the object(s) first before doing CBR (using a simple expression)? Or, do you have to detect what type they are first and then route to the appropriate deserializer? On Mon, Dec 9, 2013 at 3:15 AM, madusanka madusankabalasoor...@gmail.com wrote: Hi, I know that

Re: Content Based Routing with Camel

2013-12-09 Thread James Carman
He would need to use a Predicate for CBR. Either way, it'd be easy to do, as you pointed out, since it's just a library. :) Or, if the destination can be calculated based on something in your JSON (using an expression), you could do something like this:

Re: hawtio camel route layout/UI question.

2013-11-18 Thread James Carman
Perhaps you should send this email to their mailing list: http://hawt.io/community/index.html On Mon, Nov 18, 2013 at 2:22 PM, arparikh21 ashish.par...@cbeyond.net wrote: We use spring DSL for our camel route definitions. I just integrated hawtio with our dev environment and it is awesome..

Re: How to contribute to documentation?

2013-11-01 Thread James Carman
It helps when you have someone on the Camel PMC that does the ICLA filings. :) On Fri, Nov 1, 2013 at 9:35 AM, Carsten Ringe cars...@kopis.de wrote: Am 2013-11-01 09:33, schrieb Claus Ibsen: And when that does, then create an account on the Camel wiki. eg click that edit button in the

Re: Best way to consuming same queue from two brokers?

2013-10-23 Thread James Carman
The NoB should be routing your messages for you, shouldn't it? On Wed, Oct 23, 2013 at 1:52 PM, dunnlow dunn...@yahoo.com wrote: Using Camel 2.10.3 My question: What is the best way to consume msgs from multiple brokers/queues and feed those messages through a single route? Explanation:

Re: Best way to consuming same queue from two brokers?

2013-10-23 Thread James Carman
overcomplicating it? Thanks again. James Carman wrote The NoB should be routing your messages for you, shouldn't it? -- View this message in context: http://camel.465427.n5.nabble.com/Best-way-to-consuming-same-queue-from-two-brokers-tp5742100p5742105.html Sent from the Camel - Users mailing list

Re: Being able to post and reveice email notification to subscribed posts

2013-10-17 Thread James Carman
I don't think it's possible. You could alternatively subscribe to the 'digest' notifications (once per day). Send an email to users-h...@camel.apache.org to get instructions on how to do that. James On Thu, Oct 17, 2013 at 4:47 AM, dmytro.puzhay dmytro.puz...@gmail.com wrote: Hi, thanks for

Re: Being able to post and reveice email notification to subscribed posts

2013-10-17 Thread James Carman
Only if you want to get them answered ;) On Thu, Oct 17, 2013 at 9:44 AM, dmytro.puzhay dmytro.puz...@gmail.com wrote: Hi James, thanks for answer. It looks like now I only get notifications for topics I am subscribed to. Does one still have to moderate my posts? James Carman wrote I don't

Re: Can't move excel files correctly, ActiveMQ bug?

2013-10-16 Thread James Carman
On what platform are you running your test? I just ran a test using your input file using two routes: from(file://target/inbox).to(jms:queue:myfiles); from(jms:queue:myfiles).to(file://target/outbox); The file was copied from inbox to outbox and I was able to open the file in excel. If you

Re: Can't move excel files correctly, ActiveMQ bug?

2013-10-16 Thread James Carman
I'm on OSX too. I ran just inside a test case. https://github.com/jwcarman/camel-sandbox/blob/master/src/test/java/com/carmanconsulting/sandbox/camel/FileCopyTest.java On Wed, Oct 16, 2013 at 9:27 AM, niels_s steni...@gmail.com wrote: Hi James, I'm running Mac OS X 10.8.4 with ServiceMix

Re: Can't move excel files correctly, ActiveMQ bug?

2013-10-16 Thread James Carman
There are two routes created by the same route builder. Yes, I was able to open the file from the outbox folder, successfully using Excel for Mac. Did you try downloading my example and running it yourself? On Wed, Oct 16, 2013 at 9:56 AM, niels_s steni...@gmail.com wrote: James, did you try

Re: Can't move excel files correctly, ActiveMQ bug?

2013-10-16 Thread James Carman
I added a spring-based test. Do a rebase. On Wed, Oct 16, 2013 at 10:38 AM, niels_s steni...@gmail.com wrote: Yes, I cloned your repo, got it running and it worked fine. In the meanwhile I created a spring DSL project you can find it here: https://github.com/niels-s/camel-spring-test

Re: Being able to post and reveice email notification to subscribed posts

2013-10-16 Thread James Carman
Send email to users-subscr...@camel.apache.org On Wed, Oct 16, 2013 at 2:38 PM, rpcat rpcata...@gmail.com wrote: yes, from your email that you have used to create your nabble login, send an email to users@camel.apache.org with the subject subscribe -- View this message in context:

Re: Being able to post and reveice email notification to subscribed posts

2013-10-16 Thread James Carman
Did you send the confirmation email? On Wed, Oct 16, 2013 at 2:46 PM, dmytro.puzhay dmytro.puz...@gmail.com wrote: Please read my post, I've written there that I already subscribed to users-subscr...@camel.apache.org James Carman wrote Send email to users-subscribe@.apache On Wed, Oct

Re: JMS(local) -to- JMS(remote) bridge

2013-10-15 Thread James Carman
You can't do a network of brokers with ActiveMQ? I know you say you may have to switch to Hornet, but why? Is that the corporate standard or do you have concerns about ActiveMQ's viability as a production platform? On Tue, Oct 15, 2013 at 5:31 PM, brenuart bertrand.renu...@itma.lu wrote:

Netty: messages not propagated back from netty producer

2013-10-13 Thread James Carman
How is the component going to correlate the request with the response? On Sunday, October 13, 2013, javakurious wrote: Upgraded the camel to 2.12.1 . No effect ! :( Here is the reiteration of the issue and a couple of additional observations: Route: I am getting a webservice request

Re: Netty: messages not propagated back from netty producer

2013-10-13 Thread James Carman
I guess there's also the concept of what makes up a response. How does the endpoint know how many bytes are included in the response message from the server? On Sun, Oct 13, 2013 at 8:42 PM, javakurious javakuri...@gmail.com wrote: If I comment out the netty component, then everything works

Re: Help with Dynamic route

2013-10-11 Thread James Carman
Have you tried just using a JMS topic? On Fri, Oct 11, 2013 at 6:40 AM, gudiseashok gudise.as...@gmail.com wrote: Hi I have a requirement, I want start some routes and leave them with polling, after some time I want to add some more like that kind. example from uri=direct:start multicast

Re: Help with Dynamic route

2013-10-11 Thread James Carman
There is a test case here: https://github.com/jwcarman/camel-sandbox Which will show you how to do JMS in camel using a topic. It's just a sandbox, but it sets up what you need to play with JMS/camel using ActiveMQ On Fri, Oct 11, 2013 at 9:56 AM, gudiseashok gudise.as...@gmail.com wrote: Hi

Re: How do I convert the map returned to Camel into JSON?

2013-10-11 Thread James Carman
Try converting the body to a String first (since it looks like it's a byte[]), then log just the body. On Fri, Oct 11, 2013 at 2:19 PM, erj2code p...@tetraconcepts.com wrote: This seems like such a simple thing to do, yet I can't seem to find it in the Camel documentation. Related to my last

Re: How do I convert the map returned to Camel into JSON?

2013-10-11 Thread James Carman
Try something like this: camel:route camel:from uri=timer://hello.world.request.timer?fixedRate=trueamp;period=1 / camel:to uri=log:hello.world.request?level=INFO?showAll=true / camel:bean ref=helloWorld / camel:marshal ref =jack/ camel:convertBodyTo type=java.lang.String /

Re: How do I convert the map returned to Camel into JSON?

2013-10-11 Thread James Carman
No problem. Happy camel riding! On Fri, Oct 11, 2013 at 3:38 PM, erj2code p...@tetraconcepts.com wrote: Thanks, that worked! -- View this message in context: http://camel.465427.n5.nabble.com/How-do-I-convert-the-map-returned-to-Camel-into-JSON-tp5741370p5741377.html Sent from the Camel

Re: Consume files periodically or on demand

2013-10-09 Thread James Carman
Try pollEnrich() and have two ways of kicking off your route, one would be with a timer of some sort (the every 8 hours). The other would be a JMS queue or direct or seda or something. On Wed, Oct 9, 2013 at 8:50 AM, christoffer christof...@k15t.com wrote: Hi, I have a route which uses the

Re: Throttling by client ID?

2013-10-09 Thread James Carman
On Wed, Oct 9, 2013 at 4:27 PM, Christian Müller christian.muel...@gmail.com wrote: The solution could be something like: from(...) .throttle(100, header(foo)) .to(...); header(foo) is only an example for an expression... Yes, that's the idea. Sounds like a useful enough feature,

Re: Throttling by client ID?

2013-10-08 Thread James Carman
this? A summary of a whiteboard implementation would be sufficient. -Original Message- From: jcar...@carmanconsulting.com [mailto:jcar...@carmanconsulting.com] On Behalf Of James Carman Sent: Monday, October 07, 2013 8:08 AM To: users@camel.apache.org Subject: Re: Throttling

Throttling by client ID?

2013-10-08 Thread James Carman
) On Tue, Oct 8, 2013 at 6:57 AM, James Carman ja...@carmanconsulting.com wrote: The idea would be basically what Claus said. You'd have an expression you use in order to correlate messages with one another. This expression would be evaluated against incoming messages and the result would

Re: Apache Camel Components Poster - (FREE) PDF, JPG URL Links

2013-10-08 Thread James Carman
Many thanks for your efforts! Great job! On Tuesday, October 8, 2013, Robert James Liguori wrote: Apache Camel 2.12.1 and External Components Poster FREE PDFs http://gliesian.com/camel/ApacheCamelComponents.pdf http://gliesian.com/camel/ApacheCamelComponentsCropMarksAndBleed.pdf FREE JPG

Re: Throttling by client ID?

2013-10-07 Thread James Carman
I actually had to implement that on a whiteboard when interviewing for a certain tech company. It's not terribly difficult to implement such a beast. On Mon, Oct 7, 2013 at 7:59 AM, Daniel Bularzik d...@akc.org wrote: We’re looking to enforce a per-client SLA; notably, right now we’re

Re: How to programmatically find next downstream endpoint in a route.

2013-10-07 Thread James Carman
the next down-stream endpoint in a route... On 10/4/2013 1:38 PM, James Carman wrote: Does a splitter not work for you in this case? On Fri, Oct 4, 2013 at 1:28 PM, Chris cwolf.a...@gmail.com wrote: Hello, I implemented a bean whose method accepts an exchange with a single message

Re: How to programmatically find next downstream endpoint in a route.

2013-10-04 Thread James Carman
Does a splitter not work for you in this case? On Fri, Oct 4, 2013 at 1:28 PM, Chris cwolf.a...@gmail.com wrote: Hello, I implemented a bean whose method accepts an exchange with a single message, then generates multiple messages intended for the next endpoint down-stream, along the lines of

Re: The Camel Components Poster - PDF - FREE

2013-10-04 Thread James Carman
Thanks, Shane! We appreciate your guidance. James On Fri, Oct 4, 2013 at 5:12 PM, Shane Curcuru a...@shanecurcuru.org wrote: (Please note the mix of mailing lists) The most important thing is that Apache product brands are referred to by their full name - i.e. Apache Camel - in at least

Re: OSGI marshal and bindy

2013-10-03 Thread James Carman
as we depend on Spring and blueprint can be used until now ;-) On Mon, Sep 30, 2013 at 1:53 PM, James Carman ja...@carmanconsulting.comjavascript:; wrote: You should really consider using camel-blueprint. This is the best way to use Camel in an OSGi environment. You will run into quite

Re: Apache Camel - war project How to process the Queue and set to another queue?

2013-10-03 Thread James Carman
That second route with no to is stealing your messages, I'd guess. I am actually surprised you're able to create a route with no to. I'm curious to play with that phenomenon in a test case. On Thu, Oct 3, 2013 at 11:36 AM, Andreas Gies andr...@wayofquality.de wrote: Hi, it might be me, but I

Re: Apache Camel - war project How to process the Queue and set to another queue?

2013-10-03 Thread James Carman
bean is a valid route... Best, Christian Am 03.10.2013 17:46 schrieb James Carman ja...@carmanconsulting.com: That second route with no to is stealing your messages, I'd guess. I am actually surprised you're able to create a route with no to. I'm curious to play with that phenomenon

Re: The Camel Components Poster - PDF - FREE

2013-10-03 Thread James Carman
You might want to run that thing by the trademarks folks if you're going to be selling it or having folks print it. You might need to have it say Apache Camel. On Thu, Oct 3, 2013 at 5:55 PM, Raul Kripalani r...@evosent.com wrote: Robert, Many thanks for this fantastic contribution to the

Re: The Camel Components Poster - PDF - FREE

2013-10-03 Thread James Carman
start telling people to print it or buy it or whatever. Thanks, James Carman, Assistant Secretary Apache Software Foundation On Wed, Oct 2, 2013 at 9:27 AM, gliesian glies...@yahoo.com wrote: The Camel Components Poster - PDF - FREE http://gliesian.com/camel

Re: Apache Camel - war project How to process the Queue and set to another queue?

2013-10-03 Thread James Carman
* *Author of: Hardcore Java (2003) and Maintainable Java (2012)* *LinkedIn: **http://www.linkedin.com/pub/robert-simmons/40/852/a39* On Thu, Oct 3, 2013 at 4:59 PM, James Carman ja...@carmanconsulting.comjavascript:; wrote: Are you sure? I thought bean was only a producer (or processor

Re: Log dynamic filename

2013-10-02 Thread James Carman
This is related to a security vulnerability which was reported recently. Can you try changing to a simple expression rather than a constant? On Wed, Oct 2, 2013 at 7:49 AM, c.spiegel c.spie...@waldmann.com wrote: Hi there, I have a route defined as follows: route id=bla from uri=

Re: Need Help in configuring a router to run to run parallally every 30 minutes

2013-10-02 Thread James Carman
Are you looking to use the competing consumers pattern? If so, then they'll multicast themselves. On Wed, Oct 2, 2013 at 11:54 AM, gudiseashok gudise.as...@gmail.com wrote: Hi Hilderich The config which you gave is looks like perfect match for my requirement, now only doubt I have is since

Re: Apache Camel - war project How to process the Queue and set to another queue?

2013-10-01 Thread James Carman
Have you tried turning up logging to see what's going on? Camel gets very descriptive at DEBUG level On Mon, Sep 30, 2013 at 11:17 AM, kosalads kosal...@gmail.com wrote: Hi James, So how do we handle the below scenario with Camel? -- View this message in context:

Re: OSGI marshal and bindy

2013-09-30 Thread James Carman
You should really consider using camel-blueprint. This is the best way to use Camel in an OSGi environment. You will run into quite a bit of troubles to get everything working right if you try to do it manually. On Mon, Sep 30, 2013 at 7:06 AM, mabels meno.ab...@adviser.com wrote: Hello, i

Re: Apache Camel - war project How to process the Queue and set to another queue?

2013-09-30 Thread James Carman
Regardless of whether it's for an internal application, it' still not wise to use a bean payload on a JMS queue. You can run into all sorts of problems with serialization and you're making it virtually impossible for non-java code to talk to your services. On Mon, Sep 30, 2013 at 6:58 AM,

Re: Apache Camel - war project How to process the Queue and set to another queue?

2013-09-30 Thread James Carman
We're not saying you won't be able to do it. It will work, but you will run into troubles down the road with your application and it makes it less flexible. Have you tried playing with a unit test (using embedded ActiveMQ)? It's really easy to set up. On Mon, Sep 30, 2013 at 8:50 AM, kosalads

Re: Extend Camel Loop to support While Behavior

2013-09-30 Thread James Carman
Patches (with unit tests) are always welcome. On Mon, Sep 30, 2013 at 9:53 AM, Dale King d...@jadabeauty.com wrote: There is a JIRA from a year or 2 ago that has no progress. This would be trivial to add. The work around is to use distribution list on a header and when you want to exit set

Re: CamelTestSupport Needs a New Method

2013-09-28 Thread James Carman
Patch submitted. https://issues.apache.org/jira/browse/CAMEL-6792 On Sat, Sep 28, 2013 at 4:40 AM, Claus Ibsen claus.ib...@gmail.com wrote: Hi Yeah the getMockEndpoint with the 2nd boolean is much better On Fri, Sep 27, 2013 at 3:16 PM, Jan Matèrne (jhm) apa...@materne.de wrote: Instead

Re: Error when adding dataFormats in camel route file

2013-09-12 Thread James Carman
Put it inside the camelContext element. It's from the same namespace. On Thu, Sep 12, 2013 at 10:21 AM, vsmahesh aneesh_...@yahoo.co.in wrote: Hi all, When I am using dataFormats in my route I am getting the error [INFO] Finished at: Thu Sep 12 17:16:32 EEST 2013 [INFO] Final Memory:

Re: Camel JBDC : Connection pooling

2013-09-11 Thread James Carman
That will do pooling, yes. On Wed, Sep 11, 2013 at 10:20 PM, myhumandreams kv.prajeesh.rajas...@gmail.com wrote: bean id=springDataSource class=org.apache.commons.dbcp.BasicDataSource destroy-method=close property name=url value=jdbc:oracle:thin:@localhost:1521:SPRING_TEST / property

Re: XMPP URI FORMAT MISSING HASH (#) USAGE?

2013-09-11 Thread James Carman
Robert, The # isn't a special camel thing. It's actually part of the name of the channel. For instance, our IRC channel name is #camel. James On Wed, Sep 11, 2013 at 12:26 PM, gliesian rob...@gliesian.com wrote: Consider the URI Scheme definition for fragment from

Re: Can I use from =direct:abc* for wildcard routing...

2013-08-31 Thread James Carman
Why not just route it to direct://start/event and then the receiving route can figure out what to do with it? You're not doing any conditional routing here anyway.

Re: IntelliJ plugin for Camel / Blueprint / Karaf

2013-08-26 Thread James Carman
Very cool. Thanks for the hard work, Alan! I'll check it out. On Mon, Aug 26, 2013 at 8:11 AM, AlanFoster a...@alanfoster.me wrote: Hey guys, Just letting you know that if you're doing any sort of Blueprint Camel development using IntelliJ that I've just released a new plugin to help with

Re: Numbers of lines in a flat file

2013-07-31 Thread James Carman
http://camel.apache.org/splitter.html On Wed, Jul 31, 2013 at 8:50 PM, jabe jabegr...@gmail.com wrote: How did you get the number of lines from header? Which Camel component did you use? -- View this message in context:

Re: Is it Camel Bug?

2013-07-29 Thread James Carman
Why do you need Camel here at all? If you're just calling a web service, that's simple enough using just cxf. On Monday, July 29, 2013, SyedBhai wrote: Hello Willem, Yes. This is what I wanted. When I add the option synchronous=true it shutsdown gracefully immediately. Thanks, Syed.

Re: Invoking Servlet from Camel

2013-07-29 Thread James Carman
If you just set the query string using the header Exchange.HTTP_QUERY, then it will use GET automatically. Also, if you just use an expression (as Claus was suggesting) to bind the body of the message to the query parameter, it will use GET automatically also. On Mon, Jul 29, 2013 at 6:58 AM,

Re: Is it Camel Bug?

2013-07-29 Thread James Carman
Well, you said all you needed to do was call a web service. If that's all you need, Camel is overkill. Now, if you have other points of integration, sure Camel's the right choice. On Mon, Jul 29, 2013 at 2:48 PM, SyedBhai syedahmed.c...@hotmail.com wrote: Sir, You asked why do you need

Re: Is it Camel Bug?

2013-07-27 Thread James Carman
We see the same messages you do in our Tomcat logs. However, Tomcat shuts down just fine and there are no memory leaks. Now, we don't stop/start the web application all the time using the manager, though. In production, we usually shut the entire Tomcat instance down and bring it back up

Re: Camel Scala DSL and IntelliJ

2013-02-11 Thread James Carman
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 using intelli. I have a project created and tried configuring a simple route

Re: Does Camel JPA component implement it's own connection pooling?

2013-02-01 Thread James Carman
insert and commit and close it at the end (I'm using DriverManagerDataSource just to make sure it won't pool). On Jan 31, 2013, at 9:14 PM, James Carman jcar...@carmanconsulting.com wrote: Try this: JpaTransactionManager transactionManager = new JpaTransactionManager(factory

Re: Google Plus - Apache Group

2013-02-01 Thread James Carman
Please don't use this Google Plus community for project-related discussions (design discussions, etc.), though. That needs to be on the mailing lists in order to keep the community in-the-loop. On Feb 1, 2013, at 8:59 AM, Charles Moulliard ch0...@gmail.com wrote: Hi, For our

Re: Google Plus - Apache Group

2013-02-01 Thread James Carman
A picture of a camel with a red hat on with the words Apache Camel. Really? On Feb 1, 2013, at 8:59 AM, Charles Moulliard ch0...@gmail.com wrote: Hi, For our supporters/fans and people who belong in Apache Camel project, I would like to inform you that we have created a Google Plus

Re: Google Plus - Apache Group

2013-02-01 Thread James Carman
:09 AM, James Carman jcar...@carmanconsulting.com wrote: A picture of a camel with a red hat on with the words Apache Camel. Really? On Feb 1, 2013, at 8:59 AM, Charles Moulliard ch0...@gmail.com wrote: Hi, For our supporters/fans and people who belong in Apache Camel project, I would

Re: Does Camel JPA component implement it's own connection pooling?

2013-02-01 Thread James Carman
from OpenJPA and I tried the default, the log4j and slf4j backends - all to no avail... As for my final implementation, I think this latest code from you is the cleanest (for my purposes). Again, thanks so much for the help. -Chris On Fri, Feb 1, 2013 at 6:32 AM, James Carman jcar

Re: Does Camel JPA component implement it's own connection pooling?

2013-02-01 Thread James Carman
implementation, I think this latest code from you is the cleanest (for my purposes). Again, thanks so much for the help. -Chris On Fri, Feb 1, 2013 at 6:32 AM, James Carman jcar...@carmanconsulting.com wrote: Chris, Here's my complete class: public class JpaTest { public static

Re: CAMEL + IBM MQ7 + Spring3.0

2013-02-01 Thread James Carman
I don't think that was what they were asking. You shouldn't have to use a specific component for each topic. On Feb 1, 2013, at 12:19 PM, am.raheem am.rah...@gmail.com wrote: Hi, It was my problem. I was using same jms component for three different topics. That's why i was getting that

Re: CAMEL + IBM MQ7 + Spring3.0

2013-02-01 Thread James Carman
there will be SUBSCRIPTION_IN_USE error will come. So, i am using different component for every topic. On Fri, Feb 1, 2013 at 11:23 AM, James Carman-2 [via Camel] ml-node+s465427n5726789...@n5.nabble.com wrote: I don't think that was what they were asking. You shouldn't have to use a specific component

Re: Does Camel JPA component implement it's own connection pooling?

2013-01-31 Thread James Carman
(); this.entityManager.clear(); } public void rollback() { this.entityManager.getTransaction().rollback(); } On Thu, Jan 31, 2013 at 12:34 PM, James Carman ja...@carmanconsulting.com wrote: What does your route look like? On Thu, Jan 31, 2013 at 11:58 AM

Re: Does Camel JPA component implement it's own connection pooling?

2013-01-31 Thread James Carman
JPA APIs. http://static.springsource.org/spring/docs/3.1.x/javadoc-api/org/springframework/orm/jpa/JpaTemplate.html I am using OpenJPA-2.1 Thanks, -Chris On Thu, Jan 31, 2013 at 2:29 PM, James Carman ja...@carmanconsulting.com wrote: Well, you're managing your entity manager yourself

Re: Does Camel JPA component implement it's own connection pooling?

2013-01-31 Thread James Carman
EntityManager.getTransaction().commit(); is called - is when all those 120 connections are opened. (Again, this is in my standalone JPA test scaffold, not including Camel now) I have been communicating this issue on the OpenJPA list... On Thu, Jan 31, 2013 at 2:45 PM, James Carman ja...@carmanconsulting.com wrote

Re: Does Camel JPA component implement it's own connection pooling?

2013-01-31 Thread James Carman
... } }); } On Thu, Jan 31, 2013 at 4:42 PM, James Carman jcar...@carmanconsulting.com wrote: Try using TransactionTemplate. On Jan 31, 2013, at 4:19 PM, Chris Wolf cwolf.a...@gmail.com wrote: James, As per your suggestion, I let Spring manage the transactions

Re: JPA component throwing Attempt to cast instance [Ljava.lang.Object

2013-01-16 Thread James Carman
Are you using the same version of OpenJPA to enhance your classes that you're using at runtime? On Tue, Jan 15, 2013 at 5:11 PM, Chris Wolf cwolf.a...@gmail.com wrote: Babak, Thanks for the detailed reply, but if you look at my first post on this thread, I mentioned that that error message

Re: JPA component throwing Attempt to cast instance [Ljava.lang.Object

2013-01-16 Thread James Carman
was my not having used the consumer.resultClass option. Thanks, -Chris On Wed, Jan 16, 2013 at 6:51 AM, James Carman ja...@carmanconsulting.com wrote: Are you using the same version of OpenJPA to enhance your classes that you're using at runtime? On Tue, Jan 15, 2013 at 5:11 PM

Re: Proxying of content repository Web Services

2012-12-18 Thread James Carman
You just need a cxf endpoint to begin your route. Then do whatever you want to the message (or nothing) and send it to the cm system (via cxf also). On Monday, December 17, 2012, spatil4572 wrote: Hi, I am a newbie and need help. We have a client application that communicates with a

Re: Multicast or pipeline? Newbie question

2012-12-06 Thread James Carman
I would say you don't need anything really special here. Something like this should suffice: from(jms:queue:input).beanRef(beanOne, methodOne).beanRef(beanTwo, methodTwo); On Thu, Dec 6, 2012 at 10:58 AM, Mike Stroming mstro...@gmail.com wrote: Hi all, Another newbie question, if you don't

Re: Follow on to configuring persistence with java not spring xml

2012-11-20 Thread James Carman
Yes, that's essential: https://github.com/jwcarman/camel-transaction/blob/master/src/test/java/com/carmanconsulting/camel/AbstractRouteBuilderTest.java On Tue, Nov 20, 2012 at 1:43 PM, Babak Vahdat babak.vah...@swissonline.ch wrote: Hi You get null as Spring does one step more than you,

  1   2   >