Re: RejectedExecutionException from jmsProducer while using global onException handler

2013-11-01 Thread Preben.Asmussen
Forget it - just figured it out as not a problem besides on my side :-) -- View this message in context: http://camel.465427.n5.nabble.com/RejectedExecutionException-from-jmsProducer-while-using-global-onException-handler-tp5742479p5742486.html Sent from the Camel - Users mailing list archive a

Getting http status code from cxfrs in onException handler

2013-11-28 Thread Preben.Asmussen
Hi I have a onException block where i want to handle org.apache.camel.component.cxf.CxfOperationException but only when the status is 404. other status codes should fail and rollback. The route is -> org.apache.camel.component.cxf.CxfOperationException

Re: does hazelcast component support stand-alone HC server?

2013-12-03 Thread Preben.Asmussen
I have done like this : Consult the hz documentation to setup your client config. localhost:5701 localhost:5702 and then in the route you can do Best, Preben -- View this message in context: http:/

Re: Getting http status code from cxfrs in onException handler

2013-12-03 Thread Preben.Asmussen
Thanks Willem Of course it was quite simple in the end. Just do org.apache.camel.component.cxf.CxfOperationException ${exception.statusCode} == 404 true I was just focusing on getting the http status code from the header, when I just could hav

Re: Apache Camel multithread processing

2013-12-15 Thread Preben.Asmussen
You could also change the stored proc to return a batch of messages, or use a bean to call the stored proc. n times, and then return the result as a list or iterator from the bean. Use the splitter to iterate over the result for further processing. -- View this message in context: http://camel.

disabeling loadStatistics

2014-02-03 Thread Preben.Asmussen
In order to disable loadStatistics (to get rid of the ManagementLoadTask thread) I have set the -> http://camel.apache.org/schema/spring";> ... But when having multiple Contexts with this setting disabled, I get an rmi exception logged as a warning in the logs. (see stacktrace below). Does

Re: disabeling loadStatistics

2014-02-03 Thread Preben.Asmussen
Hi Claus No there is no other app where jmxAgent on purpose is set with createConnector, but there is a lot of different versions of camel deployed, they might create a jmxAgent by default ? The only time the , that might create the connector and register it every time it is declared in different

Re: can I set a message header or exchange property inside an xslt?

2014-02-03 Thread Preben.Asmussen
You can get the header as a xsl:param in the like -> http://www.w3.org/1999/XSL/Transform";> . and then do in the transformation -- View this message in context: http://camel.465427.n5.nabble.com/can-I-set-a-message-header-or-exchange-property-inside-an-xslt-tp5746730p5746757.html S

Re: disabeling loadStatistics

2014-02-05 Thread Preben.Asmussen
Found some time to dig into this. Figured out that I explicitly have to set the createConnector on the jmxAgent to 'false' then it works. The documentation says this should be the default value, but it seems not to b

Re: disabeling loadStatistics

2014-02-05 Thread Preben.Asmussen
created https://issues.apache.org/jira/browse/CAMEL-7173 -- View this message in context: http://camel.465427.n5.nabble.com/disabeling-loadStatistics-tp5746709p5746830.html Sent from the Camel - Users mailing list archive at Nabble.com.

Problem with XmlConverter after upgrade to 2.12.3

2014-02-28 Thread Preben.Asmussen
I just upgraded a integration running on Weblogic under jrockit 1.6 and found a problem related to the change in XmlConverter.createTransformerFactory introduced in 2.12.3. where the factory.setFeature(javax.xml.XMLConstants.FEATURE_SECURE_PROCESSING, true); seems to have sideeffects when runnin

camel-spring schemas

2014-02-28 Thread Preben.Asmussen
Shouldn't the camel-spring.xsd schemas have been update to the latest release ? The current camel-spring.xsd is from june last year. -- View this message in context: http://camel.465427.n5.nabble.com/camel-spring-schemas-tp5748097.html Sent from t

Re: Problem with XmlConverter after upgrade to 2.12.3

2014-02-28 Thread Preben.Asmussen
Yeah - I'll dig into it next week and find a workaround. I'll post the result back here for others to use. -- View this message in context: http://camel.465427.n5.nabble.com/Problem-with-XmlConverter-after-upgrade-to-2-12-3-tp5748082p5748112.html Sent from the Camel - Users mailing list archiv

Re: Problem with XmlConverter after upgrade to 2.12.3

2014-03-06 Thread Preben.Asmussen
Super - thanks for the tip. Best, Preben -- View this message in context: http://camel.465427.n5.nabble.com/Problem-with-XmlConverter-after-upgrade-to-2-12-3-tp5748082p5748381.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: sjms and multiple threads

2014-03-17 Thread Preben.Asmussen
Bengt If Weblogic is the bottleneck you can try and tune it using another workmanager. /Preben -- View this message in context: http://camel.465427.n5.nabble.com/sjms-and-multiple-threads-tp5748836p5748982.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Intermittent STUCK threads in Weblogic Server due to camel application

2014-04-27 Thread Preben.Asmussen
Hi We are running a lot of Camel routes on Weblogic. The only time I have seen stuck threads in on the commons.net.ftp, and the uses here is not related to any Camel component. "[STUCK] ExecuteThread: '11' for queue: 'weblogic.kernel.Default (self-tuning)'" - Thread t@65134 java.lang.Thread.St

Re: Weblogic cluster context loading issue

2014-04-29 Thread Preben.Asmussen
I havn't tried 2.12.3. We are still running on 11.3.5 We are running camel in war files and to control the classloading we set prefer-web-inf-classes in the war deployment descriptor. Have you tried that on your ear deployment descriptor ? To solve classloader issues in Weblogic you can also use

Problem with adviceWith on 2.13.x

2014-06-17 Thread Preben.Asmussen
Hi There seems to be something broken when using AdviceWithRouteBuilder when you have a transactional route and/or have a global onException handler. I have attached a test case that illustrates the problem When running a test I get an exception java.lang.IllegalArgumentException: There are no

Re: New to Camel and also needing to come up to speed on Java again

2014-06-27 Thread Preben.Asmussen
Hi Rick When you get the file as xml I usually prefer to transform the xml using xslt and then call cxf in PAYLOAD dataformat. You have to set up a cxf endpoint eg: http://tempuri.org/";> >From your route you

ShutdownTask thread does not complete

2014-09-12 Thread Preben.Asmussen
Hi On several components that extends ScheduledBatchPollingConsumer I have seen that the ShutdownTask thread seems not to complete when suspending/resuming a route. The route suspend/resume works as expected but the spawned shutdown thread keeps running in WAITING state. Shutdown trace for a jpa

Confusing cxf log messages after upgrading to 2.14.0

2014-09-25 Thread Preben.Asmussen
After upgrade the CXF producer info logs like CxfProducerINFO CxfProducer cannot find the operationName from message header, try to use the defaultOperationName This is due to change in in https://issues.apache.org/jira/browse/CAMEL-7503 https://fisheye6.atlassian.com/changel

Re: Confusing cxf log messages after upgrading to 2.14.0

2014-09-25 Thread Preben.Asmussen
Hi created https://issues.apache.org/jira/browse/CAMEL-7863 I actually still works as expected when setting the DefaultOperationName as an endpoint option, so there is no new bug. But to avoid the info logging pr. message you currently have to set a header 'operationName' too. Best, Preben -

Re: Relation between Weblogic Workmanagers, ThreadPoolProfile and JMS Consumers

2014-10-15 Thread Preben.Asmussen
Hi, Camel threads will not use Weblogics workmanager, and threads will run as so called unmanaged threads in jee app. server terms. If you want to use workmangers you have to delegate the thread management the jee server using eg. CommenJ library. I did some work some time ago here https://githu

Re: Calling a camel route seems to commit an outside transaction

2014-11-06 Thread Preben.Asmussen
I have seen that before in the old ejb days. The trick is to tell the persistent provider not to do commit before query. I would guess that Hibernate has a option to turn commit before query off. Preben -- View this message in context: http://camel.465427.n5.nabble.com/Calling-a-camel-route-s

Re: executing PL/SQL script

2014-11-07 Thread Preben.Asmussen
Hi M You can always uses a regular java bean for executing custom logic. See Bean binding The custom bean could execute your PLSQL using eg. Springs JdbcTemplate /Preben -- View this message in context: http://camel.465427.n5.nabble.com/executin

Re: Can we load log files into some database using Camel?

2014-12-08 Thread Preben.Asmussen
Hi, A word of advice here since we have done something similar where we load GB of zipped http log files from our http servers, unzip them, parse them and insert the parsed content into a structured db tables using camel. Even though the solution works it is somewhat cumbersome to maintain when l

Re: Recording events

2015-01-06 Thread Preben.Asmussen
Hi James We record business events like the ones you describe, but are not using the wiretab eip since this is recording the event even if the exchange ultimately fails. Sending a message to a wiretab endpoint will be a fire and forget operation that runs in a separate thread. Correct me if I'm w

Re: How to avoid blocking threads in JmsComponent with Oracle AQ

2015-03-21 Thread Preben.Asmussen
Hi As Claus said you should favor using broker redelivery when using jms. You can do that on OracleAQ when creating the queue/topic with a specifik redelivery delay. Backoff is not supported afair. But look at the Oracle docs. There is a catch though. Message ordering is not guaranteed during re

Re: How to avoid blocking threads in JmsComponent with Oracle AQ

2015-03-21 Thread Preben.Asmussen
Hi Frank We are using AQ too so i know some of the challenges. In some case we use a mix of broker redelivery and camel exception handler with backoff. I can't remember it from my the top of my head but here is some sudocode -> from("oracleaq:myqueue?concurrentConsumers=20") transacted onexcep

Re: Json Splitter

2015-03-26 Thread Preben.Asmussen
Or just convert json to a Map and iterate over that. /Preben -- View this message in context: http://camel.465427.n5.nabble.com/Json-Splitter-tp5764739p5764844.html Sent from the Camel - Users mailing list archive at Nabble.com.

Strange side effects when testing with expectedHeaderValuesReceivedInAnyOrder

2015-04-23 Thread Preben.Asmussen
Hi I'm experiencing some side effects when using expectedHeaderValuesReceivedInAnyOrder in a testcase. The following test will result in a ArrayOutOfBoundsException : public void testResultingInArrayOutOfBoundsException() throws Exception { String xmlFile = FileUtils.readFileToSt

Re: Strange side effects when testing with expectedHeaderValuesReceivedInAnyOrder

2015-04-23 Thread Preben.Asmussen
ahh - so expectedMessageCount and expectedHeaderValuesReceivedInAnyOrder exclude each other. Thats a bit unexpected. I would have guessed that all expectations set up in a test would have been evaluated. Best, Preben -- View this message in context: http://camel.465427.n5.nabble.com/Strange-

Re: Strange side effects when testing with expectedHeaderValuesReceivedInAnyOrder

2015-04-23 Thread Preben.Asmussen
Thanks Claus Makes much more sense now, when you know the overrides. For completeness sake I just move the header test like -> public void testSomething() throws Exception { String xmlFile = FileUtils.readFileToString(new File("src/test/data/good.xml")); M

Re: Configuration problems with Spring Boot and ActiveMQ

2017-07-12 Thread Preben.Asmussen
There is some discussions about this here http://camel.465427.n5.nabble.com/spring-activemq-broker-url-not-set-correct-on-Activemq-Spring-Boot-td5799927.html And a amq ticket here https://issues.apache.org/jira/browse/AMQ-6694 The workaround is to use the jms component instead of the activemq one

Re: AWS S3 Request/Reply

2013-03-16 Thread Preben.Asmussen
Hi If you want to process messages in order you can also take a look at ironmq http://www.iron.io/mq which supports fifo. Some time ago i created a camel component to support consumer/producer for iron mq. You can find it here camel-ironmq

Camel Splunk component

2013-04-07 Thread Preben.Asmussen
Hi I saw a Spring webinar "Spring Integraion for Splunk" http://www.springsource.org/node/4308 last day. Splunk collects, indexes and harnesses machine-generated big data so you can monitor, search, analyze, visualize (dashboards) and act on large streams of real-time and historical machine data.

Re: Camel Splunk component

2013-04-08 Thread Preben.Asmussen
Hi Hadrian Yeah I know some of Apaches licence guidelines and fortunately the Splunk SDK seems to be Apache licenced see https://github.com/splunk/splunk-sdk-java#license Damien Dallimore from Splunk has taken a look at the component and to quote him _ I'm becoming a Camel fan. Haven'

Re: Camel Splunk component

2013-04-08 Thread Preben.Asmussen
yeah I think so too. It would be a good addition to Camel and the Splunk community. I'll check with Demian about the osgi stuff, and a Apache camel component in general. Help for the osgi stuff might be most welcome :-) Also for the rest if anyone wanna join. /Preben -- View this message

using or operator in twitter keywords search

2013-05-01 Thread Preben.Asmussen
Just used the twitter component for a small demo, and stumbled on a missing feature. It would be nice if you where able to use or operator in the twitter keywords option. Maybe even be able to combine and/or in keywords. Should be possible in twitter4j, but i'm not sure. Best, Preben -- View t

Re: Camel Splunk component

2013-05-01 Thread Preben.Asmussen
The camel-splunk component is taking shape, and I have a running camel -> splunk event feed running in our test environment to test it's capabilities. See Splunk dashboard If anybody has interest/time. Please review the comp

Re: using or operator in twitter keywords search

2013-05-01 Thread Preben.Asmussen
Created https://issues.apache.org/jira/browse/CAMEL-6332 so we don't forget. -- View this message in context: http://camel.465427.n5.nabble.com/using-or-operator-in-twitter-keywords-search-tp5731873p5731887.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: large war or several smaller wars

2013-05-10 Thread Preben.Asmussen
Seems like it would be nice to have a connection pool at jvm or appserver leve so that you can reuse connections between wars, and have a centralized pool. I'm not sure if this is doable with activemq. -- View this message in context: http://camel.465427.n5.nabble.com/large-war-or-several-smal

Re: large war or several smaller wars

2013-05-10 Thread Preben.Asmussen
I guess it depends on your runtime environment and appserver. Here are some articles for tomcat http://pragmaticintegrator.wordpress.com/2011/01/17/combining-activemq-tomcat-and-mule-esb/ http://www.tomcatexpert.com/blog/2010/12/16/integrating-activemq-tomcat-using-local-jndi -- View this messa

Re: large war or several smaller wars

2013-05-13 Thread Preben.Asmussen
have you tried activemq resource adapters It should work with jboss If you run into any trouble with this try the activemq forum they should be able to help with activemq set

Best way for ScheduledBatchPollingConsumer to signal failure

2013-05-16 Thread Preben.Asmussen
Hi I have worked on a consumer component that extends the ScheduledBatchPollingConsumer, and want to signal when an error occurs during connect to a remote resource (basic http). Atm any connect error will be logged, but I want it to surface in jmx attribute like the ExchangesFailed and LastExchan

Re: Best way for ScheduledBatchPollingConsumer to signal failure

2013-05-17 Thread Preben.Asmussen
Oh yeah - I seem to recall comething like that. -- View this message in context: http://camel.465427.n5.nabble.com/Best-way-for-ScheduledBatchPollingConsumer-to-signal-failure-tp5732703p5732769.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Future of Fuse IDE

2013-05-17 Thread Preben.Asmussen
As far as I know Fuse Ide is and will continue to be open source, but might be donated to Apache or Eclipse. This is to be decided later. Correct me if i'm wrong. -- View this message in context: http://camel.465427.n5.nabble.com/Future-of-Fuse-IDE-tp5732773p5732778.html Sent from the Camel -

Re: Spring-Camel Context initialization error in weblogic 12c

2013-05-28 Thread Preben.Asmussen
Hi I'm running several camel war's on weblogic 10.3.5 without any problems as long as you remember to use weblogic.xml deployment descriptor to load webapp provided classes first. Weblogic provides an build in weblogic classloader analysis tool

Re: Camel Weblogic 12c

2013-05-31 Thread Preben.Asmussen
Hi Jose Seems that Oracle has a distribution of the override ready in wls see http://docs.oracle.com/cd/E24329_01/web.1211/e24964/data_types.htm#CIHBHDGI I guess you can add this jar to your war file and set wls to load your classes and libs first. true I'm not on wls 12c now -

Re: Camel Splunk component

2013-06-02 Thread Preben.Asmussen
Small update on this. The Splunk Dev team wants to keep there releases in their own repository (as i read this no support for Maven central from their side). Same goes for osgi as stated on this thread http://splu

Re: Camel Splunk component

2013-06-03 Thread Preben.Asmussen
yeah thats possible. I have some last features on the consumer side to hack on. When thats complete lets see if we can get the Splunk dependencies hosted via SMX at maven central :-) -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Splunk-component-tp5730476p5733739.html

Re: Best way for ScheduledBatchPollingConsumer to signal failure

2013-06-06 Thread Preben.Asmussen
Not working quite as expected The DefalultPollingConsumerPollStrategy loggs the error as WARN, but i'm not seeing any failed exchages in jmx ?? Shouldn't the bridgeErrorHandler create an empty Exchange with the error that gets picket up as failed ? Running on camel v. 2.10.0 07 Jun. 2013 - 08:01:

Re: Best way for ScheduledBatchPollingConsumer to signal failure

2013-06-09 Thread Preben.Asmussen
Ahh. Just for the update. I was developing a custom component, and one has to remember 2 things to support the BridgeErrorhandler. 1. call the configureConsumer in the Endoint.createConsumer method. public Consumer createConsumer(Processor processor) throws Exception { Drupal

Re: logging multiple instances

2013-06-27 Thread Preben.Asmussen
Hi I have lately started using Splunk for all kind of jvm, camel insight. There is a Splunk log4j appender that might be usefull for your usecase. -- View this message in context: http://camel.465427.n5.nabble.com/logging-multiple-instan

Re: Socket Programming and Camel

2013-07-27 Thread Preben.Asmussen
You could have a look at websockets. It might fit your usecase better. http://camel.apache.org/websocket.html -- View this message in context: http://camel.465427.n5.nabble.com/Socket-Programming-and-Camel-tp5736299p5736322.html Sent from the Camel - Users mailing list archive at Nabble.com.

consumer.bridgeErrorHandler=true on 2.12-SNAPSHOT

2013-07-28 Thread Preben.Asmussen
Hi I just tried the snapshot version and there seems to be a problem or changed api concerning setting consumer.bridgeErrorHandler=true on consumer endpoints. I get an -> Failed to resolve endpoint . There are 1 parameters that couldn't be set on the endpoint consumer. Check the uri if the pa

Re: consumer.bridgeErrorHandler=true on 2.12-SNAPSHOT

2013-07-28 Thread Preben.Asmussen
yeah - it's a custom component and I figured it out. Somehow I had the impression that I had to set the consumer properties manually calling setConsumerProperties -> protected Endpoint createEndpoint(String uri, String remaining, Map parameters) throws Exception { Splunk

org.xml.sax.SAXParseException: Premature end of file in split

2013-09-04 Thread Preben.Asmussen
Hi I'm running into a error in production, but not in test while using a splitter with a xpath expression. The route is receiving messages from a jms queue and is calling a rest service on anoter tomcat box. The response should be splittet and send to an activemq topic -> In production I get an S

Re: org.xml.sax.SAXParseException: Premature end of file in split

2013-09-04 Thread Preben.Asmussen
Hi Willem No the tracing was enabled using jmx to trubleshot. Thinking of it I recall some bug in Camel with a toString method and streaming. It might be that when tracing is enabled it consumes the stream when calling toString in camel version 2.10.0 ?? What would be the best approach here to a

Re: org.xml.sax.SAXParseException: Premature end of file in split

2013-09-06 Thread Preben.Asmussen
Well It didn't work as expected. After I added convertBody to byte[] the error persists when enabling tracing. Changed route -> /ns4:now_previus_tracks_response/tracks_list/tracks

Re: org.xml.sax.SAXParseException: Premature end of file in split

2013-09-06 Thread Preben.Asmussen
Just tested it on 2.11.1 with the same result -- View this message in context: http://camel.465427.n5.nabble.com/org-xml-sax-SAXParseException-Premature-end-of-file-in-split-tp5738675p5738841.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: org.xml.sax.SAXParseException: Premature end of file in split

2013-09-09 Thread Preben.Asmussen
Did 2 tests that shows the problem with enabling the tracer. If you run RouteWithoutTracerTest it runs ok The other RouteWithTracerTest fails with org.xml.sax.SAXParseException: Premature end of file. The tracer seems to break stuff somewhere. tracerbug.zip

Re: org.xml.sax.SAXParseException: Premature end of file in split

2013-09-11 Thread Preben.Asmussen
Hi Christian Thanks - and sorry for the somewhat rough tests. Currently I'm trying to solve multiple problems at the same time And I tried it on 1.12.0 yesterday and there it works as you say. There seems to be another problem with tracing on 1.12.0 though. When you activate tracing using jmx co

Re: org.xml.sax.SAXParseException: Premature end of file in split

2013-09-11 Thread Preben.Asmussen
Ahh - thanks. -- View this message in context: http://camel.465427.n5.nabble.com/org-xml-sax-SAXParseException-Premature-end-of-file-in-split-tp5738675p5739106.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Proof of concept for Camel Web Interface

2012-08-15 Thread Preben.Asmussen
Hi Lars I had a look at Jolokia last year and was impressed by it's usability for exposing jmx using http. Basically I wanted to use the Camel stats. for monitoring purposes for our custom monitoring system. At the end I found that the jmx stats wasn't enough to give you a reliable picture of the

Re: Proof of concept for Camel Web Interface

2012-08-16 Thread Preben.Asmussen
@Lukasz Good ideer will check the dev list and Michal. /Preben -- View this message in context: http://camel.465427.n5.nabble.com/Proof-of-concept-for-Camel-Web-Interface-tp5717349p5717513.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Proof of concept for Camel Web Interface

2012-08-16 Thread Preben.Asmussen
Hi all Had a look at the camel-web component, and I think it addresses the need to visualize camel jmx in a web app. for ppl. to view/manage camel via a web gui. Personally I use VisualVM http://visualvm.java.net/ for that kind of need. This gives me also access to all other management beans avail

Re: Issue using camel + cxf in an unit test

2012-08-29 Thread Preben.Asmussen
I can confirm this behavior also exists on Camel 2.10 /Preben -- View this message in context: http://camel.465427.n5.nabble.com/Issue-using-camel-cxf-in-an-unit-test-tp5718310p5718322.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Issue using camel + cxf in an unit test

2012-08-29 Thread Preben.Asmussen
Have tried that. Doesn't fix it if I remember right. -- View this message in context: http://camel.465427.n5.nabble.com/Issue-using-camel-cxf-in-an-unit-test-tp5718310p5718324.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Issue using camel + cxf in an unit test

2012-08-31 Thread Preben.Asmussen
Would be helpfull as a hint on the camel-cxf wiki regarding testing. -- View this message in context: http://camel.465427.n5.nabble.com/Issue-using-camel-cxf-in-an-unit-test-tp5718310p5718475.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel Monitoring Tool

2012-11-22 Thread Preben.Asmussen
I developed a custom monitoring solution where that uses route jmx stats. to report the health of a route by looking af completed and failed exchanges. The solution is generalized, so that you can configure which routes should be monitored by route name. Route stats. are not always enough though

Re: Problem w. FTP producer and charset

2012-12-06 Thread Preben.Asmussen
Hi Located this to be a problem introduced between 2.9.2 and 2.9.3 as a missing CamelCharsetName property on the Exchange. The CamelCharsetName property is not set after 2.9.2, and when IOConverter.toInputStream is called to convert exchange body to inputstream it uses IOHelper to get the Charset

Re: Problem w. FTP producer and charset

2012-12-06 Thread Preben.Asmussen
Hi Willem I think the testcase is attatched as a zip. just run it and you will see that it fails under camel 2.9.3 and completes under 2.9.2 when you change the camel.version in the pom. The problem is that files don't get written in the correct charset even if you specify the charset on the file

Re: Problem w. FTP producer and charset

2012-12-07 Thread Preben.Asmussen
I added a bit more to the testcase in the attached zip When running it now completes ok on 2.9.2. When I change the camel version in the pom to something newer like 2.9.3 . and upwards it will fail since the CamelCharsetName is not present. ftp-producer-bug.zip

Re: Problem w. FTP producer and charset

2012-12-08 Thread Preben.Asmussen
I have digged a bit deeper. The problem is that ftp files get's written in the wrong charset even if you specify the charset to use on the ftp endpoint like to("ftp://test:test@127.0.0.1:10017/?charset=iso-8859-1 or do a convertBodyTo(String.class, "iso-8859-1") before sending to the ftp endpoint.

Re: Problem w. FTP producer and charset

2012-12-16 Thread Preben.Asmussen
I created https://issues.apache.org/jira/browse/CAMEL-5881 Will work on a patch and attach it later. Best regards Preben -- View this message in context: http://camel.465427.n5.nabble.com/Problem-w-FTP-producer-and-charset-tp5723604p5724182.html Sent from the Camel - Users mailing list archiv

Re: SV: CommonJ ThreadPoolFactory interface question

2013-01-03 Thread Preben.Asmussen
Hi Petter Your contribution is most welcome. There is actually a open ticket for a new component at https://issues.apache.org/jira/browse/CAMEL-3957 I have tested the component on Weblogic 10, but was not convinced that workmanagers in WLS actually got released properly even though the code shoul

Re: [ANN] hawtio: a new lightweight HTML5 console for Apache Camel, ActiveMQ, JMX, OSGi & Fuse Fabric

2013-01-25 Thread Preben.Asmussen
Gave it a ride to test it and it looks awesome. Still prefer VisualVM when it comes to monitoring though. Besides JMX threads, CPU and mem can be accessed here too. More feedback to come later when I get some more time. /Preben

Re: Check that file component is still polling

2013-02-11 Thread Preben.Asmussen
Hi Bengt On file endpoint you can enable sendEmptyMessageWhenIdle option that sends an empty message if no files are available. This should also be possible on ftp/sftp endpoints, and could trigger your route to send a heartbeat even in the absence of a file exchange. An other way to achieve moni

Re: Check that file component is still polling

2013-02-12 Thread Preben.Asmussen
We use Camel's jmx statistics to determine the health state. 1. if here has been an completed exchange within a given timeframe eg. 10 min. everything is ok. if the last exchange was a failure healthstate is set to error. 2. if no exchange has been completed a secondary check is activated. This

how to set body clipped length on traceer using jmx

2013-02-13 Thread Preben.Asmussen
hi I have turned tracing on using jmx. Set tracing to true on the Route. The trace body however is clipped after 1000 chars In the log -> [Body clipped after 1000 chars, total length is 3253]] How can I change that using jmx so I get the full trace payload ? Best Preben -- View this messag

Re: CamelContext resume does not reactivate the route

2013-03-09 Thread Preben.Asmussen
I have seen the same behaviour on one or two occasions when a route 'hangs' with an inflight exchange and you try to suspend. It seems that there might be some issue flushing the inflight exchange (threading/interrupt) ? After the DefaultShutDownStrategy has completed you are not able to resume.

Re: how to monitor a route

2011-09-15 Thread Preben.Asmussen
Year - I have been thinking about interceptors, but it puts overhead to every execution of your route in production. From what I have heard something like 10-20% overhead. Haven't tried it out though. The other approach can run e.g. once a day during low traffic, and collect stats. But I guess th

Re: Using PropertiesComponent

2011-09-15 Thread Preben.Asmussen
year - that's a weak point. I end up using a mix of Spring and Camel properties whenever the properties file contains a dynamic reference e.g. environment variable reference. At the moment I define elements in the camel context to be able to use Spring property placeholders, but it's not the nice

Re: How far behind is the Scala DSL than Java DSL?

2011-09-15 Thread Preben.Asmussen
Hi One thing I would like to know about is the new paradigme of actors - a la Akka. How and where would it make sense to use something like Akka. I have seen Akka is using Camel to expose endpoints, but wouldn't actors fit into Camel as component's somehow ? Preben -- View this message in cont

Re: Providing Interfaces for MBeans to be able to proxy them

2011-09-17 Thread Preben.Asmussen
Hi I have been looking at that and taken another approach using Jolokia. It's remote jmx with json over http. Look at http://www.jolokia.org/ Will give you a very loosely coupled system that can take advantage of not only Camel but, also other MBeans that are exposed. regards Preben -- View this

Convert jms message from textmessage to bytemessage

2011-10-12 Thread Preben.Asmussen
Hi Think I found a issue while working with jms. I have a simple route that at the moment takes a textmessage and sends it to a external system as a ByteMessage : The hubQueue and playQueue are 2 Oracle AQ queues on separate systems, but should be comparable

Re: Convert jms message from textmessage to bytemessage

2011-10-12 Thread Preben.Asmussen
Forgot to mention that I'm using Camel 2.8.1 -- View this message in context: http://camel.465427.n5.nabble.com/Convert-jms-message-from-textmessage-to-bytemessage-tp4895362p4895367.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Convert jms message from textmessage to bytemessage

2011-10-12 Thread Preben.Asmussen
Created https://issues.apache.org/jira/browse/CAMEL-4540 /preben -- View this message in context: http://camel.465427.n5.nabble.com/Convert-jms-message-from-textmessage-to-bytemessage-tp4895362p4896423.html Sent from the Camel - Users mailing list archive at Nabble.com.

Runtime dynamic xpath filter

2011-10-20 Thread Preben.Asmussen
Hi I have to do filtering based on the contend of a xml message. The challenge here is that the filter has to be a configurable xpath expression, and changeable at runtime without restarting the route. Might be loaded from a configuration file from the file system and reloaded when the file cont

Re: Runtime dynamic xpath filter

2011-10-21 Thread Preben.Asmussen
Thanks for the tip. I'll give recipient list a try. -- View this message in context: http://camel.465427.n5.nabble.com/Runtime-dynamic-xpath-filter-tp4922317p4925163.html Sent from the Camel - Users mailing list archive at Nabble.com.

Misleading jmx statistics on jpa component

2011-11-03 Thread Preben.Asmussen
Im using the jpa component as a consumer to poll a table. The batchsize of each poll is set to eg. 100 as : The route is transacted so at the end the whole batch is either successful, or gets rolled back i there is a problem with any of the records read. It works nicely - the problem is that t

Re: Misleading jmx statistics on jpa component

2011-11-04 Thread Preben.Asmussen
Hi Christian Here is a nice trace. As you can see the whole batch is rolled back when redelivery gets exhausted. [rip.adapters.rap.PublicationIn] DefaultErrorHandlerWARN Failed delivery for exchangeId: ID-W14523-2657-1320391149162-0-141. On delivery attempt: 0 caught: java.lang.Ru

Possibility to suspend route or context in RedeliveryPolicy

2011-11-04 Thread Preben.Asmussen
Hi How about a feature on the RedeliveryPolicy where you would be able to suspend or stop a route or even context when the retries gets exhausted ? Something like : java.lang.Exception You would then be able to inspect and fix the problem, and then later on re

Re: Possibility to suspend route or context in RedeliveryPolicy

2011-11-04 Thread Preben.Asmussen
Year I know and I will do that, but I was rather thinking this could be a general feature of the RedeliveryPolicy, and then be used with the DSL. I would guess that other users could benefit from a general solution. /preben -- View this message in context: http://camel.465427.n5.nabble.com/Poss

Re: Possibility to suspend route or context in RedeliveryPolicy

2011-11-04 Thread Preben.Asmussen
@Claus - year I see what you mean regarding complicating things. If one would have such a feature it might be limited to the context level. Anyway - it's not that hard to handle the shutdown/suspension in your own processor. /preben -- View this message in context: http://camel.465427.n5.nabbl

Re: Misleading jmx statistics on jpa component

2011-11-04 Thread Preben.Asmussen
It seems that there are at least 2 discussions going on here if I'm not wrong. That Spring tries to commit even though the transaction is marked for rollback, and that that the jmx statistics reflects completed on exchanges that are rolled back. At the end whole batch of 100 is rolled back, but

Re: Misleading jmx statistics on jpa component

2011-11-12 Thread Preben.Asmussen
Added comment to https://issues.apache.org/jira/browse/CAMEL-4668 If the jmx stats. doesn't reflect that the exchanges have failed, then it would be hard to use the statistics for eg. monitoring tools. -- View this message in context: http://camel.465427.n5.nabble.com/Misleading-jmx-statistics-o

Re: How to make your camel routes highly available when only one may be active at a time

2011-11-12 Thread Preben.Asmussen
Hi Christian Nice work. Seems to me that there might be something missing. I guess the quickes of the nodes to start will have alle the routes in active state, and thereby have all the load wich is not optimal. What about a way to balance active/passive state between nodes to control/balance th

Re: How to make your camel routes highly available when only one may be active at a time

2011-11-13 Thread Preben.Asmussen
Maybe some kind of initial delay property that should delay the lock attempt as part of the policy. This way you could set a higher delay on the slave than on the primary. The delay should then be configured from the outside eg. property file. Somehow (my stomach I guess) I'm not quite sure of

  1   2   >