Hello,
I just tried to deploy my camel routes into an OSGi environment
(ServiceMix).
I've made a simple maven project with just resources (the beans.xml, .xsl
and .vm files),
however the XSLT and Velocity endpoints cannot find the associated files (
with exception Failed to resolve endpoint:
I found a solution for my problem where I want to return a null object based
on the input.
I've done it using a combination of content based routing and a transform
using the simple language.
In the simple language I refer to a generic NullObjectFactory bean that
has a method the creates a
I must update my previous question:
velocity in facts works fine, it is just xslt which causing issues!
My test route is in fact:
route id=testRoute
from uri=timer://myTimer?period=5000 /
setBody
constantFoo/constant
/setBody
to uri=velocity://test/test.vm /
to uri=xslt://test/test.xsl /
to
If the xsl file is in the classpath of your own bundle, then you need
to export this package. Looks like you put it in a test package.
On Tue, Jul 16, 2013 at 9:27 AM, Cristiano Costantini
cristiano.costant...@gmail.com wrote:
I must update my previous question:
velocity in facts works fine, it
Hi Claus and thank you,
the XSL file is on the src/main/resources/test folder, and in the same
folder there is the velocity template.
I've tried to add Export-Packagetest/Export-Package to maven bundle
plugin but nothing changed.
Is this the correct way to export it?
also it's weird the
Elaborating on Claus' answer. The XSLT processor tries to resolve the XSLT
test/test.xsl.
In OSGI words, it has to resolve a package test which contains the
resource test.xsl.
Though exporting the package test would probably work, I would strongly
recommend to have
better qualified package
Thank you Andreas for the hints on how to layout the packages.
(I'm just studying how to make it work and not yet started to refine the
code style,
I will surely take care of your recommendation.)
Could you confirm right way to export a resource in OSGi is to use the
Export-Package instruction?
Depending on how you start your OSGi container, you can always add the
configuration for remote debugging to your launcher script.
For my own development I have written a small wrapper around Pax Exam that
uses a container.properties file to set the JVM's runtime
paramaters (incl. debugging). For
Hi
I have used that instruction in the past. By now I find it easier to
configure the bundle plugin including a file osgi.bnd
which lives in the bundle root directory alongside the pom file.
The bundle-plugin would be configured as:
plugin
groupIdorg.apache.felix/groupId
Hi Camel users
I have a component with 2 persistent aggregators. One receives all
messages, one only a part of them. After a lot of test runs without
problems I had yesterday a serious problem with the aggregator persistence
(hawtdb).
I don't know yet what causes the problems, but however,
Seda breaks transaction propagation since different threads are used. But you
can replace seda by JMS
from(jms:queue:abc)
.choice()
.when(simple(body.msg.type).isEqualTo(a))
.to(jms:queue:only_a)
Thank you mueller,
Your link was very helpful. My problem got resolved.
Thanks
Kannaiah
--
View this message in context:
http://camel.465427.n5.nabble.com/Get-the-exception-org-apache-camel-RuntimeCamelException-java-lang-RuntimeException-Protocol-mismatcs-tp5735568p5735710.html
Sent from
I am working on camel 2.11.0. I was able to do routing using cxf component
and perform CRUD operations in my endpoint application. Now how do I do
polling or which component is used for this in camel.
Subscription or polling: In concurrent intervals of time, whatever updates
or changes happen in
Hi Patrick,
Did you find a solution to this ?
I have a similar requirement where i need to trigger a daily cron schedule
on a cluster environment.
So basically, only one of the instance should wake up on cron time and
sleep.
Regards,
DJ
--
View this message in context:
Hi Kannaiah
I assume that you want to poll based upon different timer events.
Have a look at the documentation of a PollingConsumer:
http://camel.apache.org/polling-consumer.html
You probably would like to end up with something similar like:
from(timer://foo?period=5000).bean(cool,
Hi all.
There is a process of loading data from external systems.
// first osgi bundle
from(direct:loadFile)
.id(exchangeCheckUnloadedAttach)
.split().method(unloadedAttachSplitter, findUnloadedAttach)
.recipientList()
.method(dynamicRouter, getVerifyAttachRoutes)
A small mistake. The first process begins
from(quartz://core-oos/attach?cron={{exchange.doc.attach.cron}}stateful=true)
--
View this message in context:
http://camel.465427.n5.nabble.com/recipientList-and-several-CamelContext-tp5735714p5735715.html
Sent from the Camel - Users mailing list
Hi,
I have an application that uses a few different routes, but basically it
picks up a file, extracts some records using splitter and sends them off to
a jms queue. When attempting to shut down the route I am informed my
messages are still inflight and so have to wait 5 minutes before it can be
Much simpler approach would be to use a CronScheduledRoutePolicy!
Regards,
Joe
On Tue, Jul 16, 2013 at 1:02 PM, Christian Müller
christian.muel...@gmail.com wrote:
Yes, take a look at the Camel Quartz component.
Best,
Christian
Am 16.07.2013 12:48 schrieb kikou1984
Read http://camel.apache.org/graceful-shutdown.html, and probably add
startupOrder:
Route #1 startup order 4
Route #2
Route #3 startup order 2
Route #4 startup order 1
Are your Routes #3 and #4 In-Out or In Only? Is your Splitter using an
aggregation strategy?
In which one of your routes are
Hi there,
We have a situation in our route whereby, when we encounter an error in
processing an inbound message, we want to flag the original as Failed (in
a header) prior to further processing, and also generate a new message to
request a tidy up of resources the original failure may have left
Hi all again,
in the end I think I've detected an issue, I don't know ho to report it, I
don't even know if it is a Camel or ServiceMix/Karaf issue.
I report here what it is about and please help me pointing me to report it
the right way.
The full problem is:
- If I deploy a route using
Thank you for your speedy response. In answer to your questions:
I have read that document, but in this case I only want to shut down Route
#2. When Route #1 picks up the next file I want to to dynamically create a
new (uniquely named) Route #2, but routes #1, #3 and #4 can (hopefully)
remain
I'm change vm component to direct-vm component.
See http://camel.apache.org/direct-vm.html
It's work!
--
View this message in context:
http://camel.465427.n5.nabble.com/recipientList-and-several-CamelContext-tp5735714p5735725.html
Sent from the Camel - Users mailing list archive at
How could I have a conditional uri string?
For example,
I have from uri=prod_uri in production and from uri=direct:start
for testing.
I want to have a single xml file for both and manage uri string
conditionally.
Thanks,
Boris
--
View this message in context:
You could either make it configurable with placeholders:
http://camel.apache.org/using-propertyplaceholder.html
or use a when choice: http://camel.apache.org/spring-xml-extensions.html
2013/7/16 boris boris.shuk...@barclays.com
How could I have a conditional uri string?
For example,
I have
It seems that I was trying to serialize the exchange properties, which is
nonsense because the exchange that arrives on the new route will contain
it's own properties, and everything was failing probably when trying to
serialize the following property:
It depends on what you mean by conditional - if you mean
conditional at route-definition time, you can use property placeholders
and/or Language Expressions.
If you mean conditional at runtime, then I'm pretty sure you can only do that
with producer endpoints (i.e. to endpoints) see:
In our project, we need to establish FTP connection through a SOCKS proxy.
Since Camel uses Apache Commons Net API underneath for FTP connections, I
tried looking into how Commons Net API supports this. Till last year, the
only way to achieve this was to set Java's System Properties as explained
If your xml-route-definition is inside a spring configuration, spring
properties should be possible.
Jan
-Ursprüngliche Nachricht-
Von: Chris Wolf [mailto:cwolf.a...@gmail.com]
Gesendet: Dienstag, 16. Juli 2013 16:17
An: users@camel.apache.org
Betreff: Re: conditional uri
It
On Tue, Jul 16, 2013 at 9:48 AM, gquintana gerald.quint...@gmail.comwrote:
Seda breaks transaction propagation since different threads are used. But
you
can replace seda by JMS
This applies when a Global TransactionManager is in place (e.g. JTA), whose
typical way of synchronizing several
As you know current camel-ftp is based of common net API, if the NET-468 patch
is released, I think we can easily as the support of setting the Proxy object.
Please feel free to fill a JIRA[1] and we can keep it in mind :)
[1]https://issues.apache.org/jira/browse/CAMEL
--
Willem Jiang
Red
Hi,
I just checked the code of XsltUriResolver code in the trunk, it should be
resolved since Camel 2.11.x.
You may need to consider to upgrade the Camel version of it.
--
Willem Jiang
Red Hat, Inc.
FuseSource is now part of Red Hat
Web: http://www.fusesource.com | http://www.redhat.com
Hi Claus,
It works for me! Thanks a lot!
--
View this message in context:
http://camel.465427.n5.nabble.com/How-to-use-PropertyPlaceholderConfigurer-to-configure-the-autoStartup-option-tp5735604p5735753.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Hi Willem,
I am using 2.10.1.
Thanks
--
View this message in context:
http://camel.465427.n5.nabble.com/How-to-use-PropertyPlaceholderConfigurer-to-configure-the-autoStartup-option-tp5735604p5735754.html
Sent from the Camel - Users mailing list archive at Nabble.com.
The Apache Camel project [1] is a powerful open source integration framework
based on known Enterprise Integration Patterns [2].
The Camel community announces the immediate availability of the new patch
release camel-2.11.1.
The artifacts are published and ready for you to download [3]
I'm afraid that I don't understand which option you are talking about. And
how can I care about the the property value which could not be serialized,
please explain in more details if possible?
Thanks.
--
View this message in context:
37 matches
Mail list logo