Thanks Claus, good to hear from you.
I added this exception block to the context, yet the exception continues:
Does the route contain the correct exception qualified name? or should i be
org.apache.camel.RuntimeCamelException?
onException
Hi Claus, good to hear from you.
I added the exception clause to the context, yet it is generating an error.
Exception clause:
onException
exceptionjava.lang.ArrayIndexOutOfBoundsException/exception
I refactored using try..catch and it doesnt catch the exception:
Is the exception correct?
route xmlns=http://camel.apache.org/schema/spring;
id=STEP3_TweetReceivedFromJMS
from
uri=nervJMS1:topic:Event::WebM::Communication::Twitter::1.1::TweetReceived
id=NERVJMS1/
doTry
Hi all,
We have a SIMPLE transform step in a route that reports an exception
infrequently. I suspect the exception arises when a data element is missing,
which could be the case infrequently. When missing, I want the transform to
just use empty space and not report exception.
Here is the
Andrej,
I am hitting the same restriction. Were you able to connect stomp endpoint
to use websocket or is there another workaround that I am not reading in
this comment thread?
Thanks,
Michael
Hitting this:
Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to
resolve endpoint:
Thanks Mark. I reviewed the recipient list pattern in Camel documentation
http://camel.apache.org/recipient-list.html and do not see how this
solves the transform issue. Could you be so kind as to provide a code
example?
Upon further reading, I was thinking that a multicast pattern may best
Is it possible to nest a transform so that it does not alter the original
message payload?
This alters original payload:
camelContext xmlns=http://camel.apache.org/schema/spring;
route
from uri=direct:start/
transform
simple${in.body} extra data!/simple
/transform
to
The question was not about how to filter out duplicates on the consumer. Our
code already implements idempotentConsumer when the consumer cannot tolerate
duplicates.
The heart of the question is in preventing duplicates from being sent when
using a guaranteed delivery pattern.
--
View this
All,
Please provide best practices on supporting guaranteed delivery with routes
that containing multiple endpoints. Our system writes to a ehCache with
persistence on the producer, then routes to all endpoints. Once all
endpoints receive the message and the route completes, the message is
Thanks Christoph, makes sense, perhaps the example documentation should be
updated to reflect the karaf 2.3.2 requirement:
This example requires running in Apache Karaf / ServiceMix
This example requires running in Apache Karaf / ServiceMix 2.3.2
And 3.x works by changing the karaf commands :)
All,
I believe this documentation wiki page is incorrect. The example shows
features, but this word is not recognized by Karaf.
http://camel.apache.org/twitter-websocket-blueprint-example.html
features:chooseurl camel 2.12.0
I believe the commands should be feature.
feature:chooseurl camel
This command from the example is also unknown:
osgi:install -s
mvn:org.apache.camel/camel-example-twitter-websocket-blueprint/2.12.0
Do I need to use a specific version of Karaf to follow this example? Will
this work with camel 2.12.2?
--
View this message in context:
Build still complaining about memory. It works if I disable the camel-web
module:
--
View this message in context:
http://camel.465427.n5.nabble.com/JVM-is-running-out-of-memory-during-full-Camel-build-tp5746106p5746165.html
Sent from the Camel - Users mailing list archive at Nabble.com.
I do not understand what this means.
--
View this message in context:
http://camel.465427.n5.nabble.com/JVM-is-running-out-of-memory-during-full-Camel-build-tp5746106p5746166.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Hi,
I just tried to build the Camel trunk, but the compiler continues to ran out
of
memory. Note that I have modified Maven options to 1GB of memory:
d:\source\camelset MAVEN_OPTS=-Xms128m -Xmx1024m
d:\source\camelmvn clean install -Pfastinstall
Does Maven need more memory? The private
I ran it again with 2GB and hit compile exception at same point:
set MAVEN_OPTS=-Xms528m -Xmx2024m
Failure:
[INFO]
[INFO] Building Camel :: Web 2.13-SNAPSHOT
[INFO]
Our application uses the 2.12.1 Camel twitter component. As of yesterday,
this component is reporting this exception:
403 Forbidden: The server understood the request, but is refusing to
fulfill it.
After doing some research, I found that the twitter api has changed to
require https connection
Thanks gents. I did search the forum but didnt find anything using twitter
https, I guess I needed to use twitter ssl to find the issue already logged.
Cheers!
--
View this message in context:
All,
I am trying to implement a simple route endpoint that will result in message
stats logged every 10s, with an initial 60s delay and stats should be
displayed even if there isn't any message traffic.
--I followed this convention:--
http://camel.apache.org/log.html
--I put together this
I figured this out, had to set the level to INFO.
Thanks!
--
View this message in context:
http://camel.465427.n5.nabble.com/camel-log-tp5744520p5744521.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Hi Christian,
Camel version:
Camel-core 2.12
Camel-jms 2.12
The exception is sporadic, meaning about every 2 out of 10 JMS messages
report this exception.
I think the exception code I have written is not doing anything to the
routing. The behavior and expection reporting is the same with or
Hello,
This application connects to JMS and routes the message to a websocket
endpoint. Every 15th message or so, the following exception is raised:
Exception:
[Camel (TwitterApp1) thread #1 -
JmsConsumer[Event::WebM::Communication::Twitter::1.1::TweetReceived]]
EndpointMessageListener
Apache camel 2.11
--
View this message in context:
http://camel.465427.n5.nabble.com/Moving-from-Spring-3-0-6-to-3-2-3-results-in-exception-Cannot-find-any-Camel-Context-from-the-Applic-tp5740776p5741252.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Overview
We have built a Camel application that runs as both stand-alone jar and
webapp in tomcat. The application works fine in Spring version 3.0.6, yet
results in exceptions when moved to use Spring version 3.2.3. The only
change is moving the application Spring dependency from 3.0.6 to 3.2.3.
Apache Camel 2.11.0
--
View this message in context:
http://camel.465427.n5.nabble.com/Spring-Bean-represented-as-endpoint-tp5737433p5737614.html
Sent from the Camel - Users mailing list archive at Nabble.com.
All,
I am trying to move endpoint properties into a bean, yet the endpoint is not
working this way. I think it is a simple typo but can't find it:
THIS WORKS
?xml version=1.0 encoding=UTF-8?
beans
camelContext
endpoint id=websocketEndpoint
I understand that using the Message ID is the default behavior for the
filename when routing to a file endpoint.
What if you wanted to retain the message id but not use the filename as the
id? For example, we want the file output like this:
message
header
Hey all,
I have a camel route that sends a notification using the apns component.
This is working, yet I cannot figure out how to control the Badge value
shown in the mobile application.
Route:
to uri=apnsTEST:notify?tokens={{APNS.IOS_DEVICE_TOKENS}} /
When using java code, I can
I have defined a /org.apache.camel.component.apns.ApnsComponent/ bean and
tried to use the component in a Camel route. Camel reports that the
certificate must have a password, yet requiring a password on the
certificate is typically discouraged.
Does Camel require the certificate have a password?
I am trying to create a Camel XML route that sends to a APNS endpoint. This
Camel documentation for APN only shows three of the four options:
http://camel.apache.org/apns.html
Options shown :
1. Camel XML route - from apns
2. Camel Java route - from apns
3. Camel Java route - to apns
I would
I have familiar with the Fuse IDE to create routes in Camel context files.
Yet does this tool include the ability to create Camel components? If not,
what is suggested? Perhaps something in SpringSource Tool Suite to create
and define the spring-components?
--
View this message in context:
I create a new class that simply prints out the contents of the message. I am
finding the println command is changing the contents of the body.
As this code demonstrates,
1 STEP1 prints out the body as string.
2 STEP2 contains no output, the body is gone.
Why is the body empty in STEP2?
Is
How do I specify both a Name and Email in the From
route id=Email_InvShortage
from uri=direct:Email_InvShortage /
to uri=quot;smtp://smtp?to=t...@company.comamp;amp;subject=Inventory
shortage alertamp;amp;from=lt;Event Notifier eventre...@company.com /
/route
Camel does not like
Component VM worked perfectly. Thanks!
--
View this message in context:
http://camel.465427.n5.nabble.com/No-consumers-available-on-endpoint-exception-tp5138202p5140672.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Two Spring XML Context files:
Spring 1:
camelContext xmlns=http://camel.apache.org/schema/spring;
xmlns:evt=http://namespaces.softwareag.com/EDA/Event;
route id=Emit_EntryPoint
from uri=file:src/data?noop=true /
to
I want two Spring beans defined:
1 jmsEDA
2 jmsEDAPE
The second bean jmsEDAPE has all the properties of the first bean, except
with a different bean id and an additional property.
How do I do this so that the second bean does not contain redundant
information with first bean?
Example showing
Thanks Babak, and i understand the point you made. I am still learning the
relationship between Camel and Spring, and still learning the proper
terminology to use google to find answers. I did try to find the answer
before posting but I was not searching with the term inheritance.
--
View this
Ok, I am hearing that I need to use Saxon to run xpath functions versus the
default camel-core component. Correct? To do this, I have added this to the
pom.xml:
dependency
groupIdorg.apache.camel/groupId
artifactIdcamel-saxon/artifactId
/dependency
@Raul
Here is the XML for the message:
?xml version=1.0 encoding=UTF-8?
evt:Event xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xmlns:evt=http://namespaces.softwareag.com/EDA/Event;
xmlns:pay=http://namespaces.softwareag.com/EDA/WebM/Sample/InventoryMgmt/1.0;
evt:Header
I want to obtain the string value of an XML element in the message. Are these
two Spring XML expressions functionality equivalent?
--Camel--
(1)
setHeader headerName=SevtType1
xpath
resultType=java.lang.String/evt:Event/evt:Header/evt:Type/xpath
/setHeader
(2)
setHeader
@Raul
You are correct, my xpath did mix up the two event types in the xpath. The
event type is PartInventoryShortage, the wrong path was used in the xpath
and the wrong XSD was pasted above. Once the xpath was changed to proper
path using PartInventoryShortage instead of PartInventoryLow, it
I receive errors when trying to use xpath functions. My example below is
simplified, but I want to use an xpath expression to set a header property
in the Camel Spring XML context, like this:
Camel context:
-
camelContext xmlns=http://camel.apache.org/schema/spring;
route id=Test
on and more details of the environment
;)
On 7 December 2011 20:45, MichaelAtSAG [hidden email] wrote:
I receive errors when trying to use xpath functions. My example below is
simplified, but I want to use an xpath expression to set a header property
in the Camel Spring XML context, like
Thanks Babak.
Ah, your note about the Camel default configuration was enlightening! I
would like to share more about our specific situation to gain your
endorsement of our approach.
Situation:
1 I expect our systems will contain hundreds of Camel context files, at
least one context file for
Thanks Claus.
I am able to parse and use the first element named ${headers.SevtType} in
velocity, excellent!
Yet the second element named ${headers.SItemID} is not populated. Here are
the current file:
Camel context:
---
camelContext xmlns=http://camel.apache.org/schema/spring;
Are these two Spring XML expressions functionality equivalent?
(1)
choice
when
xpath
$evtType = 'PartInventoryLow'
/xpath
(2)
choice
when
language language=xpath
$evtType =
Excellent, thanks Claus.
--
View this message in context:
http://camel.465427.n5.nabble.com/Same-thing-tp5049364p5049406.html
Sent from the Camel - Users mailing list archive at Nabble.com.
How do I load two Camel Spring XML context files at start?
Env:
Two Camel Spring XML files in:
src/main/resources/META-INF/spring/camel-context-1.xml
src/main/resources/META-INF/spring/camel-context-2.xml
When I start, only camel-context-1.xml is loading.
If I remove camel-context-1.xml,
I believe I have solved this by making the Camel-Context ID unique:
src/main/resources/META-INF/spring/camel-context-1.xml
camelContext xmlns=http://camel.apache.org/schema/spring; id=camel1
src/main/resources/META-INF/spring/camel-context-2.xml
camelContext
Thanks Babak, the launch code is below.
/**
*license
*/
package com.xyz.eda;
import org.apache.camel.spring.Main;
/**
* Launch NERV
*
*/
public class NERV {
/**
*
* @param args
* @throws Exception
*/
public static void main(String[]
The Apache Camel example for Velocity using Java code to implement the logic.
Is there an example available that does not use java?
We are trying to use a Spring XML approach and cannot figure out how to
connect the message properties into the velocity template.
-Velocity template:-
Dear
The Apache Camel example for Velocity using Java code to implement the logic.
Is there an example available that does not use java?
We are trying to use a Spring XML approach and cannot figure out how to
connect the message properties into the velocity template.
-Velocity template:-
Dear
52 matches
Mail list logo