Re: [Camel + Websphere MQ ] How to send MQRFH2 properties and ReplyToQ

2013-11-07 Thread David Karlsen
Hi. Try using this custom implementation of a Spring DestinationResolver which I attached this JIRA: https://jira.springsource.org/browse/SPR-3614 - works for me. Certain MQMD fields are mapped into a JMS set of properties, see: http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp?topic=

Re: [Camel + Websphere MQ ] How to send MQRFH2 properties and ReplyToQ

2013-11-07 Thread David Karlsen
camel-jms is based on spring-jms, so the same concept applies. Search for "destinationResolver" on this page: http://camel.apache.org/jms.html http://docs.spring.io/spring/docs/3.2.5.RELEASE/spring-framework-reference/html/jms.html (23.2.3) 2013/11/7 nanotech > Hi David, > Thanks for the reply

Re: camel-soap schema validation

2013-11-08 Thread David Karlsen
You could stick a validator as the second step in the route? There is a camel-validator component 8. nov. 2013 13:53 skrev "helander" følgende: > Is it possible to do schema validation while unmarshalling SOAP XML > messages > using the camel-soap dataformat? > > > > > -- > View this message in c

Re: Email Alerts Upon FTP Failure

2013-12-06 Thread David Karlsen
Have a look at: http://camel.apache.org/exception-clause.html or http://camel.apache.org/error-handler.html and use http://camel.apache.org/mail.html to send the mail. Good luck! 2013/12/5 funkymonk > Hello - > > I am brand new to Camel and I've got a handful of very basic blueprint > routes u

Re: Transaction spanning multiple routes separated by seda queue

2014-01-16 Thread David Karlsen
AFAIK this is not supported, because transactions are threadbound and the SEDA stuff will run of another thread than the one that started the transaction, and hence not able to participate in it. 2014/1/16 gilboy > Hi > > I have a route to consume a message from a JMS Topic, do some processing

Re: Camel - TestNG and Spring 4

2014-02-24 Thread David Karlsen
Yeah - you can track this: https://issues.apache.org/jira/browse/CAMEL-7074(which was created ti address exactly the issue you mention). 2014-02-24 16:58 GMT+01:00 Christian Müller : > There is an open ticket to support Spring 4. It's not supported at present. > > Best, > > Christian > -

Re: How to write messages in EBCDIC format into a queue (websphere mq) by came JMS Component

2014-02-26 Thread David Karlsen
You post it in whatever character set suits you, and as a TextMessage, and the receiving side can define what character set they want to read it with, offleaving the conversion to WMQ. See: http://publib.boulder.ibm.com/infocenter/wmqv7/v7r0/index.jsp?topic=%2Fcom.ibm.mq.csqzak.doc%2Ffr17310_.htm

Re: How to write messages in EBCDIC format into a queue (websphere mq) by came JMS Component

2014-02-26 Thread David Karlsen
Here is a resource as well: http://www-01.ibm.com/support/docview.wss?uid=swg27005729&aid=1 2014-02-26 16:19 GMT+01:00 David Karlsen : > You post it in whatever character set suits you, and as a TextMessage, and > the receiving side can define what character set they want to re

Re: JMS peek?

2014-04-12 Thread David Karlsen
Yes, use the JMS browse functionality: http://camel.apache.org/browse.html http://docs.oracle.com/cd/E19798-01/821-1841/bncey/index.html 2014-04-12 20:53 GMT+02:00 Larry Meadors : > Is there a clever way to do a "peek" operation with AMQ in camel? > > I want to trigger an action if there are any

Re: Configuring JMS connection pool for WMQ

2014-04-16 Thread David Karlsen
Yes to all questions. Just use the internal pooling: com.ibm.mq.jms.MQConnectionFactory has a property setUseConnectionPooling(boolean yesno) 2014-04-15 19:12 GMT+02:00 smadarapu : > Hi > > I have been successfully running several routes connecting to a JMS queue > using Websphere MQ. I have sev

Compound expression for idempotent consumer

2014-05-22 Thread David Karlsen
Hi. I'm wanting to setup a idempotent consumer, but combine several expressions as the key. (an xpath-expression on the payload + a property set on the exchange. Is this possible? //somens:MsgId/text() <--only xpath - works, but: <--how can I use this to combine several expressions? //somens

Idempotent inconsistencies

2014-05-22 Thread David Karlsen
IdempotentConsumer demands that the messageId is a string: final String messageId = messageIdExpression.evaluate(exchange, String.class); if (messageId == null) { throw new NoMessageIdException(exchange, messageIdExpression); } boolean newKey; if (eager

Re: Idempotent inconsistencies

2014-05-23 Thread David Karlsen
Done: https://issues.apache.org/jira/browse/CAMEL-7461 2014-05-23 8:48 GMT+02:00 Claus Ibsen : > Hi > > I think its historical reasons with using strings first in Camel. > > You are welcome to log a ticket to get this improved in a future release > > On Thu, May 22, 2

Add custom stringproperty to jms message

2014-05-30 Thread David Karlsen
Hi. I'm using camel for my communcations, and specifically WebSphere WMQ as the JMS middleware. I want to set a custom string property on the messages sent: http://docs.oracle.com/javaee/1.4/api/javax/jms/Message.html#setStringProperty(java.lang.String, java.lang.String) My route looks like this:

Re: Add custom stringproperty to jms message

2014-05-30 Thread David Karlsen
Sorry, I don't get you. I've read the specs (and looked into camels code) As far as I can see I'm playing by the rules: The exchange that is sent over the JMS wire must conform to the JMS Message spec . For the exchange.in.header the f

Re: Add custom stringproperty to jms message

2014-06-01 Thread David Karlsen
and see if Camel says anything about > dropping a header as its not spec compliant. > > Also Camel logs the JMS being sent with its content, so you ought to > see if your header is there. > > > > On Fri, May 30, 2014 at 2:25 PM, David Karlsen > wrote: > > Sorry, I d

Re: camel-ftp: fileExist=Append not working

2014-06-02 Thread David Karlsen
Probably permissions on the ftp server don't allow you to write to the file once it's first uploaded. I guess you wouldn't be allowed to delete it over ftp either. 2. Juni 2014 14:11 skrev "simonglaubitz" følgende: > Short addition to my original post: > > when changing the destination of my rout

Re: Best Efforts 1 PC pattern - from MQ to DB

2014-06-06 Thread David Karlsen
We use only the IBM one and it works fine 6. Juni 2014 16:15 skrev "dancsi" følgende: > Anyone having experience with IBM/WebSphere MQ? Shall I rely on WMQ > Connection Factory caching or shall I rather configure Spring's > CachingConnectionFactory? > > Thanks a lot, > Dan > > > > -- > View this

Re: What's the point of the OUT message on an Exchange?

2014-06-28 Thread David Karlsen
Also note that there is a DSL mechanism to mangle propagation of headers: http://camel.apache.org/how-to-avoid-sending-some-or-all-message-headers.html 2014-06-27 19:47 GMT+02:00 Matt Sicker : > Thank you, that actually helped quite a bit! I see that using the in > message is just more convenien

Re: Anyone seen this problem: Caused by: com.ibm.mq.jmqi.JmqiException: CC=2;RC=2195

2014-07-21 Thread David Karlsen
Have you added all the mq jars? There is quite a number of them. And are they all from the same mq version? You have a list of errorcodes here: http://www-01.ibm.com/support/knowledgecenter/SSFKSJ_7.0.1/com.ibm.mq.csqsao.doc/fm13700_1.htm?cp=SSFKSJ_7.0.1%2F1-28-46-1-0-165&lang=en 2014-07-22 7:57

Re:

2014-07-29 Thread David Karlsen
Maybe create an instance and stick it into a camel header (the header will follow the exchange, and thus the lifecycle of passing through the route).? 2014-07-29 22:10 GMT+02:00 rickaroni : > Hi Michael, > > I hear you. The trouble is, sometimes the intermediate transports (e.g. > the > Camel S

Problems prettyPrinting JSON after camel 2.14.0 upgrade

2014-09-19 Thread David Karlsen
With the config: I get: .. because of Failed to set property: prettyPrint on: org.apache.camel.component.jackson.JacksonDataFormat@77ab22be. Reason: java.lang.IllegalArgumentException: Could not find a suitable setter for property: prettyPrint as there isn't a sette

Re: Problems prettyPrinting JSON after camel 2.14.0 upgrade

2014-09-21 Thread David Karlsen
derDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:83) ... 33 more 2014-09-20 19:05 GMT+02:00 Claus Ibsen : > Hi > > Don't you have more in the stacktrace or some other error? There is > maybe some NPE that hides this error. > > On Fri, Sep 19, 2014 at 1:53 P

Re: [bug]restConfiguration - jetty - endpointProperty

2014-09-27 Thread David Karlsen
I created an issue + PR: https://issues.apache.org/jira/browse/CAMEL-7868 2014-09-27 10:04 GMT+02:00 Claus Ibsen : > Hi > > Ah well spotted. You are welcome to log a JIRA ticket and work on a > patch. If you know github then we accept PRs from that. > http://camel.apache.org/contributing.html > >

Re: Problems prettyPrinting JSON after camel 2.14.0 upgrade

2014-09-27 Thread David Karlsen
Any update on this? 2014-09-21 22:28 GMT+02:00 David Karlsen : > java.lang.IllegalStateException: Failed to load ApplicationContext > > at > org.springframework.test.context.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:91) &g

Re: Problems prettyPrinting JSON after camel 2.14.0 upgrade

2014-09-27 Thread David Karlsen
Created https://issues.apache.org/jira/browse/CAMEL-7874 2014-09-27 17:13 GMT+02:00 Babak Vahdat : > Hi, > > I looked a bit into the codebase regarding this and spotted some space for > improvement: > > - First of all there's a copy/paste typo at the following line (pasted from > the previous co

Re: Problems prettyPrinting JSON after camel 2.14.0 upgrade

2014-09-28 Thread David Karlsen
Did not work with latest published snapshots - but perhaps a successful build&deploy has not yet completed? 2014-09-27 22:40 GMT+02:00 Babak Vahdat : > Thanks for raising the ticket which is fixed now, both on the master as > well > as the 2.14.x branch. Would you mind to give it a shot to see if

Re: Problems prettyPrinting JSON after camel 2.14.0 upgrade

2014-09-28 Thread David Karlsen
Tried building it earlier on before I sent the mail - but it failed on some missing jboss component (built the whole tree). Anyways - working fine with 2.14.1-SNAPSHOT! Thanks! 2014-09-28 21:10 GMT+02:00 Babak Vahdat : > Ah but much easier is to build the master branch on your box locally using >

Re: Tail like File component?

2014-11-17 Thread David Karlsen
You can try the stream component: http://camel.apache.org/stream.html 2014-11-17 21:32 GMT+01:00 Gonzalo Vasquez : > Hi everybody. > > Is it possible to use the File component (or other component) as a > consumer to mimic unix 'tai'l command? What I mean is: monitor a folder / > file and do somet

Re: how to execte jdbc IN clause statement

2014-11-22 Thread David Karlsen
Would a collection of integers work? 22. Nov. 2014 13:06 skrev "chaituu" : > 22 04:02:32,011 #0 - timer://timer1 TimerConsumer WARN > warnMarkerIgnoringBase.java > :136Error processing exchange. Exchange[Message: UPDATE TEST SET > FLAG='Y' WHERE ID

Re: how to execte jdbc IN clause statement

2014-11-22 Thread David Karlsen
Would a collection of integers work? 22. Nov. 2014 13:06 skrev "chaituu" : > 22 04:02:32,011 #0 - timer://timer1 TimerConsumer WARN > warnMarkerIgnoringBase.java > :136Error processing exchange. Exchange[Message: UPDATE TEST SET > FLAG='Y' WHERE ID

Re: how to execte jdbc IN clause statement

2014-11-23 Thread David Karlsen
You can still run a prepared statement - but the db-server will have to parse and compile the different versions (one per length variant of the list). http://www.javaranch.com/journal/200510/Journal200510.jsp#a2 2014-11-23 17:25 GMT+01:00 Claus Ibsen : > Hi > > The IN is not supported. I am not s

Re: Duplicate Elimination

2014-12-03 Thread David Karlsen
Just combine the two currencies into one string and use that as the unique value... 2014-12-03 9:52 GMT+01:00 contactreji : > Hi > > I have a requirement where I need to omit duplicate records. Consider > sample > below > > * > > INR > USD > 60.2 > > > INR > USD > 58.2 > > > YEN > INR > .52

Re: Duplicate Elimination

2014-12-04 Thread David Karlsen
Sure - some XSLT will do it - and it becomes a string. I opened an issue some time ago about having the possibility to make the messageId a complex object, possibly holding several keys: https://issues.apache.org/jira/browse/CAMEL-7461 2014-12-03 12:44 GMT+01:00 contactreji : > Thanks David > > A

Re: Cryptography - real world use

2014-12-24 Thread David Karlsen
Sure! The crypto is agnostic of transport and payload - stick it in between the marshalling and the endpoint - and inbetween endpoint and unmarshalling and you should be fit for fight. Good luck! 2014-12-24 11:17 GMT+01:00 James Green : > > I'm looking at Camel's CryptoDataFormat and am wondering

Re: Cryptography - real world use

2014-12-24 Thread David Karlsen
have this mentally modelled yet... > > On 24 December 2014 at 10:22, David Karlsen > wrote: > > > Sure! The crypto is agnostic of transport and payload - stick it in > between > > the marshalling and the endpoint - and inbetween endpoint and > unmarshalling > > an

Re: Rollback / Transactions for File operations

2015-01-23 Thread David Karlsen
You can have a look at http://commons.apache.org/proper/commons-transaction/ and possibly my adaption into a spring PlatformTransactionManager of it: https://github.com/davidkarlsen/Commons-Transaction-Spring-Integration 2015-01-23 17:35 GMT+01:00 arnoldmad : > Hi ! > > I have a simple applicatio

skipDuplicate/removeOnFailure flags for file2 component

2015-01-29 Thread David Karlsen
The docs on http://camel.apache.org/file2.html says it contains support for idempotent-consumer built directly into the component - but it does not expose the flags skipDuplicate/removeOnFailure which the idempotent consumer does: http://camel.apache.org/idempotent-consumer.html is there any chanc

Re: camel-jackson unmarshalling question

2015-04-29 Thread David Karlsen
It can probably be done by adding jackson annotations: http://wiki.fasterxml.com/JacksonAnnotations "Polymorphic ...:" 2015-04-29 7:54 GMT+02:00 Claus Ibsen : > Hi > > No this is not supported today. > > Though we could maybe add that, so you can configure this on the data > format. > > On Mon,

Re: XML validation with Camel (multiple XSDs)

2017-08-10 Thread David Karlsen
We've done the same thing - and went with xpath and CBR - works fine. 2017-08-10 16:41 GMT+02:00 Burkard Stephan : > Hi > > I have a use case where multiple different XML schema files exist (for > different types of messages or schema versions). Whenever a message > arrives, I have to validate it

Re: Spring boot gives null pointer in xml based camel configutaions

2018-06-27 Thread David Karlsen
No - it is not wrong to create .war's: https://docs.spring.io/spring-boot/docs/1.5.14.RELEASE/reference/htmlsingle/#howto-create-a-deployable-war-file - but not the most common deployment model. Anyway - we're drifting away from the original problem which is the NPE in the CamelBeanPostProcessor.p

Re: Spring boot gives null pointer in xml based camel configutaions

2018-06-27 Thread David Karlsen
ead XML? I am deploying Spring Boot Camel > Java routes as war's with no issues. > > On Wed, Jun 27, 2018 at 2:09 PM, David Karlsen > wrote: > > > No - it is not wrong to create .war's: > > https://docs.spring.io/spring-boot/docs/1.5.14.RELEASE/ > > refer

Re: split(), shareUnitOfWork & transacted()

2018-07-20 Thread David Karlsen
They won't share transactions as these are backed by spring and kept as threadlocals Den fre. 20. jul. 2018, 01:07 skrev Iglehart, Vince < vince.igleh...@kniferiver.com>: > I have a question on propagating a transaction with split() and > shareUnitOfWork(). I have a route defined below in Camel 2

Re: [ANNOUNCEMENT] Apache Camel 2.23.1 Released

2019-01-18 Thread David Karlsen
There are some 2.23.0 links on http://camel.apache.org/camel-2231-release.html Den fre. 18. jan. 2019 kl. 08:55 skrev Gregor Zurowski < gre...@list.zurowski.org>: > The Camel community announces the immediate availability of the Camel > 2.23.1 patch release. This release contains 33 fixes and imp

Re: Jasypt Support in Spring Boot

2019-06-08 Thread David Karlsen
There is a component for integrating boot and jasypt (don't have the link here now) try that instead. lør. 8. jun. 2019, 03:56 skrev Stanley Brown : > Hi, > > I'm receiving the following error trying to use Jasypt and the > BridgePropertyPlaceholderConfigurer from a XML configuration in a Spring

camel3 properties component?

2019-07-21 Thread David Karlsen
See [*] for validation error by the camel maven plugin for the properties component. Has this been removed in camel3? What is the new syntax/replacement? [*] [INFO] Detected Camel version used in project: 3.0.0-M4 [INFO] Validating using Camel version: 3.0.0-M4 [INFO] Endpoint validation passse

Re: camel3 properties component?

2019-07-21 Thread David Karlsen
Thanks - it passes now! søn. 21. jul. 2019 kl. 12:58 skrev Claus Ibsen : > Make sure you use > > ${xxx} in the simple syntax for Camel 3 > > On Sun, Jul 21, 2019 at 12:15 PM David Karlsen > wrote: > > > > See [*] for validation error by the camel maven plugin fo

Re: Problems with sftp in Camel 2.11.0

2013-04-29 Thread David Karlsen
Probably if the RC's are available off central the testing/use of them would increase. 2013/4/29 Claus Ibsen > Hi Bengt > > Thanks for the patches et. all. > > I just want to remind you and others listening that we did 4 RC rounds > of the 2.11.0 release, so it would be ideal if people had test

Re: Where to download camel 2.11.1 jars

2013-05-10 Thread David Karlsen
AFAIK it is not released yet. Try the 2.11.1–SNAPSHOT version. Or one of the other snapshot versions. Den 10. mai 2013 09:39 skrev "preety somani" følgende: > Hi, > > I want to use features of camel2.11.1 to set the soap version in camel > spring ws for a soap end point. But not able to find th

Re: Camel Spring 2.11 + JDK 1.7_u17

2013-05-31 Thread David Karlsen
Do you have an old jaxb-impl in your application? You could also update your jdk patch level. Den 31. mai 2013 08:37 skrev "Jose" følgende: > Hi, > > I am using camel-spring with JKD 1.7.0_17 and I am getting a > NullPointerException when the applicationContext is parsed. This is the > trace: > >

Re: Camel always sending MQRFH2 headers to target WebsphereMQ queue.

2013-06-04 Thread David Karlsen
Does this help? http://publib.boulder.ibm.com/infocenter/wmqv7/v7r1/index.jsp?topic=%2Fcom.ibm.mq.doc%2Fmi21980_.htm 2013/6/3 shashi.kant > I have been trying to send message to a IBM websphere MQ queue which has to > be in IBM500 charset, MQFMT_STRING format and encoding 273 from a Camel > 2.1

Re: JMS component performance issue with IBMMQ

2013-06-25 Thread David Karlsen
Are both MOMs using persistent messaging - persisting makes it a lot slower. 2013/6/25 Mohammad Shadab Ali > Hi Christian, > > I am using non ssl IBMMQ queue manager through a IBMMQ channel and kept > the WMQConstants.DELIVERYMODE mode as 1 and TransportType as > WMQConstants.WMQ_CM_CLIENT > >

Re: conditional uri

2013-07-16 Thread David Karlsen
You could either make it configurable with placeholders: http://camel.apache.org/using-propertyplaceholder.html or use a when choice: http://camel.apache.org/spring-xml-extensions.html 2013/7/16 boris > How could I have a conditional uri string? > For example, > I have for testing. > I want t

Re: save message across exchanges

2013-07-31 Thread David Karlsen
You could place a copy in a header or preferably a property. Den 31. juli 2013 20:54 skrev "javamonkey79" følgende: > Is there a way to store a message across exchanges? > > It seems like you should be able to put something in to the context, but > I’m > not seeing anything obvious. > > For now,

Re: camel-spring-batch 2.11.1 breaks previous working routes

2013-08-18 Thread David Karlsen
Can you provide a strippped down project or unit test that shows the error? 2013/8/16 Gardella juan > Hi all, > > I've used camel-spring-batch from a while. I recently upgrade from 2.11.0 > to > 2.11.1 and the route that use camel-spring-batch have failed. I detect that > the problem is in 2.11

Re: Camel MQ help needed

2012-09-28 Thread David Karlsen
You can set that option directly on the ibm mq connection factory Den 28. sep. 2012 18:52 skrev "realice" følgende: > thanks, turns out the mq queue needs a property of targetClient with a > value > of MQJMS_CLIENT_NONJMS_MQ(1), is there any way i can specify that in camel > route? right now i ha

Re: Error When Communicating with 3rd Party SOAP Service

2012-10-18 Thread David Karlsen
Are you on an old sun jdk? They have that problem. Upgrade to the latest version. Den 18. okt. 2012 17:38 skrev "James Carr" følgende: > > Hey All, > > I've used CXF for quite sometime and this week I was putting together > a client for a 3rd party service and get the following error when > trying

Re: ActiveMQ and WebSphereMQ

2012-10-26 Thread David Karlsen
it contains javax.jms because the jar contains the SPEC - the JMS API. Then you add vendor jars to provide the connection factory implementations etc. 2012/10/26 Caa_man : > Jens is right! > I studied all dependencies which were loaded with ActiveMQ. One of > dependencies is geronimo-jms_1.1_spec.

Re: Use @RunWith(CamelSpringJUnit4ClassRunner.class) & @UseAdviceWith + find Mocks after starting camel context

2012-10-30 Thread David Karlsen
Yes. This is possible and how we test in my shop. You can also disable jmx for the test with @disableJmx which also adds value. Have a nice Camel ride. Den 30. okt. 2012 16:12 skrev "Cyril Lakech" følgende: > Hi, > > I would like to use 3 excellent camel features together in my test: > > @RunWith

Strange MockEndpoint.expectedBodiesReceived behaviour

2012-11-05 Thread David Karlsen
I'm confused about how expectedBodiesReceived behaves. I have a route where I mock a jms endpoint (the endpoint is sent to in an onException route as follows: java.lang.Exception true

Re: Strange MockEndpoint.expectedBodiesReceived behaviour

2012-11-05 Thread David Karlsen
Same: Body of message: 0. Expected: <: > Try setting the expectation before you actually hit the endpoint with any > messages. Hit the endpoint with your test logic. Then assert. > > Does it work then? > > Regards. > > Sent from a mobile device > On 5 Nov 2012

Re: Strange MockEndpoint.expectedBodiesReceived behaviour

2012-11-05 Thread David Karlsen
ualBody, expectedBody); assertEquals("Body of message: " + i, expectedBody, actualBody); } } }); } 2012/11/5 David Karlsen : > Same: > > Body of message: 0. Expected: < > If I had the order like before (defining the asserts a

Re: transactional client vs transacted=true on a jms route?

2012-11-06 Thread David Karlsen
No one? Are these equivalent? 2012/11/5 David J. M. Karlsen : > Hi. > > I have a route where the from endpoint is jms based. > The end of the route will be a jms endpoint as well. > I also have errorhandling in an onException clause which will put the > message on a third jms queue. > > So in shor

Re: transactional client vs transacted=true on a jms route?

2012-11-06 Thread David Karlsen
TransactionManager as defined on the Transaction > Client<http://camel.apache.org/transactional-client.html>link you have > referenced. > > Make sense? > > Best Regards, > Scott ES > > On Tue, Nov 6, 2012 at 10:46 AM, David Karlsen wrote: > >> No one? >>

Re: transactional client vs transacted=true on a jms route?

2012-11-06 Thread David Karlsen
This makes sense - so with the scope is the route - not the endpoint. Which makes sense for my usecase (which I initially started out with in my mail) - where the last endpoint in my route is a jms one - and the first one an jms one - so in this case I should use transacted to ensure that both end

Re: How to mock a bean in a route?

2012-11-07 Thread David Karlsen
I have a follow up question on this. I have this route: /ledgerres:Document

Re: How to mock a bean in a route?

2012-11-08 Thread David Karlsen
> > Alternatively, you can just use JMS in your unit test: > > > https://github.com/jwcarman/camel-transaction/blob/master/src/test/java/com/carmanconsulting/camel/AbstractRouteBuilderTest.java > > > On Thu, Nov 8, 2012 at 2:34 AM, David Karlsen > wrote: > > I h

Re: Rollback and redeliver JMS message between Websphere and MQ via Camel

2012-11-09 Thread David Karlsen
Configure number of redeliveries to be 0. You might also be interested in looking into the docs for the transactional error handler which is default for transacted routes. Den 9. nov. 2012 10:09 skrev "De Backer Frederik (Belfius)" < frederik.debac...@belfius.be> følgende: > Hello, > > I have a me

Fwd: Trouble when combining cxf server services and cxf-over-camel transport for a client service

2012-11-09 Thread David Karlsen
Cross-posting to camel as this is camel related. -- Videresendt melding -- Fra: "David Karlsen" Dato: 9. nov. 2012 16:19 Emne: Trouble when combining cxf server services and cxf-over-camel transport for a client service Til: Hi. I have a cxf based client service which

Re: How to mock a bean in a route?

2012-11-10 Thread David Karlsen
That gave a 404 too :) 2012/11/8 James Carman : > Sorry, I've been tweaking the code: > > https://github.com/jwcarman/camel-transaction/blob/master/src/test/java/com/carmanconsulting/camel/TestJdbcRouteBuilder.java > > On Thu, Nov 8, 2012 at 3:07 PM, David Karlsen wrote: &g

Re: Trouble when combining cxf server services and cxf-over-camel transport for a client service

2012-11-12 Thread David Karlsen
rd Time) - its 6pm here, so give it > another 12 hours :-) > > Cheers > Jason > > On Mon, Nov 12, 2012 at 6:51 PM, David Karlsen wrote: >> No one? >> >> 2012/11/9 David Karlsen : >>> Hi. >>> >>> I have a cxf based clien

Re: how to break out of a batch?

2012-12-01 Thread David Karlsen
AFAIK you can end() the route as shown here: http://camel.apache.org/predicate.html Den 30. nov. 2012 01:22 skrev "bung_ho" følgende: > Using camel 2.10. > > I have a route similar to the following: > > > > >

Re: Redirecting a soap request to external webservice

2012-12-04 Thread David Karlsen
I see that this one refers to a wsdl in the configuration. Would it be feasable to build a generic one that do not need to configure the wsdl. I'd like to build a generic soap router and route based on the contents of a soap header. I tried using CXF in payload and/or message mode, but it either fa

Re: Access a previous message

2012-12-14 Thread David Karlsen
Save the untransformed message in å header ør property Den 14. des. 2012 16:59 skrev "dmcamp" følgende: > Hello All, > > I have the following situation: > In my camel route I'm sending an object, which is then transformed by an > endpoint, then the transformed object is sent by email by another e

Re: JMS persistence options have no effect

2012-12-17 Thread David Karlsen
Haven't followed the thread very close, but be sure to enable explicitQos for these flags to kick in http://static.springsource.org/spring/docs/3.0.x/javadoc-api/org/springframework/jms/core/JmsTemplate.html#isExplicitQosEnabled() http://camel.apache.org/jms.html 2012/12/17 Christian Müller : > I

Re: camel-mail regarding xml configuration

2013-01-10 Thread David Karlsen
Use setHeader or configure properties on the endpoint. Den 10. jan. 2013 15:38 skrev "tamil13" følgende: > How to configure below code into camel-context.xml file? > > template = context.createProducerTemplate(); > ProducerTemplate template; > Map map = new HashMap(); > map.put("To", "davscl...@a

Re: Filtering XML exchange body content

2013-01-23 Thread David Karlsen
Maybe try an xslt transform? Den 23. jan. 2013 23:26 skrev "Martin Stiborský" følgende: > Hello guys, > is it possible with standard Camel weapons, to filter XML body with XPath > to contain only selected data? > I tried various combination of .setBody(), .XPath() and filter(). > I believe the so

Re: Always receive String Message even with jmsMessageType set to Bytes

2013-02-14 Thread David Karlsen
Oh- of course. I overlooked the fact that it was a consuming route. Btw. Wmq sets a custom IBM prefixed property defining the sending charset. Ping me directly if you want me to look it up tomorrow at work where I have the code. Den 14. feb. 2013 16:44 skrev "Claus Ibsen" følgende: > On Thu, Feb

Re: Invoking a static bean method in my camel xml

2013-02-27 Thread David Karlsen
Yes, it's not very well documented. Here is an example: in the middle of a route I do: which will replace the body after the step in the route with the substring 150 chars into the incoming payload. 2013/2/27 bikehead : > Is it possible to invoke a static method to a class within my camel.xml

Re: cxf response

2013-02-27 Thread David Karlsen
For the jaxb stuff, see: "Partial marshalling/unmarshalling" on http://camel.apache.org/jaxb.html 2013/2/27 Smith-John : > I also tried it with generated JAXB classes from my wsdl/xsd and marshalling. > > But > from("cxf:cxfEndpoint?wsdlURL&dataFormat=PAYLOAD").unmarshal(jaxb).process(myProcessor)

Re: jackson2

2013-03-04 Thread David Karlsen
On it - will come up with a github branch shortly. 2013/2/22 Willem jiang : > Current I don't think camel support it out of box. But any contributions are > welcomed :) > > > -- > Willem Jiang > > Red Hat, Inc. > FuseSource is now part of Red Hat > Web: http://www.fusesource.com | http://www.redh

Re: jackson2

2013-03-04 Thread David Karlsen
https://github.com/davidkarlsen/camel/tree/jackson2 https://github.com/davidkarlsen/camel/commit/f7d8576409bd3dfa511e029508f65ca1c007d2db 2013/3/4 David Karlsen : > On it - will come up with a github branch shortly. > > 2013/2/22 Willem jiang : >> Current I don't think cam

Re: jackson2

2013-03-04 Thread David Karlsen
There is a change in packagenames and GAV for jackson2 vs jackson1 - else it's pretty much the same in the cases I've been using it. 2013/3/4 Claus Ibsen : > On Mon, Mar 4, 2013 at 10:51 AM, David Karlsen wrote: >> On it - will come up with a github branch shortly. >> &

Re: jackson2

2013-03-05 Thread David Karlsen
4, 2013 at 11:15 AM, David Karlsen wrote: >> https://github.com/davidkarlsen/camel/tree/jackson2 >> https://github.com/davidkarlsen/camel/commit/f7d8576409bd3dfa511e029508f65ca1c007d2db >> >> >> 2013/3/4 David Karlsen : >>> On it - will come up with a github bra

Re: dot generation with maven plugin -> classNotFoundException

2011-04-04 Thread David Karlsen
You can probably work around it by adding: http://repo1.maven.org/maven2/org/slf4j/slf4j-simple/ to the plugins dependency list. 2011/4/4 Michael Dewitte > Hi, > > I was trying to get some visualisation of my developped route, and so I > tried the mvn camel:dot target on my route. > But then I g

Re: Context Monitoring

2011-04-28 Thread David Karlsen
Could this be something: http://www.infoq.com/news/2008/06/orbitz-opensource-erma ? Been wondering about the same myself. 2011/4/28 Xavier Coulon > Hello, > > We are building a data integration solution (kinda ETL) with Camel, and we > need to monitor the whole processing. Especially, some cus

Re: Conceptual 'correctness' of using Camel Unit Tests

2011-05-05 Thread David Karlsen
Can they be run in parallel - or can modules be run in parallel - that could speed things up. 2011/5/5 Christian Schneider > I think it is only named wrong. The camel test support is written to > support integration > tests not unit tests. > > I think it is a very good idea to write real unit te

Re: Camel CommonJ component for Camel running in jee servers

2011-05-06 Thread David Karlsen
http://repo2.maven.org/maven2/com/bea/wlplatform/commonj-twm/1.1/commonj-twm-1.1.pom(pom only.). But available from geronimo: https://oss.sonatype.org/index.html#nexus-search;quick~commonj 2011/5/6 preben > > This feature > > http://camel.465427.n5.nabble.com/Re-RE-Usage-of-server-managed-thread

Re: RE : Usage of server managed thread of Websphere

2011-05-06 Thread David Karlsen
Also note that the same scheme exists for spring OOTB where the TaskExecutor is the abstraction on top of all of these. 2011/5/6 Claus Ibsen > On Fri, May 6, 2011 at 4:54 PM, Tarun Ramakrishna > wrote: > > Actually this could have been simply solved if camel core and all > > camel components de

Re: @XPath for an Integer

2011-05-30 Thread David Karlsen
NaN goes for any Number object. 2011/5/26 Claus Ibsen > On Thu, May 26, 2011 at 5:44 PM, boday > wrote: > > agreed...I'll update the patch. While we are at it, are there any other > > cases that should be addressed? > > > > I wonder if BigDecimal has any similar NaN stuff? > > > > > > bvahdat

Re: What is the meaning of payload in camel?

2011-06-03 Thread David Karlsen
Yes - it is the main data/contents of a message (exchange). An exchange contains the data plus headers. The headers are usually used to control sending through an endpoint - but is not part of the data sent. 2011/6/3 ltomuno > data? > content? > thanks -- -- David J. M. Karlsen - http://www

Re: What is the meaning of payload in camel?

2011-06-03 Thread David Karlsen
Yup - that would be the inbout message payload. 2011/6/3 Hadrian Zbarcea > Thanks David, > > In code that means Exchange.getIn().getBody(); > > Hadrian > > On Jun 3, 2011, at 2:27 PM, David Karlsen wrote: > > > Yes - it is the main data/contents of a message (excha

Re: Unable to catch exception from Camel.

2011-06-29 Thread David Karlsen
Here is my sample config: 2011/6/27 Sven Zethelius > Sorry, I didn't look at the stack trace close enough.

Re: slow reply for jms component when url contains replyTo

2011-07-17 Thread David Karlsen
Maybe better to provide a replyto resolver strategyinterface with a few implementations for vinning cases? Den 12. juli 2011 07:26 skrev "Claus Ibsen" følgende: > > On Mon, Jul 11, 2011 at 10:12 PM, Jim Newsham wrote: > > > > Hi Claus, > > > > Thanks for opening the jira issue, and for your comme

Re: Xquery endpoing with Import Module

2011-08-01 Thread David Karlsen
Could it be useful to have an spring implementation which follow their Resource abstraction? 2011/7/30 jmandawg > > It looks like you might be able to do something even simpler by calling > resolveMandatoryResource from within the ModuleURIResolver.  That way it > will resolve the import in the s

[Ignore] HTML testus...@camel.apache.org

2011-08-03 Thread David Karlsen
HTML test -- David J. M. Karlsen - http://www.linkedin.com/in/davidkarlsen

Re: Insert into CLOB Column in Oracle using JDBC Component

2011-08-06 Thread David Karlsen
What type is the column declared as? AFAIK it should be text. Den 4. aug. 2011 20:38 skrev "garyssidhu" følgende: > Hi , I am newbie to Camel's JDBC Component. I need to insert data into clob > column of Oracle 11g Table using Camel's JDBC Component. > > My route looks like this > > from("direct:r

Re: CAMEL SMTP Mail Componenet Issue on 64 Bit Windows 2008 Server

2011-08-10 Thread David Karlsen
Is the uri smtps or smtp?

Re: slow reply for jms component when url contains replyTo

2011-08-13 Thread David Karlsen
Hi - I would be very interested in this (and willing to test). We had to back out from using camel for our req/res jms (we now use jmstemplate directly) - especially because the persistentrelyqueuemanager (or something like that) seemed to use the same connection - so eventually the fw closed that

Re: Sending Nagios Passive Checks from Spring - HowTo ?

2011-08-13 Thread David Karlsen
Yes, while attempting to connect it timed out. You can debug by issing "telnet hostname port" or "telnet host:port" on the command line. 2011/8/13 Tereza Nedelescu > Thank you, that started things going. Now I have another error: > > Exhausted after delivery attempt: 1 caught: > java.net.SocketT

  1   2   >