Hi
Yes you can add namespace in Java DSL too, you need to add it on the
xpath and now in the top with a new constructor.
Look at the documentation.
https://camel.apache.org/components/latest/xpath-language.html
On Tue, Jan 7, 2020 at 1:35 AM Chio Chuan Ooi wrote:
>
> Hi,
>
> i trying to use xp
Hi,
i trying to use xpath to extract text and setting it to exchange property
```
.setProperty(code, xpath("//code", String.class))
```
but seem that due to the xml body having namespace, xpath didnt manage
to extract the value.
i try to add namespace into the route, but don't seem to
Hi
The aggregator is a 2 phased EIP so what comes out of the aggregator
is not tied to the input. That is by design.
If you want a fork / join kinda pattern (composed message processor is
the EIP name) then you can do that from the splitter only which has
aggregation strategy built-in.
On Mon, Ja
Hi,
to be able to save the original message to dead letter directory even in
multiple nested splits I store it at a property.
.process(exchange -> {
final Message orgMessage =
exchange.getUnitOfWork().getOriginalInMessage();
exchange.setProperty(Constants.PROPERTY_ORIGNAL_ME
Hi Gerald,
Let me prepare/update Karaf 4.3.0-SNAPSHOT examples with Camel 3.0.0.
I keep you posted.
Regards
JB
On 06/01/2020 13:39, Gerald Kallas wrote:
> Thanks JB.
>
> @Camel folks, any comments on this question from JB?
>
> Thanks
> - Gerald
>
>> Jean-Baptiste Onofré hat am 6. Januar 202
Hi Gerald,
The example below shows how to use a pojo from a velocity context:
https://github.com/apache/camel/blob/master/components/camel-velocity/src/test/java/org/apache/camel/component/velocity/VelocityBodyAsDomainObjectTest.java
So, chances are that you just need to set the body to a po
Thanks JB.
@Camel folks, any comments on this question from JB?
Thanks
- Gerald
> Jean-Baptiste Onofré hat am 6. Januar 2020 um 13:15
> geschrieben:
>
>
> Hi Gerald,
>
> That's probably because camel-jms comes with JMS 2.0 whereas ActiveMQ is
> still JMS 1.0.
>
> You have to check if you h
Hi Gerald,
That's probably because camel-jms comes with JMS 2.0 whereas ActiveMQ is
still JMS 1.0.
You have to check if you have both JMS version in there.
Regards
JB
On 06/01/2020 13:12, Gerald Kallas wrote:
> Thanks, JB.
>
> I tried these commands ..
>
> karaf@root()> feature:repo-add hawti
Thanks, JB.
I tried these commands ..
karaf@root()> feature:repo-add hawtio 2.8.0
Adding feature url mvn:io.hawt/hawtio-karaf/2.8.0/xml/features
karaf@root()> feature:repo-add activemq 5.15.11
Adding feature url mvn:org.apache.activemq/activemq-karaf/5.15.11/xml/features
karaf@root()> feature:rep
Dear community,
I've following snippet ..
[{"name":"Wonderland","surname":"Alice"}]
The body comes from a jsonpath expression earlier. I've just stripped it to the
essentials.
Is it possible to access inside a Camel Velocity component template to the
attribute values for name and surname?
M
On Mon, Jan 6, 2020 at 11:31 AM Gerald Kallas wrote:
>
> Many thanks, Claus.
>
> I think in this case the documentation should be updated as there are a lot
> of Spring XML examples in there.
>
All the stuff in is the same between spring xml or
blueprint xml.
So its just fine to have it as is.
Many thanks, Claus.
I think in this case the documentation should be updated as there are a lot of
Spring XML examples in there.
Best
- Gerald
> Claus Ibsen hat am 6. Januar 2020 um 10:38
> geschrieben:
>
>
> Hi
>
> Spring XML is not available anymore in Camel 3. And on 2.x its
> deprecate
Hi,
now http4 is renamed as http.
Regards
JB
On 06/01/2020 09:21, Gerald Kallas wrote:
> Dear community,
>
> I'm using Camel 3.0.0 ant did find the HTTP component only. When would become
> the HTTP4 component part of the release?
>
> Best
> - Gerald
>
--
Jean-Baptiste Onofré
jbono...@apach
Hi Gerald,
I would rather recommend Java DSL/SCR in Karaf or Blueprint.
Regards
JB
On 06/01/2020 10:36, Gerald Kallas wrote:
> Dear community,
>
> we're starting the use of Camel 3.0.0 inside Karaf 4.2.7.
>
> What is the recommended XML DSL? Spring DSL or Blueprint XML?
>
> When we want to le
Hi,
Yes, simply use the jms feature: it will use pax-jms that use a managed
service with configuration backend.
You have a full JMS example in Karaf distribution:
https://github.com/apache/karaf/blob/master/examples/karaf-jms-example/karaf-jms-example-features/src/main/feature/feature.xml#L35
R
Hi.
That's how I did it (with artemis, though I suppose it would be the same with
the activemq):
feature:repo-add mvn:org.apache.activemq/artemis-features/2.10.1/xml/features
feature:install -u -r pax-jms-artemis pax-jms-pool pax-jms-config jms
Then create a etc/org.ops4j.connectionfactory-defau
Hi
Spring XML is not available anymore in Camel 3. And on 2.x its
deprecated, and is NOT recommended at all (spring-dm is dead).
Use only blueprint xml.
On Mon, Jan 6, 2020 at 10:37 AM Gerald Kallas wrote:
>
> Dear community,
>
> we're starting the use of Camel 3.0.0 inside Karaf 4.2.7.
>
> W
Dear community,
we're starting the use of Camel 3.0.0 inside Karaf 4.2.7.
What is the recommended XML DSL? Spring DSL or Blueprint XML?
When we want to leverage Spring XML, ho to enable the hot deployment inside
Karaf?
Many thanks in advance for comments and hints.
Best
- Gerald
On Mon, Jan 6, 2020 at 10:25 AM Gerald Kallas wrote:
>
> Thanks, Claus.
>
> Further, how can I define the data format in Blueprint XML. This ..
>
>
>
>
>
>
Put them inside
https://camel.apache.org/schema/blueprint/camel-blueprint-3.0.0.xsd
> doesn't
Thanks, Claus.
Further, how can I define the data format in Blueprint XML. This ..
doesn't work as "dataFormats" isn't allowed.
This ..
requires (osgi.wiring.package=org.apache.camel.spi.DataFormat).
Best
Hi
Btw you can do this in 2.x also, and the ref attribute was also
deprecated on 2.x
https://github.com/apache/camel/blob/camel-2.x/camel-core/src/main/java/org/apache/camel/model/MarshalDefinition.java#L135
On Mon, Jan 6, 2020 at 10:04 AM Claus Ibsen wrote:
>
> Hi
>
> Use to refer to a custom
Hi
Use to refer to a custom data format (eg its custom
when its a )
On Mon, Jan 6, 2020 at 9:57 AM Gerald Kallas wrote:
>
> Dear community,
>
> I've following snippet
>
> http://www.osgi.org/xmlns/blueprint/v1.0.0";>
> ...
> class="org.apache.camel.model.dataformat.JsonDataFormat">
> .
Dear community,
I've following snippet
http://www.osgi.org/xmlns/blueprint/v1.0.0";>
...
...
While deploying I'm getting
Caused by: org.xml.sax.SAXParseException: cvc-complex-type.3.2.2: Attribute
'ref' is not allowed to appear in element 'marshal'.
In Spring XML of older Camel installation
Dear community,
I'm currently configuring the JMS connection factory within a blueprint XML like
Could this be done in one of the config files in etc folder for the whole
instance of Karaf/Camel?
Any hints are helpful, tx in advance.
Best
- Gerald
Hi,
from the Migration Guide:
The http4 component has been renamed to http, and it’s corresponding component
package from org.apache.camel.component.http4 to
org.apache.camel.component.http. The supported schemes are now only http and
https.
BR
Maruan
> Dear community,
>
> I'm using Camel
Dear community,
I'm using Camel 3.0.0 ant did find the HTTP component only. When would become
the HTTP4 component part of the release?
Best
- Gerald
Finally I did get the SSL config working.
1. I have added 2 lines at system.properties
javax.net.ssl.trustStore=${karaf.etc}/truststore.jks
javax.net.ssl.trustStorePassword=x
2. I've changed the route as following
http://camel.apache.org/schema/blueprint";>
...
1. does set the trust st
27 matches
Mail list logo