Re: [Aggregator] oldExchange always null ?

2010-09-06 Thread Olivier.Roger
Thanks for your help claus, I fact the issue was in the aggregationStrategy. I transformed the message and the correlationId was lost. Setting back the id solve the issue. -- View this message in context: http://camel.465427.n5.nabble.com/Aggregator-oldExchange-always-null-tp2805136p2805708.h

Re: snapshots stale?

2010-09-06 Thread Claus Ibsen
Hi Thanks for reporting. Yeah Apache Hudson has issues building the snapshots https://hudson.apache.org/hudson/job/Camel/ So we have fixed the pieces and it should be able to build and publish snapshots later today when it runs the next job. On Mon, Sep 6, 2010 at 9:12 PM, Lorrin Nelson wrot

Re: Sending POJOs on Message Queues?

2010-09-06 Thread Christian Schneider
Hi Glen, it depends on how you want to transmit the objects. If you want to have them serialized by java serialization then they need to implement serializeable. If you want to transmit them as xml then you do not have to add anything as they are already jaxb objects. But you have to initial

Re: where to attach the JMS options

2010-09-06 Thread Claus Ibsen
Its used by the producer to indicate which JMS type to send the message as. So you need it on the producer side only. On Tue, Sep 7, 2010 at 12:41 AM, Glen Mazza wrote: > Hello, for the JMS Component, where do I place the options[1] (those > settings after the "?") -- within the from("jms:FOO.B

Re: Is there a way to split the content of a XML file when we reach a size of 50 MB

2010-09-06 Thread Claus Ibsen
On Mon, Sep 6, 2010 at 3:30 PM, Charles Moulliard wrote: > Hi, > > Is there a way to split the content of a XML file when we reach by example > the size of 50 MB ? > You can use XPath to split it if its possible to define an expression which splits it nears the sizes you want. > Regards, > > Ch

Re: Using Camel-ftp to write file with windows-1252 encoding

2010-09-06 Thread Willem.Jiang
Did you try to set the exchange.setProperty(Exchange.CHARSET_NAME, "windows-1252") like this? And I need to check your route to see if there is anything that I missed. Willem Roland Villemoes wrote: > > Hi > > I am using Camel-2.2.0 and camel-ftp-2.2.0. > > The issue is that i am using cam

Re: TypeConverters in OSGi

2010-09-06 Thread Willem.Jiang
How did you create the camel context? camel-core-osgi is packed into camel-spring as the private package, so you don't need to deploy it into OSGi platform. Willem bstanoje wrote: > > Hi, > > since moving to camel-2.4.0 I'm not able to use the TypeConverters inside > the OSGi runtime (equinox

Re: Is there a way to split the content of a XML file when we reach a size of 50 MB

2010-09-06 Thread Willem Jiang
Hi Charles, How about using Stax API[1] XmlEventReader to pull the XML inputstream and Write the XML with XmlEventWirte in your customer bean? [1]http://download.oracle.com/docs/cd/E17802_01/webservices/webservices/docs/2.0/tutorial/doc/StAX4.html Willem Charles Moulliard wrote: Hi, Is the

Re: where to attach the JMS options

2010-09-06 Thread Willem Jiang
Hi Glen, Glen Mazza wrote: Hello, for the JMS Component, where do I place the options[1] (those settings after the "?") -- within the from("jms:FOO.BAR?options...") of the route or within the Template.sendBody("jms:FOO.BAR?options...") or both places or does it depend on the option I'm setting

Re: AW: Sending POJOs on Message Queues?

2010-09-06 Thread Glen Mazza
Thanks, Christian. It turned out I do need to have the JAXB objects implement the Serializable marker interface (like here[1], but I didn't need toString() as it suggests) if I'm going to be sending them or reading them from a jms queue. But I don't need Serializable if I'm using the "direct"

where to attach the JMS options

2010-09-06 Thread Glen Mazza
Hello, for the JMS Component, where do I place the options[1] (those settings after the "?") -- within the from("jms:FOO.BAR?options...") of the route or within the Template.sendBody("jms:FOO.BAR?options...") or both places or does it depend on the option I'm setting? For example, to add jmsMe

Re: SMPP sourceAddrNpi bug.

2010-09-06 Thread Christian Mueller
Hello Pavel! I raised a JIRA and fixed the issue with your proposed patch. https://issues.apache.org/activemq/browse/CAMEL-3107 Feel free to test the current TRUNK whether it fixes your problem. Thanks, Christian -- View this message in context: http://camel.465427.n5.nabble.com/SMPP-sourceAd

snapshots stale?

2010-09-06 Thread Lorrin Nelson
Browsing around https://repository.apache.org/content/repositories/snapshots/org/apache/camel/, it looks like all the JARs were last built on August 10th. -Lorrin

Re: [Aggregator] oldExchange always null ?

2010-09-06 Thread Claus Ibsen
On Mon, Sep 6, 2010 at 5:49 PM, Olivier.Roger wrote: > > By the way, I use Camel 2.2. Check some of the unit tests for the camel-spring v2.2 release as there are some using the > -- > View this message in context: > http://camel.465427.n5.nabble.com/Aggregator-oldExchange-always-null-tp28051

Re: [Aggregator] oldExchange always null ?

2010-09-06 Thread Olivier.Roger
By the way, I use Camel 2.2. -- View this message in context: http://camel.465427.n5.nabble.com/Aggregator-oldExchange-always-null-tp2805136p2805137.html Sent from the Camel - Users mailing list archive at Nabble.com.

[Aggregator] oldExchange always null ?

2010-09-06 Thread Olivier.Roger
Hello Camel, I have a strange behavior with the aggregator component. After a few hours I still cannot explains what happens. I have an aggregator define as /ns:message/ns:correlation

Re: Pax Exam test for Camel

2010-09-06 Thread Christian Mueller
Hello Willem! Thank you for the quick reply and sorry for my late reaction (I was outside my country without internet access). In etc/startup.properties I found the following entry: org/apache/felix/org.apache.felix.fileinstall/3.0.0/org.apache.felix.fileinstall-3.0.0.jar=11 I added the followi

AW: Sending POJOs on Message Queues?

2010-09-06 Thread Schneider Christian
Hi Glen, if you use jaxb then your classes do not have to implement Serializable. Instead they of course need to be serializeable by jaxb. Btw. if you want to call a webservice with the jaxb object (Seems so as you add the soap by using xslt) then you should take a look at the camel soap dataf

Re: Sending POJOs on Message Queues?

2010-09-06 Thread Glen Mazza
But, just to confirm, do I need to make the JAXB objects serializable if I plan on placing them on a queue or reading them from a queue? If that's the case (makes sense), I will update the Camel JAXB page to highlight that--it presently doesn't say anything about serializability. I'm trying t

Re: Deserialising XML using XStream and Camel.

2010-09-06 Thread Ashwin Karpe
Hi, Looks like there are 2 things here. a> You will need to use the file component to load the XML file http://camel.apache.org/file.html http://camel.apache.org/file.html . For e.g from("file:mydir/mysubdir").marshal().xstream().to(...) b> You will need to pass an XStream Marshaller

Is there a way to split the content of a XML file when we reach a size of 50 MB

2010-09-06 Thread Charles Moulliard
Hi, Is there a way to split the content of a XML file when we reach by example the size of 50 MB ? Regards, Charles Moulliard Senior Enterprise Architect (J2EE, .NET, SOA) Apache Camel - Karaf - ServiceMix Committer ~~~ Blog : http://cmoulliar

Re: TypeConverters in OSGi

2010-09-06 Thread Ashwin Karpe
Hi, The camel-core-osgi extends capabilties of Camel to be OSGi aware. It allows for creation of OSGi aware camel contexts and offers support, helper functions and other useful capabilities to look into bundles, service registries, resolve components, dataformats etc. Cheers, Ashwin... -

Re: Sending POJOs on Message Queues?

2010-09-06 Thread Charles Moulliard
Hi Glen, Using Camel, you can use marshal() or unmarshal() to transform objects --> XML or XML --> objects http://camel.apache.org/jaxb.html Regards, Charles Moulliard Senior Enterprise Architect (J2EE, .NET, SOA) Apache Camel - Karaf - ServiceMix Committer

Re: Sending POJOs on Message Queues?

2010-09-06 Thread Glen Mazza
Oh! I was thinking of sending the POJO to the queue where it would be subsequently read and marshalled into XML, but I can have the client-side marshal into XML and send the XML to the queue instead. Makes sense... Thanks again, Glen Tarjei Huse wrote: On 09/06/2010 02:35 PM, Glen Mazza wr

Re: Sending POJOs on Message Queues?

2010-09-06 Thread Tarjei Huse
On 09/06/2010 02:35 PM, Glen Mazza wrote: > No, it's not serializable, but I believe with some effort I can make > it so (The class is JAXB-generated to support a web service call; > JAXB has some extensions to allow for serializability). Right now I'm > trying to get the JAXB DataFormat to work

Re: Sending POJOs on Message Queues?

2010-09-06 Thread Glen Mazza
No, it's not serializable, but I believe with some effort I can make it so (The class is JAXB-generated to support a web service call; JAXB has some extensions to allow for serializability). Right now I'm trying to get the JAXB DataFormat to work (after sending the object to the queue I plan

Re: Sending POJOs on Message Queues?

2010-09-06 Thread Tarjei Huse
Hi, On 09/06/2010 02:00 PM, Glen Mazza wrote: > Hello, I'm new to ActiveMQ messaging queues and unsure if I can place > and subsequently read POJO's from them. I have no problems getting > Strings to work it's just using POJO's that is creating the problem > for me. You should be able to send Seri

Sending POJOs on Message Queues?

2010-09-06 Thread Glen Mazza
Hello, I'm new to ActiveMQ messaging queues and unsure if I can place and subsequently read POJO's from them. I have no problems getting Strings to work it's just using POJO's that is creating the problem for me. Here's how I place a DoubleIt POJO on the queue in Camel: ProducerTempla