CacheProducer requiring the same config params in java dsl

2016-08-05 Thread onders
One of my friend is having such an issue as stated on stackoverflow. Does anyone have an idea? http://stackoverflow.com/questions/37488705/apache-camel-cache-configuration-is-not-working/38728611#38728611 Thx -- View this message in context: http://camel.465427.n5.nabble.com/CacheProducer-re

Re: Camel-Gson - Missing requirement for gson annotations

2016-08-05 Thread Claus Ibsen
You can do a feature:info camel-gson to see what bundles it install. You can install gson manually using install -s mvn:com.google.code.gson/gson/2.7 And then install the camel-gson feature afterwards. It may be a little mistake in that Camel release. On Tue, Aug 2, 2016 at 12:00 AM, akpcnu

Re: Camel-Gson - Missing requirement for gson annotations

2016-08-05 Thread akpcnu
Thanks Claus, I will give it a try. -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Gson-Missing-requirement-for-gson-annotations-tp5785815p5786069.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Cut file

2016-08-05 Thread Brad Johnson
Were you able to get this to work? On Wed, Aug 3, 2016 at 4:30 PM, Brad Johnson wrote: > Definitely the easiest way to do this is to create a simple bean an > marshal the text. I don't know how many fields you have if it is just the > three or not but essentially if you create small Java bean y

Re: Camel JPA + JTA Transaction (TomEE)

2016-08-05 Thread dimas
Tried that, doesn't work. CDI is starting CamelContext even with context.setAutoStartup(false). SEVERE - Failed to create Producer for endpoint: Endpoint[jpa://com.kaltire.mix.wosess.model.ScanEvent]. Reason: javax.persistence.PersistenceException: No persistence providers available for "camel"

Re: Camel JPA + JTA Transaction (TomEE)

2016-08-05 Thread Romain Manni-Bucau
try sharing a sample with this issue on github with tomee-maven-plugin setup to reproduce it (mvn package tomee:run -> fails). Would be more relevant than guessing the actual issue. Romain Manni-Bucau @rmannibucau | Blog |

Re: Camel JPA + JTA Transaction (TomEE)

2016-08-05 Thread Antonin Stefanutti
Note that Camel CDI does not change the semantic of context.setAutoStartup(false), that is the routes within the context are not started, though the context itself is started so that validation can occur when the application initialise. > On 05 Aug 2016, at 20:08, Romain Manni-Bucau wrote: >

RE: Camel JPA + JTA Transaction (TomEE)

2016-08-05 Thread Shultz, Dmitry
It looks like org.apache.camel.cdi.CdiCamelExtension.afterDeploymentValidation() kicks up the Camel validation befiore TomEE is fully initialized. If there any way to disable this (or call validation manually later)? -Original Message- From: Antonin Stefanutti [mailto:anto...@stefanutti

RE: Camel JPA + JTA Transaction (TomEE)

2016-08-05 Thread Romain Manni-Bucau
org.apache.camel.cdi.CdiCamelExtension.active=false in conf/system.properties then redefine this extension - likely extend camel one to override afterDeploymentValidation and dont forget to register it through standard SPI file. Thinking to it using a servletcontextlistener if in a servlet contain

CDI before Camel 2.17?

2016-08-05 Thread Brad Johnson
Are there any good examples of how to use CDI with Camel before 2.17? Obviously that's a better option to go with and when the Fuse 6.3 release hits it's first milestone that's what I'll go to but until then I can use Camel 2.17 CDI test but have to use the older features with Fuse 6.2.1. Unless t

camel-jdbc typo?

2016-08-05 Thread Allan C.
Hi, I was going through camel-jdbc docs here . I noticed what seems to be a couple of minor typos in the doc. Header Description CamelJdbcRowCount If the query is a SELECT, query the row count is returned in this OUT header. CamelJdbcUpdateCount If the quer

RE: Camel JPA + JTA Transaction (TomEE)

2016-08-05 Thread Shultz, Dmitry
Can't set the org.apache.camel.cdi.CdiCamelExtension.active=false in conf/system.properties because there will be other apps deployed on the same TomEE and they have no problems (because they don't use any Camel JPA). Also can't override the afterDeploymentValidation() because it is private, in

Re: camel-jdbc typo?

2016-08-05 Thread Matt Sicker
I fixed the "kets" typo, can't tell if you're point out any others, though. On 5 August 2016 at 19:09, Allan C. wrote: > Hi, > > I was going through camel-jdbc docs here html>. > I noticed what seems to be a couple of minor typos in the doc. > > Header > > Descri

Re: camel-jdbc typo?

2016-08-05 Thread Allan C.
Apologies. I am using non plain text editor. The other one is "CamelJdbcParametes" header. I didn't look into the codes if the actual header is without an "r", but I supposed it is, as, correct me if I am wrong, the doc is generated from the code's annotation? Regards, Allan C. On Sat, Aug 6, 20

Re: camel-jdbc typo?

2016-08-05 Thread Matt Sicker
The docs are on Confluence. You can submit an ICLA to get edit permissions there. Though there is work being done to migrate the docs all to asciidoc files in the source code. On 5 August 2016 at 20:38, Allan C. wrote: > Apologies. I am using non plain text editor. > > The other one is "CamelJdb

Re: Bean injection?

2016-08-05 Thread Quinn Stevenson
I normally override createRegistry() and add my beans to the registry there - something like this \ @Override protected JndiRegistry createRegistry() throws Exception { JndiRegistry registry = super.createRegistry(); registry.bind( "bean-name", new MyBean()); return registry; }

Re: camel-jdbc typo?

2016-08-05 Thread Allan C.
Hi Matt, I've checked on the codes, the constant header value is "CamelJdbcParameters" and it is used in the exchange in header, thus it could be safely concluded that the typo only occurs at the doc. Regards, Allan C. On Sat, Aug 6, 2016 at 9:59 AM, Matt Sicker wrote: > The docs are on Conflu

Re: Bean injection?

2016-08-05 Thread Matt Sicker
Couldn't you use @BeanInject to put the RouteBuilder in your CBTS class, then return that bean in the createRouteBuilder() method? Just put the RouteBuilder in the blueprint file. On 5 August 2016 at 21:41, Quinn Stevenson wrote: > I normally override createRegistry() and add my beans to the reg

Re: camel-jdbc typo?

2016-08-05 Thread Matt Sicker
Alright, I've fixed that typo too: https://cwiki.apache.org/confluence/display/CAMEL/JDBC Not sure how often the html page is regenerated from the wiki, though. On 5 August 2016 at 22:00, Allan C. wrote: > Hi Matt, > > I've checked on the codes, the constant header value is > "CamelJdbcParamete

Re: camel-jdbc typo?

2016-08-05 Thread Allan C.
Sweet. Thanks and cheers. Regards, Allan C. On Sat, Aug 6, 2016 at 11:06 AM, Matt Sicker wrote: > Alright, I've fixed that typo too: > https://cwiki.apache.org/confluence/display/CAMEL/JDBC > > Not sure how often the html page is regenerated from the wiki, though. > > On 5 August 2016 at 22:00,

RE: Camel JPA + JTA Transaction (TomEE)

2016-08-05 Thread Romain Manni-Bucau
Le 6 août 2016 02:22, "Shultz, Dmitry" a écrit : > > Can't set the org.apache.camel.cdi.CdiCamelExtension.active=false in conf/system.properties because there will be other apps deployed on the same TomEE and they have no problems (because they don't use any Camel JPA). > Also can't override the