Re: camel-test-cdi + OpenEJB fails on weld dependency?

2016-06-01 Thread Romain Manni-Bucau
Yes, classpath deployment of openejb/tomee uses: 1- not excluded jars (exclusions.list) 2- jars with beans.xml or scoped beans are scanned (default mode of CDI 1.1) 3- packages incldued in scan.xml if existing Note to answer your javaee-api question, tomee still provides its own shade at org.apach

RE: HTTPS Component with SMTP Mail

2016-06-01 Thread Siano, Stephan
Hi, Both your log statements are processed, so I guess the smtp endpoint is also executed. What you should be aware of is that the HTTP endpoint will forward all HTTP headers as camel headers (and those might influence your SMPT endpoint). What I would try first in your place was to add a remo

Updating datasource at runtime with camel-sql

2016-06-01 Thread Atsushi Matsumoto
Hi, Is it possible to update datasource that SqlComponent refers to at runtime? The datasource I want to update is bound to "TestDB" by registry in CamelContext as follows: BasicDataSource datasource = new BasicDataSource(); datasource.setUrl("jdbc:mysql://hostname/dbname?user=user&password=pas

Re: File2 Consumer - Multiple file problem

2016-06-01 Thread Ranx
That depends on a lot of other processing issues. Are you actually reading the contents of the text files or just ftp'ing them to a remote location? Do you have any control over the remote location? The reason I ask is you could have two routes set up. The first might look for *.txt files and F

RE: camel-test-cdi + OpenEJB fails on weld dependency?

2016-06-01 Thread dimas
Included beans.xml in the resources/META-INF/ and it works now :) Cheers, Dmitry From: Shultz, Dmitry Sent: June-01-16 3:49 PM To: 'Romain Manni-Bucau [via Camel]' Subject: RE: camel-test-cdi + OpenEJB fails on weld dependency? Thanks Romain, changing from org.apache.openejb.javaee-api:6.0-6

Re: File2 Consumer - Multiple file problem

2016-06-01 Thread bwest
Thanks for the reply! Although I do have one question. The .done file sounds like a good way to trigger a batch. However, if I have multiple processes writing files and .done files into my polled directory. Does camel lock the .done file so that another process cannot come in and overwrite it?

RE: camel-test-cdi + OpenEJB fails on weld dependency?

2016-06-01 Thread dimas
Thanks Romain, changing from org.apache.openejb.javaee-api:6.0-6 to javax.javaee-api:7.0 fixed the exception. Now test is running, however there is another problem (I'm having some real fun here:) - it can't find any cdi bean, not sure if it's related to the javaee groupId change from org.apa

Re: camel-test-cdi + OpenEJB fails on weld dependency?

2016-06-01 Thread Romain Manni-Bucau
Hi, about JSF: you can exclude deltaspike extension - camel shouldn't require it AFAIK about bval: ensure you use javaee-api or bval 1.1 API. In your case you have a bval 1.0 API in the classpath. Romain Manni-Bucau @rmannibucau | Blog

RE: camel-test-cdi + OpenEJB fails on weld dependency?

2016-06-01 Thread Shultz, Dmitry
Added following dependencies to the pom file (not sure if it's the right way to go though): javax.faces javax.faces-api 2.2 test And it fixed the original exception, but now I'm getting this: java.lang.RuntimeException: Error instantiating class org.apache.bva

camel-test-cdi + OpenEJB fails on weld dependency?

2016-06-01 Thread dimas
Hi All, Here is my app environment: Camel-CDI 2.17.1, TomEE/openejb-core 7.0.0. I'm trying to test the app using camel-test-cdi and getting this exception: java.lang.RuntimeException: Error instantiating class org.apache.deltaspike.jsf.impl.scope.mapped.MappedJsf2ScopeExtension at org.jb

Camel blueprint: Unable to load class org.apache.camel.builder.LoggingErrorHandler

2016-06-01 Thread Alex Soto
Hello, First, my apologies if this is the wrong forum. I have a bundle with two blueprint XML files, one contains a Camel context, and another one defines beans. I want to share the beans across other Camel contexts, but for now, I am only testing with one. In the beans XML, I am defining

HTTPS Component with SMTP Mail

2016-06-01 Thread Vince Iglehart
Hello, I am developing an integration that reads from an https4 url and sends the response to an SMTP endpoint. However the SMTP endpoint never receives the response. Here is my route definition. from("timer:fire?period=1") .to("https4://") .convertBodyTo(String.class).to("lo

Re: camel-sql - SQL IN Query issue (2.17.1)

2016-06-01 Thread imranrazakhan
HI Claus, thanks our suggestions worked perfect, i am currently using ojdbc6 version 12.1.0.2, will verify if its fixed in any other driver. Regards, -- View this message in context: http://camel.465427.n5.nabble.com/camel-sql-SQL-IN-Query-issue-2-17-1-tp5783264p5783350.html Sent from the

Re: It IS possible to import routeContext in OSGi Blueprint

2016-06-01 Thread owain
Thanks guys for the reply. This has really helped me tidy my unit tests up. I hadn't realised that I could load xml from the test resources directory from getBlueprintDescriptor(). Interestingly loadConfigAdminConfigurationFile() needs the full path from the module route. i.e. return ne

Re: Warning out on naming Blueprint property-placeholder persistent-id="stuff-test"

2016-06-01 Thread Owain McGuire
@alexey thanks for pointing that out. I have added a bit more info to the ticket. O. ![](https://link.nylas.com/open/ez36v71u7uh7qiundny4ougdd/local-ab909858-a0c6) On Jun 1 2016, at 8:02 am, Alexey Markevich wrote: > Similar issue: https://issues.apache.org/jira/bro

Re: camel-sql - SQL IN Query issue (2.17.1)

2016-06-01 Thread Claus Ibsen
Hi I wonder if its the Oracle JDBC driver issue, that it does not return correct value for number of parameters in the prepared statement. There is an option parametersCount you can use to set a fixed value if the JDBC driver cannot return correct data. See its documentation http://camel.apache.o

EJB Consumer Endpoint

2016-06-01 Thread Bernard Christ Redahan
Hello, I wish to use an EJB as a consumer endpoint. I know I cant do this using the ejb component as the endpoint is producerOnly=true. The plan is to make remote calls to the EJB and have this as the event driven consumer. I am aware I could just have the EJB external to camel sending direct inpu

Re: Came CDI tests start non-test routes

2016-06-01 Thread Antonin Stefanutti
Hi Anton, The Camel context beans managed by Camel CDI are automatically instantiated and started when the container is bootstrapped. Hence all the routes bound to them are started by default as well. And that’s the behaviour you get with the Camel CDI test runner as well. If your need is to h

Re: Warning out on naming Blueprint property-placeholder persistent-id="stuff-test"

2016-06-01 Thread Alexey Markevich
Similar issue: https://issues.apache.org/jira/browse/KARAF-3007 On Tue, 31 May 2016 21:00:34 +0300, Owain McGuire wrote: ![](https://link.nylas.com/open/ez36v71u7uh7qiundny4ougdd/local-dab1ed0a-250c) Finally found this: https://access.redhat.com/solutions/1535463 If you have a dash "-"