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: spring.activemq.broker-url not set correct on Activemq + Spring Boot

2017-06-02 Thread Preben.Asmussen
Created https://issues.apache.org/jira/browse/AMQ-6694 -- View this message in context: http://camel.465427.n5.nabble.com/spring-activemq-broker-url-not-set-correct-on-Activemq-Spring-Boot-tp5799927p5801663.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: spring.activemq.broker-url not set correct on Activemq + Spring Boot

2017-05-26 Thread Preben.Asmussen
Hi Claus The example is now head, and I just wanted to follow up on this in regards to https://issues.apache.org/jira/browse/CAMEL-10226 where the change to the ActivemqComponent was introduced. IMHO if you are using SB starters you would expect the activemq autowirering to work how it's describe

Re: spring.activemq.broker-url not set correct on Activemq + Spring Boot

2017-05-21 Thread Preben.Asmussen
Forgot to mention that the commit relates to https://issues.apache.org/jira/browse/CAMEL-10226 I wonder if it should be reopened. My guess is that if you use SB starter for activemq you would want SB to autoconfigure the cf, and use SB property overrides. Currently the starter for activemq seems

Re: spring.activemq.broker-url not set correct on Activemq + Spring Boot

2017-05-21 Thread Preben.Asmussen
I suspect this commit to cause the difference https://github.com/apache/activemq/commit/4437393aa1a981a182142c255f76ae7cc50af183#diff-474de9fc51b7273d42a39c6327492388 the method got renamed from getAllowAutoWiredConnectionFactory to isAllowAutoWiredConnectionFactory so when the ActivemqComponent

Re: spring.activemq.broker-url not set correct on Activemq + Spring Boot

2017-05-21 Thread Preben.Asmussen
works on 5.14.0 but not on 5.14.1 ... -- View this message in context: http://camel.465427.n5.nabble.com/spring-activemq-broker-url-not-set-correct-on-Activemq-Spring-Boot-tp5799927p5799966.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: spring.activemq.broker-url not set correct on Activemq + Spring Boot

2017-05-21 Thread Preben.Asmussen
Did a bit of debugging with a bizar result. The SB auto created connection factory get's set on the JmsConfiguration in https://github.com/apache/camel/blob/master/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsComponent.java#L160 The isAllowAutoWiredConnectionFactory metho

spring.activemq.broker-url not set correct on Activemq + Spring Boot

2017-05-20 Thread Preben.Asmussen
Hi Juste doing some testing on boot+activemq with camel version 2.19.0 It seems that when you set the spring property spring.activemq.broker-url it will not be set on the amq connectinfactory when using autoconfig. A simple test class as @SpringBootApplication public class DemoApplication {

Re: Camel xmlJson not working properly?

2017-03-10 Thread Preben.Asmussen
It depends on your needs. I tend to flatten the json structure in the same way that xml2json does in the example above. -- View this message in context: http://camel.465427.n5.nabble.com/Camel-xmlJson-not-working-properly-tp5795194p5795232.html Sent from the Camel - Users mailing list archive

Re: Camel xmlJson not working properly?

2017-03-09 Thread Preben.Asmussen
Hi Had the same issue some time ago. I think the resulting json should be an array in both cases since the xml Value element is 0-n. In your first example the resulting json will be a jsonobject, and it should have been an array. example 1 : { "Version": "2.0", "ErrorCode": "0"

Problem using mockEndpoint in Spring Boot test

2017-02-05 Thread Preben.Asmussen
It seems that using MockEndpoints in spring boot tests you can get unpredictable results. Unit tests annotated with -> @RunWith(CamelSpringBootRunner.class) @MockEndpoints Seems to work when running them locally, but fails on CI servers properly due to somewhat slower execution time. The proble

Re: Workshop/Conference for Copenhagen/Malmö Camel developers ?

2017-01-10 Thread Preben.Asmussen
Hi Souciance Count me in. Sounds like a good to idea. I might be able to provide a location for such an event. Best, Preben -- View this message in context: http://camel.465427.n5.nabble.com/Workshop-Conference-for-Copenhagen-Malmo-Camel-developers-tp5792374p5792381.html Sent from the Came

Re: Springboots vs Osgi // for Camel Apps

2017-01-04 Thread Preben.Asmussen
I would surely recommend spring-boot. I't offers a lot of flexibility in terms of testing, deployment options and auto configuration. The developer experience is awesome, but it takes some time to get under the hood of all the Spring auto magic. That's something to be aware off. In the resent time

Re: cxf rs deadlock waiting for response

2016-11-03 Thread Preben.Asmussen
Thanks Sergey :-) I think the link should be https://issues.apache.org/jira/browse/CXF-7123 Cheers /Preben -- View this message in context: http://camel.465427.n5.nabble.com/cxf-rs-deadlock-waiting-for-response-tp5789687p5789708.html Sent from the Camel - Users mailing list archive at Nabble

Re: cxf rs deadlock waiting for response

2016-11-03 Thread Preben.Asmussen
I debugged a bit to get closer. The root problem is in org.apache.cxf.jaxrs.client.AbstractClient as the threaddump shows the block in line 564 gets activated if (ex == null && !exchange.isOneWay()) { synchronized (exchange) { while (exchange.get("IN_CHAIN_COM

cxf rs deadlock waiting for response

2016-11-03 Thread Preben.Asmussen
Hi There seems to be a problem doing a POST to a rest service that that returns http 202 with an empty body resulting in a inflight exchange that never completes (deadlock). btw the service response content-length header is set to 0 The lock is in -> at org.apache.cxf.jaxrs.client.AbstractClien

Re: possible camel-jms regression in 2.17.2

2016-08-11 Thread Preben.Asmussen
Yeah - it's also present on 2.17.3 I created https://issues.apache.org/jira/browse/CAMEL-10237 /Preben -- View this message in context: http://camel.465427.n5.nabble.com/possible-camel-jms-regression-in-2-17-2-tp5786290p5786306.html Sent from the Camel - Users mailing list archive at Nabble.c

Re: possible camel-jms regression in 2.17.2

2016-08-11 Thread Preben.Asmussen
lol - localized error messages is an $$ enterprice feature. And Oracle is kind of a sticky pease of junk. -- View this message in context: http://camel.465427.n5.nabble.com/possible-camel-jms-regression-in-2-17-2-tp5786290p5786294.html Sent from the Camel - Users mailing list archive at Nabbl

possible camel-jms regression in 2.17.2

2016-08-10 Thread Preben.Asmussen
Hi I just tried to upgrade camel-jms from 2.17.1 to 2.17.2 and got jms errors due to Oracle AQ regards JMSX*** properties as read only. As I re call there were som special handling regarding exchange header copying this in 2.xx. due to this fact. I think the change was introduced in https://issue

Re: Can't get things on Oracle DB backout queue

2016-06-22 Thread Preben.Asmussen
Hi Sverre As Claus said you should use the transactional client, and let OracleAQ handle the redelivery of failed messages. You can specify the max_retries and Retry_delay when creating the queue or topic See oracle docs. When retries are exhausted OracleAQ will mark the messages as undeliverabl

Re: Camel training

2016-06-14 Thread Preben.Asmussen
Hi Souciance If you want I can buy you a cup of coffe too, and we can discuss Camel. We have been using Camel for the last 4-5 years and are running about 130++ camel context in production integrating more or less everything you can think about. Best, Preben Danish Broadcasting Corporation

Re: setting logExhaustedMessageBody in Spring xml

2016-03-29 Thread Preben.Asmussen
Logged https://issues.apache.org/jira/browse/CAMEL-9772 I will have a peek at it and work on a PR. Best, Preben -- View this message in context: http://camel.465427.n5.nabble.com/setting-logExhaustedMessageBody-in-Spring-xml-tp5779942p5779967.html Sent from the Camel - Users mailing list arch

setting logExhaustedMessageBody in Spring xml

2016-03-29 Thread Preben.Asmussen
Hi In v. 2.17.0 the body and header is not logged by default by the errorhandler. To get the old behaviour back where the message history is loggend including the exchange header/body in Spring xml it seems that I have to declare quite a bit of extra wirering. See foo and bar beans.

Re: IronMQ support?

2016-02-25 Thread Preben.Asmussen
Hi The code should be ready. I was just waiting to see if there would be any need for such a component. I will try to do a PR in the coming days, so the component can get a proper home. Best, Preben -- View this message in context: http://camel.465427.n5.nabble.com/IronMQ-support-tp5778300p57

RE: Deploying Camel in WebLogic(Cluser)

2016-01-05 Thread Preben.Asmussen
hi Mahdava If you package your camel app. as a war maybee tweek the weblogic.xml deployment descriptor to to use your war dependencies instead of app. server libs. (prefer-web libs something) cant remember from the top of my head. Then deploy it just as you would any other war file targeting all

Re: manual ack with rabbitmq

2016-01-03 Thread Preben.Asmussen
manuel acknowlendgement using channel.basicAck is done internally by the RabbitMQConsumer when the message is processed. See https://github.com/apache/camel/blob/master/components/camel-rabbitmq/src/main/java/org/apache/camel/component/rabbitmq/RabbitMQConsumer.java#L201 -- View this message in

Re: The Camel Name - Just A Thought

2015-12-10 Thread Preben.Asmussen
yeah - but donkeys seems to have friends in high places. I just got slides from latest Gartner conference with reference product slides snippet from slides -> API Manager: – Apigee – TIBCO (Mashery) API Gateway: – CA (Layer 7) – Axway (Vordel) ESB Suite: – Oracle SOA Suite – Softwar

Re: sftp endpoint is not as performant as expected

2015-11-13 Thread Preben.Asmussen
+1 -- View this message in context: http://camel.465427.n5.nabble.com/sftp-endpoint-is-not-as-performant-as-expected-tp5773654p5773879.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Transactional Route with JTA

2015-11-02 Thread Preben.Asmussen
Hi Christian We stayed on Oracle AQ jms since that's basically also a database :-) It has worked for us for our current setup doing max 1M messages pr. day, but it's far from ideal if you need greater throughput, and there isn't any failover. Actually I was at a GoTo talk where the speaker had s

Re: Transactional Route with JTA

2015-10-31 Thread Preben.Asmussen
Hi Christian I was on the same path some time ago. I don't recall all of the details from the top of my head, but there is a couple of posts about it here. http://activemq.2283324.n4.nabble.com/Setting-redelivery-properties-on-XaConnectionFactory-td4679160.html http://activemq.2283324.n4.nabble.

Re: Using Camel in large project (300 Applications to integrate)

2015-09-16 Thread Preben.Asmussen
Hi Nick The reason we typically have 2 war files pr integration is to separate the responsibilities between provider and consumer systems. An example : Recieve xml files in a folder -> transform them -> send the message to 1 or more consumer systems. Camel context 1 (in war file1) -> reads the x

Re: Using Camel in large project (300 Applications to integrate)

2015-09-16 Thread Preben.Asmussen
Hi Nick We had kind of similar decisions to do some years ago, so my answers are based on our experience. Q1 : Yes camel is a very versatile library that helps you accomplish just about any problem you throw at it. It only requires java skills, and understanding of integration patterns. Befor

Re: XA transactions in camel

2015-08-24 Thread Preben.Asmussen
Hi There is a couple of resources I know of https://github.com/muellerc/camel-in-transaction https://github.com/camelinaction (and book) https://github.com/CamelCookbook (and book) Have a look there /Preben -- View this message in context: http://camel.465427.n5.nabble.com/XA-transactions-

Re: How to suppress exceptions from @Jsonpath expressions?

2015-05-26 Thread Preben.Asmussen
Hi Claus Created https://issues.apache.org/jira/browse/CAMEL-8799. See comments Best, Preben -- View this message in context: http://camel.465427.n5.nabble.com/How-to-suppress-exceptions-from-Jsonpath-expressions-tp5767384p5767497.html Sent from the Camel - Users mailing list archive at Nab

Re: How to suppress exceptions from @Jsonpath expressions?

2015-05-25 Thread Preben.Asmussen
Hi Currently it's seems not possible to have optional jsonpath parameters on a bean since the component will throw an PathNotFoundException on missing path's. I think jsonpath should return null on unknown path's instead of throwing PathNotFoundException. If i recall right thats also the behaviour

Re: Making the Camel Maven plugins Eclipse compatible

2015-05-12 Thread Preben.Asmussen
+1 Best, Preben -- View this message in context: http://camel.465427.n5.nabble.com/Making-the-Camel-Maven-plugins-Eclipse-compatible-tp5767009p5767020.html Sent from the Camel - Users mailing list archive at Nabble.com.

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: 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-

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: 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.

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: 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: 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: 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: 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: 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: 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: 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 -

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

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

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

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: 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

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: 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: 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: 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

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

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

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.

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: 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-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

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: 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.

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: 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:/

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: 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

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: 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-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-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-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-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

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: 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

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: 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.

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: 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: 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: 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: 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 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: 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: 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: 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.

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: 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

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-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: 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: 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

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-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

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'

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: 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

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.

  1   2   >