Caused by: java.lang.IllegalStateException: ServiceConfiguration must provide a value!

2014-04-15 Thread ramana
I'm new to camel,, when i call webservice through camel i'm getting this exception pls help me anyone ,i'm very thankful to help me Caused by: java.lang.IllegalStateException: ServiceConfiguration must provide a value! at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.get

Re: Set header from velocity template

2014-04-15 Thread Willem Jiang
As the message header could be override or lost in the processor. My suggest is put the old message body into exchange property. Camel is copying the exchange properties by default. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English) http:/

Re: Transactions: Rollback Destination but Not Dead Letter Queue or Source

2014-04-15 Thread kraythe .
So I think there is a problem with the way rollback is implemented in relation to Camel. As far as I can tell there is no way to get the following working. package com.ea.wwce.camel.test.utilities; import com.ea.wwce.camel.utilities.data.RecordList; import com.ea.wwce.camel.utilities.transactions

Re: Set header from velocity template

2014-04-15 Thread dunnlow
ah! Thank you, works as expected: ${body} ${body} headers.currentBody ...albeit not as clean as a "toHeader" option on the velocity component :) -- View this message in context: http://camel.465427.n5.nabble.com/Set-header-using-velocity-template-tp5750248p5750271.html

Re: Camel transaction handler forces reconnecting to ActiveMQ

2014-04-15 Thread nqbeel
Also I did see that when I remove failover from the Broker URL it seems to be working fine. Currently its set to broker.url=failover:(ssl://server:61617)?maxReconnectDelay=6 Is there anything that needs to be changed to accommodate failover? -- View this message in context: http://camel

Re: Camel transaction handler forces reconnecting to ActiveMQ

2014-04-15 Thread nqbeel
Yes, I do have cache level set to CACHE_CONSUMER as recommended. Below is my spring configuration,

Re: Set header from velocity template

2014-04-15 Thread Bilgin Ibryam
Velocity will put the result of the evaluation in the message body, you cannot change that. But you could preserve the existing body by putting it into a header before calling velocity template, and then swap the template result with the previous body afterwards... HTH On 15 April 2014 18:13, d

Re: Set header from velocity template

2014-04-15 Thread dunnlow
Sorry, I should have given more detail. I am using velocity to create web pages. My template is an html formatted document (about 40 lines) that uses existing exchange headers. (This gets turned into a web page downstream.) In my (xml) route I have something like: However, this puts

Configuring JMS connection pool for WMQ

2014-04-15 Thread smadarapu
Hi I have been successfully running several routes connecting to a JMS queue using Websphere MQ. I have several routes each of them handling specific messages (using selectors). No I am at a point where the number of connections to the queue are growing and want to use a connection pool. I am try

AW: Set header from velocity template

2014-04-15 Thread jhm
> I currently use velocity to set the message body. Now, I would like to > use it to set a _header_. I haven't found any example of this. > Obviously I could write a processor/bean. Is there a better way? Why do you want to use velocity for that? Just from(...) .setHeader("headerName", cons

Re: Set header from velocity template

2014-04-15 Thread Bilgin Ibryam
Have you read the documentation and tried the example? $in.setHeader('fruit', 'orange') http://camel.apache.org/velocity.html On 15 April 2014 15:52, dunnlow wrote: > I currently use velocity to set the message body. Now, I would like to use > it to set a _header_. I haven't found any ex

Set header from velocity template

2014-04-15 Thread dunnlow
I currently use velocity to set the message body. Now, I would like to use it to set a _header_. I haven't found any example of this. Obviously I could write a processor/bean. Is there a better way? Thanks. -J -- View this message in context: http://camel.465427.n5.nabble.com/Set-header-fr

Re: Camel transaction handler forces reconnecting to ActiveMQ

2014-04-15 Thread kraythe .
has to wait. (To mock it I set it to expect more messages then it will ever get.) 09:12:06,352 INFO [CompositeTransactionImp] registerSynchronization ( com.atomikos.jms.ConsumerProducerSupport$JmsRequeueSynchronization@80553152) for transaction 20140415-091204_AtomikosTxnMgr0001

Re: Camel transaction handler forces reconnecting to ActiveMQ

2014-04-15 Thread Claus Ibsen
On Mon, Apr 14, 2014 at 3:24 PM, nqbeel wrote: > Trying to set up a route with transaction handling on a camel, this leads to > connection to the activeMQ drop and reconnect every few milliseconds is this > expected, is there a work around? > Do you use caching as recommended here, eg see that 2n

Re: JDBC component and jboss ds.xml file

2014-04-15 Thread Claus Ibsen
On Mon, Apr 14, 2014 at 8:53 PM, moj0002 wrote: > okay I figured it out I think, > > The CamelJdbcUpdateCount contains rows inpacted included rows DELETED, maybe > it is using a prepared statement behind the scene > > I first dumped all the headers and > found the property in the input header > >

AW: Split XML with xmlTokenizer and add root element?

2014-04-15 Thread jhm
> I think you are right. > currently, the result is a series of child elements and the parent > context information is not included in the result (except the namespace > binding information that can be extracted into the split child > elements). > > When I pushed the current implementation, I had

Re: Split XML with xmlTokenizer and add root element?

2014-04-15 Thread Aki Yoshida
I think you are right. currently, the result is a series of child elements and the parent context information is not included in the result (except the namespace binding information that can be extracted into the split child elements). When I pushed the current implementation, I had the code sitti

Split XML with xmlTokenizer and add root element?

2014-04-15 Thread cgiera
Hello, I have to deal with large xml data in our camel application. In the camel documentation I've found the splitting with the xmltokenizer(split().xmlTokenize()). First it looked fine for me, but then I noticed that there is no possibility to add the root element to the splitted xml's. Xml loo

Re: JDBC component and jboss ds.xml file

2014-04-15 Thread moj0002
okay I figured it out I think, The CamelJdbcUpdateCount contains rows inpacted included rows DELETED, maybe it is using a prepared statement behind the scene I first dumped all the headers and found the property in the input header Then this works I am still confused as to why I am loo