Re: Error with transform

2014-09-18 Thread MichaelAtSAG
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

Re: Error with transform

2014-09-18 Thread MichaelAtSAG
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

Re: Error with transform

2014-09-18 Thread MichaelAtSAG
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

Error with transform

2014-09-17 Thread MichaelAtSAG
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

Re: Camel consuming from apache mq using stomp over websockets

2014-07-10 Thread MichaelAtSAG
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:

Re: Transform without modifying message for downstream endpoints

2014-03-25 Thread MichaelAtSAG
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

Transform without modifying message for downstream endpoints

2014-02-10 Thread MichaelAtSAG
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

Re: Apache camel guaranteed delivery - multiple endpoints

2014-02-03 Thread MichaelAtSAG
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

Apache camel guaranteed delivery - multiple endpoints

2014-01-27 Thread MichaelAtSAG
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

Re: documentation fix - cannot update wiki page

2014-01-24 Thread MichaelAtSAG
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 :)

documentation fix - cannot update wiki page

2014-01-23 Thread MichaelAtSAG
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

Re: documentation fix - cannot update wiki page

2014-01-23 Thread MichaelAtSAG
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:

Re: JVM is running out of memory during full Camel build

2014-01-17 Thread MichaelAtSAG
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.

Re: JVM is running out of memory during full Camel build

2014-01-17 Thread MichaelAtSAG
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.

JVM is running out of memory during full Camel build

2014-01-16 Thread MichaelAtSAG
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

Re: JVM is running out of memory during full Camel build

2014-01-16 Thread MichaelAtSAG
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]

Camel twitter component - twitter now requires https

2014-01-15 Thread MichaelAtSAG
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

Re: Camel twitter component - twitter now requires https

2014-01-15 Thread MichaelAtSAG
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:

camel log

2013-12-09 Thread MichaelAtSAG
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

Re: camel log

2013-12-09 Thread MichaelAtSAG
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.

Re: java.lang.ArrayIndexOutOfBoundsException when receiving from JMS

2013-12-05 Thread MichaelAtSAG
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

java.lang.ArrayIndexOutOfBoundsException when receiving from JMS

2013-12-03 Thread MichaelAtSAG
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

Re: Moving from Spring 3.0.6 to 3.2.3 results in exception - Cannot find any Camel Context from the Application Context.

2013-10-09 Thread MichaelAtSAG
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.

Moving from Spring 3.0.6 to 3.2.3 results in exception - Cannot find any Camel Context from the Application Context.

2013-10-02 Thread MichaelAtSAG
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.

Re: Spring Bean represented as endpoint

2013-08-20 Thread MichaelAtSAG
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.

Spring Bean represented as endpoint

2013-08-16 Thread MichaelAtSAG
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

Re: Passing Camel Message Headers to File Endpoint

2012-05-31 Thread MichaelAtSAG
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

apns:notify - Badge value

2012-03-21 Thread MichaelAtSAG
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

APN certificate requires password

2012-03-16 Thread MichaelAtSAG
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?

Sample of Camel XML route for to uri=apns:notify /

2012-03-14 Thread MichaelAtSAG
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

Tool for creating Camel components

2012-03-12 Thread MichaelAtSAG
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:

Problem with printing In.message.body

2012-02-09 Thread MichaelAtSAG
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

SMTP - Specify Name and Email in the From element using Spring

2012-01-13 Thread MichaelAtSAG
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

Re: No consumers available on endpoint exception

2012-01-12 Thread MichaelAtSAG
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.

No consumers available on endpoint exception

2012-01-11 Thread MichaelAtSAG
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

Spring XML Context - two similar beans

2011-12-15 Thread MichaelAtSAG
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

Re: Spring XML Context - two similar beans

2011-12-15 Thread MichaelAtSAG
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

Re: How do I use xpath functions in Camel?

2011-12-08 Thread MichaelAtSAG
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

Re: Velocity without java

2011-12-07 Thread MichaelAtSAG
@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

Equivalent expressions?

2011-12-07 Thread MichaelAtSAG
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

Re: Velocity without java

2011-12-07 Thread MichaelAtSAG
@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

How do I use xpath functions in Camel?

2011-12-07 Thread MichaelAtSAG
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

Re: How do I use xpath functions in Camel?

2011-12-07 Thread MichaelAtSAG
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

Re: Loading two camel context files at start

2011-12-06 Thread MichaelAtSAG
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

Re: Velocity without java

2011-12-06 Thread MichaelAtSAG
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;

Same thing?

2011-12-05 Thread MichaelAtSAG
Are these two Spring XML expressions functionality equivalent? (1) choice when xpath $evtType = 'PartInventoryLow' /xpath (2) choice when language language=xpath $evtType =

Re: Same thing?

2011-12-05 Thread MichaelAtSAG
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.

Loading two camel context files at start

2011-12-05 Thread MichaelAtSAG
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,

Re: Loading two camel context files at start

2011-12-05 Thread MichaelAtSAG
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

Re: Loading two camel context files at start

2011-12-05 Thread MichaelAtSAG
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[]

Velocity without java

2011-12-02 Thread MichaelAtSAG
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

Velocity without java

2011-12-02 Thread MichaelAtSAG
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