Camel Websphere MQ Error 2012

2010-12-06 Thread Mark Borner
Hi all: I've been reading up on how to configure Camel for use under Websphere and Websphere MQ. I've gotten things working except for a nagging error: com.ibm.mq.MQException: MQJE001: Completion Code 2, Reason 2012 The route that is having the problem is reading from a DB and putting the me

Re: Abstracting Routes using Components

2010-12-06 Thread kristofsajdak
Looking forward to it :-) -- View this message in context: http://camel.465427.n5.nabble.com/Abstracting-Routes-using-Components-tp3234703p3294704.html Sent from the Camel - Users mailing list archive at Nabble.com.

Passing filename to EXEC

2010-12-06 Thread bbuzzard
I created a route in Java that passed the filename to a Camel Exec function like this: public void configure() throws Exception { from("file:c:/aaa/FromZip") .setHeader("CamelExecCommandArgs", simple(" ${file:name}")) .to("exec:c:/aaa/Scripts/test.bat"); } and this worked perfectly

Re: Abstracting Routes using Components

2010-12-06 Thread Claus Ibsen
Hi Kristof Thanks for posting and keeping us updated. I know Ashwin is working on this as well and I think he got most part working. So we ought to have something to show in this month. Then we all can take a look and have it improved a bit here and there. Your solution looks cool though, so gre

ProtocolBuf test with Jetty

2010-12-06 Thread Paulo Roberto
Guys, I want build a test using protocolbuf inside a Jetty body. import java.io.InputStream; import junit.framework.TestCase; import org.apache.camel.CamelContext; import org.apache.camel.Exchange; import org.apache.camel.Message; import org.apache.camel.Processor; import org.apache.camel.Produ

Re: Splitted exchange has incorrect correlation ID ?

2010-12-06 Thread Claus Ibsen
Hi Thanks for reporting this. I have created a ticket https://issues.apache.org/jira/browse/CAMEL-3395 And will commit a fix shortly (if my fix passed the tests) On Thu, Dec 2, 2010 at 2:31 PM, sebastien.petrucci wrote: > > Hello, > > I'm an Apache Camel newbie and as I was digging into it I f

Re: XML performance concerns

2010-12-06 Thread Charles Moulliard
Hi Patrice, Camel uses the javax.xml.xpath librairies of the KDK. To parse the document, it uses DOM class of org.w3c.dom.Document, Node, ... But you can use a different documentType to convert the string into a Sax stream instead of a DOM /** * Configures the document type to use.

Re: XML to FixedLength

2010-12-06 Thread Claus Ibsen
On Mon, Dec 6, 2010 at 3:16 PM, mikaelfj wrote: > > Hi, > > I'm in the process of transforming XML to FixedLength, by > > - using jaxb to unmarshal XML to Java > - using ? to transform Jaxb classes to bindy-annotated classes > - using bindy to marshal BindyFixedLengthDataFormat to fixed length rec

XML to FixedLength

2010-12-06 Thread mikaelfj
Hi, I'm in the process of transforming XML to FixedLength, by - using jaxb to unmarshal XML to Java - using ? to transform Jaxb classes to bindy-annotated classes - using bindy to marshal BindyFixedLengthDataFormat to fixed length records. I've been unable to locate a smart way of going from t

XML performance concerns

2010-12-06 Thread patrice.godard
Hi, I'm handling big XML messages (they may be a few MB big). I'm concerned about potential performance issues. How is XML handled internally in Camel? What happens when I call xpath() in a camel route? What is the XPATH engine used? Is the whole XML parsed into a DOM W3C Document? Is there any a

Re: Hor to route using objects

2010-12-06 Thread Claus Straube
Hi, I'm sure will not get a java object back as http response ;) You should read this documentation http://camel.apache.org/http.html and perhaps write a simple test to check out how your response looks like. Then you can convert it to a java bean or wath ever you want. Best regards - Claus

Re: Hor to route using objects

2010-12-06 Thread nkrust
claus.straube wrote: > > Hi. > > You can use camel in your java class like this: > > @EndpointInject(uri="direct:start") > > protected ProducerTemplate start; > > ... > > start.sendBody(body); > > > The route should look like this: > > from("direct:start") // This is a java class and th

Re: Cannot handle Exception thrown from Splitter Expression

2010-12-06 Thread Claus Ibsen
Hi Thanks for reporting. The issue is that the exception occurs in the evaluate of the expression which happens before Camel routes the splitted message. Then the exception is caught by the splitter EIP and it regard the exception as being exhausted. And therefore the onException doesn't kick in.

Re: Performance issues when using camel-activemq and transactions.

2010-12-06 Thread Charles Moulliard
Hi Ioannis, Here are some links that could help you : http://fusesource.com/wiki/display/ProdInfo/FUSE+Message+Broker+Performance+Tuning+Guide http://fusesource.com/collateral/23/ But using persistence really reduces performance on ActiveMq Regards, Charles -- View this message in context:

Re: Performance issues when using camel-activemq and transactions.

2010-12-06 Thread iocanel
Anyone? - Ioannis Canellos http://iocanel.blogspot.com http://iocanel.blogspot.com -- View this message in context: http://camel.465427.n5.nabble.com/Performance-issues-when-using-camel-activemq-and-transactions-tp3284122p3293861.html Sent from the Camel - Users mailing list archive at Na

camel-jetty + authentication JAAS

2010-12-06 Thread Charles Moulliard
Hi, I try to use JAAS authentication within a camel route using SecurityHandler of Jetty http://camel.apache.org/schema/spring";> http://localhost:8080/services?handlers=securityHandler"/> The authentication works fine (I can provide the username + passord in t

Re: idempotentConsumer and eager option

2010-12-06 Thread jmh
found ! thank you Claus -- View this message in context: http://camel.465427.n5.nabble.com/idempotentConsumer-and-eager-option-tp3293765p3293804.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: idempotentConsumer and eager option

2010-12-06 Thread Claus Ibsen
A good idea is to check the unit test source code of camel-core eg see: IdempotentConsumerEagerTest On Mon, Dec 6, 2010 at 10:58 AM, jmh wrote: > > Hi, > > how to configure eager=true in this use case: > > from("activemq:inprogress?transferExchange=true") >                                .rout

idempotentConsumer and eager option

2010-12-06 Thread jmh
Hi, how to configure eager=true in this use case: from("activemq:inprogress?transferExchange=true") .routeId("inProgress") .idempotentConsumer( simple("${property.gedFileName}#$

Re: aggregation strategy + JMS concurrentConsumers + splitter in streaming mode

2010-12-06 Thread jmh
Hi Claus, yes I'm using ActiveMQ and your suggestion could solve my problem :-) Thank a lot JM -- View this message in context: http://camel.465427.n5.nabble.com/How-create-aggregation-strategy-with-JMS-concurrent-Consumers-and-a-splitter-in-streaming-mode-tp3293712p3293723.html Sent from th

Re: aggregation strategy + JMS concurrentConsumers + splitter in streaming mode

2010-12-06 Thread Claus Straube
Hi, perhaps you want to take a look at ActiveMQ Message Groups. I think this could solve your problem (if you're using ActiveMQ). http://activemq.apache.org/message-groups.html Best regards - Claus On 06.12.2010 09:40, jmh wrote: Hello, a common requirement with JMS is to consume messages

Re: [Serialization] CamelAuthentication is null

2010-12-06 Thread Olivier.Roger
I also remarked that using the NMR adds another entry in the exchange header : NMRMessage which holds a copy of the message before entering the NMR. I was wondering what is it used for ? -- View this message in context: http://camel.465427.n5.nabble.com/Serialization-CamelAuthentication-is-nu

aggregation strategy + JMS concurrentConsumers + splitter in streaming mode

2010-12-06 Thread jmh
Hello, a common requirement with JMS is to consume messages concurrently in multiple threads in order to make an application more responsive. I agree but I have a question about aggregation strategy with the architecture below : in my spring context : ...