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

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

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: 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: 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: 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: 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: Single thread for same message group

2016-05-26 Thread David Karlsen
Maybe use an aggregator so you can assemble the total of messages. Or a resequencer. See the camel site for docs 26. mai 2016 3:07 p.m. skrev "NikheelRanjan" : > I am using camel's jms component and ibm based queues. > Problem statement: Each message is coming with some vehicle data and > vehicle

Re: Camel JMS, what is a "task" in maxMessagesPerTask?

2016-03-27 Thread David Karlsen
No - it's not tied to commitsize - it's for scaling up/down the threadpool / how long to keep threads sticking around for processing: http://docs.spring.io/autorepo/docs/spring-framework/2.5.x/api/org/springframework/jms/listener/DefaultMessageListenerContainer.html#setMaxMessagesPerTask(int) http:

Re: Reading an EBCDIC file from Apache Camel

2016-02-14 Thread David Karlsen
No - not aware of any camel components. It should however be easy to create some. 2016-02-15 4:33 GMT+01:00 sandeepkolla99 : > David, > > Thanks for your response. Do we have any camel component to do this. or Can > we integrate legstart with Apache Camel?. > > > Thanks, > Sandeep > > > > -- > Vie

Re: Reading an EBCDIC file from Apache Camel

2016-02-13 Thread David Karlsen
I have used http://legsem.com/ http://www.legsem.com/legstar/ . It works quite well. The version to choose depends on your licence requirements - and if you only need to unmarshal, or both marshal/unmarshal. 2016-02-12 20:42 GMT+01:00 sandeepkolla99 : > Hello friends, > I want to know if ther

Advice needed - throttling jms producing

2015-10-22 Thread David Karlsen
Usecase: I have a route which ends with sending to a jms queue. OutOnly - no req/res. In order to avoid producing too fast I want to throttle the production rate based on queue depth (or ratio of max queue depth). I have api's to query the queuedepth. I've been looking at http://camel.apache.or

Camel jms - reply handling

2015-10-19 Thread David Karlsen
Hi. We're observing that camel-jms is slow when doing request/reply (from the requesting side) using a shared replyQueue (setting correlationId == receivedMessage id at the responding side) when queuedepth increases. Underlying messaging middleware is IBM MQ. Looking at their documentation it seem

Re: COBOL data parse in Camel

2015-10-06 Thread David Karlsen
Would http://sourceforge.net/projects/cb2xml/ be of use? Although a little old (but so are copybooks :)) 2015-10-07 7:37 GMT+02:00 contactreji : > Thanks Charles > > I initially locked in on the bindy component. But now i see that there are > fields in the data and its repitition / cardinality wi

Re: Can I config a JMS routing app w/multiple PlatformTransactionManagers?

2015-09-18 Thread David Karlsen
Either use the transactionMangager configuration parameter: http://camel.apache.org/jms.html ( notation is #springBeanId to look it up in the spring registry). Or configure a transactionpolicy per route, and have the policy refer the txMgr. 2015-09-17 15:02 GMT+02:00 kov : > Apologies if this is

Re: what's happening to camel extra?

2015-09-04 Thread David Karlsen
Why not github? 4. sep. 2015 3:54 p.m. skrev "Victor NOËL" : > Are they even aware of the problem with sourceforge? > Maybe someone that is known there (such as a member of an Apache Project > ;) could tell them before they take the wrong decision? > > It's even worse than what I thought because a

Re: Camel and ISO 8583

2015-08-25 Thread David Karlsen
What about http://j8583.sourceforge.net/ ? 25. aug. 2015 12:40 skrev "Felix Thomas" : > I’ve been looking around for a component (or library) for working with ISO > 8583 messages with Camel. I’ve seen several initiatives out there, but they > seem to all kind of dead-end without any official integ

Re: MQConnectionFactory Error

2015-07-28 Thread David Karlsen
Make sure the JMS api jar is available and in one version only 29. jul. 2015 00.07 skrev "VijaySathya" : > I get the following error when my server starts ( and tries to initialize > the > spring beans - I have a main camel context spring based config file, which > imports 3 other spring config fi

RE: JMS MQ performance improvement

2015-07-28 Thread David Karlsen
IBM used to support pooling but have removed it in recent 7.x versions 28. jul. 2015 3.17 p.m. skrev "mytechnology" : > > Why is it so hard (so far impossible) to find a way of configuring connection > pool with IBM MQ. All the documentation is with websphere MDBs or ActiveMQ > and Camel. > > Has a

Re: Camel Bindy bean as Parameter in Spring Jms Component using @Consume

2015-07-14 Thread David Karlsen
You need to define a dataformat step in your route: https://camel.apache.org/data-format.html for bindy: http://camel.apache.org/binding.html alternatively you can bind the dataformat to the endpoint: http://camel.apache.org/binding.html 2015-07-14 17:53 GMT+02:00 vivekrao001 : > @Consume(uri =

Re: Transactional Client in Camel

2015-06-10 Thread David Karlsen
It commit's as the route is complete. Transcational client is nothing more than demarcating start of the transaction. It lives on top of Spring PlatformTransactionManager: http://camel.apache.org/transactional-client.html An endpoint midway in the route that does not support transactions is no diff

Re: Transactional Client in Camel

2015-06-09 Thread David Karlsen
You can span routes if it happens synchronously (same thread) that is using direct:endpoint between them 10. jun. 2015 07.31 skrev "yogu13" : > any one used transactions before with jms ? did that span across routes or > was limited to the route in which it was started ? > > Regards, > -Yogesh > >

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,

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

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

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:

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

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

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

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

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

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

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

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

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

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

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: 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: 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: Sample code for custom ThreadPoolFactory which hook into WebSphere

2012-06-25 Thread David Karlsen
This one works OOTB: http://static.springsource.org/spring/docs/3.0.x/javadoc-api/org/springframework/scheduling/commonj/WorkManagerTaskExecutor.html 2012/6/25 Preben.Asmussen : > Hi Mohammad > > I worked on extending Camels DefaultExecutorServiceStrategy and use of > CommonJ workmanagers a year a

  1   2   >