Setting up SMS Router Project

2016-08-08 Thread Chathuraka Waas
Hi, I'm really new to apache camel and looking to implement a system to send and receive SMS from my application. While reading i came across the SMS Router project. I downloaded the project and changed the parameters in sms-router.properties file. But i can get it running. I tried using the Jav

Implementing SMS Router

2016-08-08 Thread Chathuraka wass
Hi guys, I'm really new to apache camel and looking to implement something like the SMS Router. My requirement is to be able to send and receive sms through my web application. I've already purchased details from a SMS gateway provider. I downloaded the SMS Router project and updated the entries

Re: CacheProducer requiring the same config params in java dsl

2016-08-08 Thread onders
any idea? -- View this message in context: http://camel.465427.n5.nabble.com/CacheProducer-requiring-the-same-config-params-in-java-dsl-tp5786061p5786180.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Spring boot + MockEndpointsAndSkip + DirtiesContext

2016-08-08 Thread Minh Tran
Hi, should I raise a jira for this? > On 5 Aug 2016, at 10:03 AM, Minh Tran wrote: > > Hi > > I am using Camel 2.17.2, Spring Boot 1.3.6 and seeing strange behaviour in my > unit tests. I’ve simplified it to the following example > > @RunWith(CamelSpringBootJUnit4ClassRunner.class) > @SpringA

Re: Default Exception handler and Dead Letter Channel mix

2016-08-08 Thread javi.noguera
>From http://camel.apache.org/loading-routes-from-xml-files.html When adding routes as shown on this page, the routes is isolated and cannot re-use any existing onException, intercept etc. -- View this message in context: http://camel.465427.n5.nabble.com/Default-Exception-handler-and-Dead-L

Re: Which type of error handling goes well with the .validate() DSL?

2016-08-08 Thread Matt Sicker
I ended up using onException(PredicateValidationException.class) in an abstract class that all my other routes inherit. These are all for REST DSL type things, so they all live in the same bundle/module as it is. I decided against the ErrorHandlerFactory OSGi service idea as it's possible that othe

Re: Dynamic bean name injection

2016-08-08 Thread Matt Sicker
Or https://camel.apache.org/message-endpoint.html for the toD() options. On 8 August 2016 at 17:07, Vitalii Tymchyshyn wrote: > Well, the valid options are listed here: > http://camel.apache.org/how-to-use-a-dynamic-uri-in-to.html > > Нд, 7 серп. 2016 о 14:21 souciance > пише: > > > Hi Matt, >

Re: Dynamic bean name injection

2016-08-08 Thread Vitalii Tymchyshyn
Well, the valid options are listed here: http://camel.apache.org/how-to-use-a-dynamic-uri-in-to.html Нд, 7 серп. 2016 о 14:21 souciance пише: > Hi Matt, > > I was unsure if you could inject the id from a header like the example you > show. I'll give it a try and if it works then that would a be

Re: Default Exception handler and Dead Letter Channel mix

2016-08-08 Thread Vitalii Tymchyshyn
Why can't you use a global onException? In the docs I see the limitation only for Java DSL. For XML DSL there is no -specific settings, so I assume one should be picked up. Best regards, Vitalii Tymchyshyn Пн, 8 серп. 2016 о 12:08 javi.noguera пише: > Hi, > > I'm using Camel 2.17 and what I'm

Re: CDI - Having 2 contexts within the same JVM

2016-08-08 Thread Brad Johnson
Which framework and version of Camel are you using? On Mon, Aug 8, 2016 at 1:47 PM, Rajith Muditha Attapattu wrote: > Hey All, > > Within the same JVM, there will be two camel contexts. > How do I mark a particular RouteBuilder to say it belongs to Context1 vs > Context2 ? > > Is this even possi

CDI - Having 2 contexts within the same JVM

2016-08-08 Thread Rajith Muditha Attapattu
Hey All, Within the same JVM, there will be two camel contexts. How do I mark a particular RouteBuilder to say it belongs to Context1 vs Context2 ? Is this even possible ? Regards, Rajith Muditha Attapattu

Re: Verify understanding...

2016-08-08 Thread Brad Johnson
That's what it looked like to me as well. It calls to a delegate and then makes a few other method calls. But as far as I know the route configuration is only called once and that is when that bean should get instantiated. I think. It's funny how very different this feels since I've been workin

Re: karaf issues with camel and activemq latest 2.17.2

2016-08-08 Thread Matt Sicker
I still get the good old errors in Karaf 3, though, with ActiveMQ 5.13.4. On 8 August 2016 at 08:11, Alexey Markevich wrote: > ActiveMQ 5.13.4 contains a fix for 'activemq-osgi defines wrong range for > org.springframework.osgi' [1] > > 1. https://issues.apache.org/jira/browse/AMQ-6271 > > > > O

Default Exception handler and Dead Letter Channel mix

2016-08-08 Thread javi.noguera
Hi, I'm using Camel 2.17 and what I'm looking is when there is an uncaught exception in any route after a redelivery go to a route to do some processing (inserts into a db, call a service, etc) and finally not handle the exception so the caller fails. I though about using a Dead Letter channel an

Re: Verify understanding...

2016-08-08 Thread Matt Sicker
When I last looked at the code, doing that creates a new BeanProducer that caches the bean. I might be misremembering the class names, but I do remember beans being cached when used by class reference. On 7 August 2016 at 20:30, Brad Johnson wrote: > Just wanted to verify that my understanding i

Re: @Produce vs @ProducerTemplate

2016-08-08 Thread Brad Johnson
Ugh, early Monday...That should be @EndpointInject of ProducerTemplate and not @ProducerTemplate. On Mon, Aug 8, 2016 at 9:02 AM, Brad Johnson wrote: > I use producer template quite a bit and it works well but it obviously is > a bit more coupled to the Camel API than using the @Produce with an

@Produce vs @ProducerTemplate

2016-08-08 Thread Brad Johnson
I use producer template quite a bit and it works well but it obviously is a bit more coupled to the Camel API than using the @Produce with an interface. The problem is I can't tell exactly when @Produce is going to work as I expect it to. Currently I have two routes, for example, one that makes a

Re: CDI before Camel 2.17?

2016-08-08 Thread Brad Johnson
Excellent. That's pretty much what I'm looking for since I recognize it is a matter of evolving toward that and not needing to jump into it whole hog. I can probably live with CamelTestSupport with out the CDI runner for the time being as well. Part of the problem is the underlying mechanisms are

Re: karaf issues with camel and activemq latest 2.17.2

2016-08-08 Thread Alexey Markevich
ActiveMQ 5.13.4 contains a fix for 'activemq-osgi defines wrong range for org.springframework.osgi' [1] 1. https://issues.apache.org/jira/browse/AMQ-6271 On Mon, 08 Aug 2016 00:11:17 +0300, Tim Jones wrote: Maybe related to this http://karaf.922171.n3.nabble.com/ActiveMQ-and-Camel-2-17-x-o

Re: Camel JPA + JTA Transaction (TomEE)

2016-08-08 Thread Antonin Stefanutti
Hi Dimitri, Thanks a lot for your feedback. I’m planning to work on a Camel CDI example that would cover Camel JMS and JTA. I’ll try to extend it to cover Camel JPA or to have a dedicated Camel CDI example for it as well. Meanwhile, you may want to contribute, if you think you have something g

Re: CDI before Camel 2.17?

2016-08-08 Thread Antonin Stefanutti
Hi Brad, The examples (camel-example-cdi.*) that are available in https://github.com/apache/camel/tree/master/examples should work to some great extent in Camel versions prior to 2.17.0. As these examples concentrate on the non-advanced features and the new version of Camel CDI introduced in 2

Re: Camel Suspend moving file to error folder.

2016-08-08 Thread fxthomas
Hello, I want the file to remain where it is even if the camel route is suspended. -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Suspend-moving-file-to-error-folder-tp5786039p5786152.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel Suspend moving file to error folder.

2016-08-08 Thread souciance
I am not sure if it works when the route gets suspended, but I assume you want to move it when an error occurs and then suspend the route, or? -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Suspend-moving-file-to-error-folder-tp5786039p5786145.html Sent from the Camel

Re: XmlRpc marshalling issue

2016-08-08 Thread Bernard Ligny
Apparently, the issue has been recently fixed in v2.18. See: https://issues.apache.org/jira/browse/CAMEL-10223 -- View this message in context: http://camel.465427.n5.nabble.com/XmlRpc-marshalling-issue-tp5777193p5786139.html Sent from the Camel - Users mailing list archive at Nabble.com.