my solution is:
Please, insert this line into official documentation for backward
compatibility!
king regards!
--
View this message in context:
http://camel.465427.n5.nabble.com/Camel-2-17-x-null-values-are-gone-tp5783253p5783274.html
Sent from the Camel - Users ma
Hi Claus,
I did some more testing and it works only one scenario
from("timer://foo?fixedRate=true&period=6000")
.setHeader("mobilenumbers", simple("12345"))
.to("sql:select status from subscriber where mobilenumber
in (:#in:mobilenumbers)?dataSource=#oracleDS")
When I put lazyAuth on false I get the following error:
Caused by: java.lang.SecurityException: Invalid CSRF code!
at
org.apache.camel.component.linkedin.api.LinkedInOAuthRequestFilter.getRefreshToken(LinkedInOAuthRequestFilter.java:214)
at
org.apache.camel.component.linkedin.api.LinkedInOAuthRequ
hello,
try to change
http://{{fromUrl}}/occupations?matchOnUriPrefix=true"; />
--
View this message in context:
http://camel.465427.n5.nabble.com/placeHolder-tp5783268p5783284.html
Sent from the Camel - Users mailing list archive at Nabble.com.
thanks for your answer.
in this case i am lose the orig request?
--
View this message in context:
http://camel.465427.n5.nabble.com/Routing-question-tp5782945p5783285.html
Sent from the Camel - Users mailing list archive at Nabble.com.
thanks
working :)
--
View this message in context:
http://camel.465427.n5.nabble.com/placeHolder-tp5783268p5783286.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Hello,
I'm using delta-spike to manage camel routes as I've seen in the provided
CDI samples. I have the following route builder:
public class MyRouteBuilder extends RouteBuilder
{
@Override
@ContextName("...")
public void configure()
{
from("ftp:{{ftp.path}}").log("Uploading file
${f
Hi Nicolas,
In your unit tests, you should use Camel CDI test runner instead of extending
CamelTestSupport. This is used in the example that illustrates CDI and
DeltaSpike configuration properties so that you can have a look at the
accompanying test class. See [2] for more information.
[1]:
h
Should I return null from the route method?
The returned success xml from the redirected server is in the Exchange body,
how can I return this as if the client had called the redirected server
directly?
--
View this message in context:
http://camel.465427.n5.nabble.com/Returning-response-from
Hi,
I don't know if i get your question correctly, but
DynamicRouter acts like a loop: it will send the exchange over and over to
the endpoint name returned by the method "route." It will end the loop when
the method "route" will returned "null".
So your method should returned "null" when you wan
Hi,
Same error
org.springframework.jdbc.UncategorizedSQLException:
PreparedStatementCallback; uncategorized SQLException for SQL []; SQL state
[null]; error code [0]; Number of parameters mismatch. Expected: 1, was: 2;
nested exception is java.sql.SQLException: Number of parameters mismatch.
Expe
Hello,
I'm trying to use the Camel Tracer and I set it up, as follows:
getContext().setTracing(true);
Tracer tracer = new Tracer();
tracer.setLogName("c:/temp/camel-trace.log");
tracer.getDefaultTraceFormatter().setShowProperties(true);
tracer.getDefaultTraceFormatter().setSho
Hi Antonin,
Many thanks for your reply. I have already seen these examples. My question
was concerning the access to the properties. I modified my unit test as
follows:
@RunWith(CamelCdiRunner.class)
public class UnitTests extends CamelTestSupport
{
@Inject
@ConfigProperty(name = "ftp.path")
Hi Nicolas,
Have you tried with a non-static member:
@Inject
@ConfigProperty(name = "ftp.path")
private String myProp;
Injection of static field is not allowed.
It should work without duplicating your logic.
Antonin
> On 31 May 2016, at 14:37, nicolasduminil
> wrote:
>
> @Inject
> @Config
instead of simple("12345,56789") can you try new String[]{"12345", "56789"}
Regards,
-Yogesh
--
View this message in context:
http://camel.465427.n5.nabble.com/camel-sql-SQL-IN-Query-issue-2-17-1-tp5783264p5783293.html
Sent from the Camel - Users mailing list archive at Nabble.com.
can you try removing the datasource as a parameter to the sql component and
instead set the data source as and check
// required for the sql component
getContext().getComponent("sql",
SqlComponent.class).setDataSource(db);
Regards,
-Yogesh
--
View this message in context:
http
Hi Antonin,
Yes, of course, my bad. It works with non-static as expected.
Many thanks for your help.
Kind regards,
Nicolas
--
View this message in context:
http://camel.465427.n5.nabble.com/Camel-delta-spike-How-to-share-properties-between-contexts-tp5783288p5783300.html
Sent from the Camel
Following main class
Main main = new Main();
main.addRouteBuilder( new GetAccountStatusBulk() );
main.getOrCreateCamelContext().getComponent("sql",
SqlComponent.class).setDataSource(setupDataSource());
main.run(args);
Following change in roue
.to(
Hello,
I am using Apache Camel 2.14.0. I am calling the mongo endpoint in the
following format:
mongodb:product-reference-mongo?database=ProductReferenceMetaData&collection=productVersions&operation=save
According to the documentation, the 'save' operation is supposed to update
it if it exists
your datasiyrce is not configured.. can you make sure its working?
regards,
-yogesh
On Tuesday 31 May 2016, imranrazakhan [via Camel] <
ml-node+s465427n5783303...@n5.nabble.com> wrote:
> Following main class
>
> Main main = new Main();
> main.addRouteBuilder( new GetAccountStatus
looks like the context for route and context where datasource is set are
different and hence datasource is not found..
try setting the datasource first and pass the same camel context to your
route builder
regards,
-Yogesh
On Tuesday 31 May 2016, Yogesh Rao wrote:
> your datasiyrce is not conf
Yes
setLogName is not a file name, but the name of the logger in use, eg
it uses SLF4J API to log with that name.
So you need to configure your slf4j logger to use a file for logging.
On Tue, May 31, 2016 at 2:05 PM, nicolasduminil
wrote:
> Hello,
>
> I'm trying to use the Camel Tracer and I s
Hopefully this is an easy question, I have an exception handler:
onException(UnknownTnException.class)
.useOriginalMessage()
.handled(true)
.logStackTrace(false)
.log(LoggingLevel.WARN, log, "Unknown TN:
${exception.message}");
Whi
What version of Camel do you use?
There was a bug recently that causes Camel to log handled exceptions.
So try to upgrade.
On Tue, May 31, 2016 at 4:14 PM, Ed Welch wrote:
> Hopefully this is an easy question, I have an exception handler:
>
> onException(UnknownTnException.class)
>
I have a spring boot camel project. Then there is a route which fetches xml
data from activemq. When i run the program through STS -> Run as Spring Boot
app it works fine for UTF-8 char encoding. But when i make the fat jar and
run it then in the logs i get junk characters for chinese fonts. My log
Ah, I searched and found https://issues.apache.org/jira/browse/CAMEL-9558 which
is likely the issue you are referring to, which would affect me (2.16.1), I
will try upgrading to 2.16.3.
Thanks!
On Tue, 31 May 2016 16:22:28 +0200, Claus Ibsen wrote:
> What version of Camel do you use?
>
> The
In my camel project all Route builder are getting executed by quartz
scheduler. The issue is when I am starting the camel context all of the
route builder is getting executed.
My expectation is when I start the camel context all the route builders
should be ready for processing but execution will
In my camel project all Route builder are getting executed by quartz
scheduler. The issue is when I am starting the camel context all of the
route builder is getting executed.
My expectation is when I start the camel context all the route builders
should be ready for processing but execution will h
Hi Yogesh,
it look like there is issue in Using IN queries with dynamic values, as its
working for 1 value but not for multiple values, if here is issue in
datasource parameter then it should not work for 1 value too.
As mentioned earlier is expecting 1 value, below error clearly indicating
org
i see unit tests written for supporting in clause not sure how r they
passing
regards,
-Yogesh
On Tuesday 31 May 2016, imranrazakhan [via Camel] <
ml-node+s465427n5783319...@n5.nabble.com> wrote:
> Hi Yogesh,
>
> it look like there is issue in Using IN queries with dynamic values, as
> its worki

Finally found this: https://access.redhat.com/solutions/1535463
If you have a dash "-" in the persistent-id then if you override the
properties file in $FUSE_HOME/etc with the name .cfg then it won't
pick t

Just come across this article https://access.redhat.com/solutions/259293 and
it something not easily found in the community.
http://camel.465427.n5.nabble.com/camel-blueprint-unit-tests-td5738925.html
and http://camel.
Hello
I have several unit tests that are annotated
with @RunWith(org.apache.camel.test.cdi.CamelCdiRunner.class) and also
inject
@Inject
@ContextName("camel-test-cdi")
CamelContext context;
I do not inject any non-test routes, yet, when I run the tests the routes
start.
How is it possible to ru
I am not sure I understand completely your requirement but I have done
something like this for my unit tests.
1. I created a separate blueprint.xml where only necessary routes are
created in the routebuilder ref statements. Other routes are not started.
2. In my @Before I do some advice with stuff
private static final String TEST_BLUEPRINT_XML =
"camel-context-for-route-blueprint.xml,OSGI-INF/blueprint/blueprint.xml";
@Override
protected String getBlueprintDescriptor() {
return TEST_BLUEPRINT_XML;
}
Then create the camel context in your test resources dir
Greetings,
I have the following question, I will try to lay the scenario as clearly as
possible. If this isn't clear, my apologies up front.
I have a directory, that will have multiple files dropped into it. The file
are text files and as part of this generation process they will have a guid
I found out it gets even weirder if you have *aux* in between dashes (*
*-aux-**). Somehow karaf's config admin file management generates a .cfg
file with random numbers.
Cheers,
Henrique
Henrique Viecili
On 1 June 2016 at 04:00, Owain McGuire wrote:
> 
in your file consumer URI. But first you need to configure a .done file in
your file consumer route. Basically the .done means that only when the xml
file is generate should you consume the txt files.
2. I am guessing the t
I checkout version 2.14.0 and looked at the call from a "save" to MongoDB.
In see a call to the save-method in DBCollection (code is below).
I can only say that I expect an insert will be done when there is no _id in
the
object you send to your route.
If you send an object with an _id an update s
Hi,
I have two classes, one of which is a request model, and the other one is a
response model of a REST API. camel-swagger annotation and methods work
great, when I use only the request type, or only response type(s). When I
specified both the request object and the response object, the input bod
42 matches
Mail list logo