Re: More complicated scenario for camel-bam

2012-01-10 Thread Hadrian Zbarcea
Lukasz, do you mind opening a jira with your findings? Thanks, Hadrian On 01/10/2012 06:36 PM, Łukasz Dywicki wrote: Hey everyone, I tried yo use camel-bam and it works for very basic example shown in documentation. It works well for correlating the files without any middle processing steps.

Re: Xstream marshals to byte array and not String

2012-01-10 Thread Willem Jiang
How did you send the message to the ActiveMQ? Please make sure the MEP is InOut. On Wed Jan 11 02:11:03 2012, mgiammarco wrote: Ok I have tried but unfortunately reply is missing. Conversion to String works: [ #1 - JmsConsumer[queryServer]] pratobackend INFO Exchange[ExchangePa

More complicated scenario for camel-bam

2012-01-10 Thread Łukasz Dywicki
Hey everyone, I tried yo use camel-bam and it works for very basic example shown in documentation. It works well for correlating the files without any middle processing steps. The process I try to monitor looks following - receive incoming JMS message - split - multicast (queue1, queue2) So I'

Re: How to send a templated mail with attachment?

2012-01-10 Thread Christian Müller
Exactly. I copy pasted the sniped from one of our routes which are more complex. But as already mentioned, if you don't need any complex pre processing, your valid route could also looks as below: from("xxx") .enrich("stringtemplate:XXX", aggregationStrategie) .to("smtp:XXX""); Best, Christian

Re: Using the x509HostnameVerifier option in http4

2012-01-10 Thread Christian Müller
Good to know it works for you. Have fun by riding the Camel, Christian On Tue, Jan 10, 2012 at 8:29 AM, xverges wrote: > Thanks, Christian. That helped me. > > I made my life hard by doing some typos and by creating the bean after I > tried to use it, but thinks work now. > > class="org.apach

Re: Xstream marshals to byte array and not String

2012-01-10 Thread mgiammarco
Ok I have tried but unfortunately reply is missing. Conversion to String works: [ #1 - JmsConsumer[queryServer]] pratobackend INFO Exchange[ExchangePattern:InOut, Headers:{JMSCorrelationID=null, breadcrumbId=ID:virtual1.mariosoft.mio-54532-1326218763414-4:1:-1:1:1, JMSPriority=4

(FTP) DefaultScheduledPollConsumer: Converts a polling consumer into an event-driven consumer instance.

2012-01-10 Thread Raul
Hello, I want to create a custom component (Component, EndPoint, Consumer, Producer..). This component will create a FTP Route and it will have the control to start and stop the FTP Route and the business logic too. The first vesion of my component is a poll Consumer. This solution doesn't like m

Re: Camel 2.9.0 startup error message > ClassNotFoundException org.osgi.framework.BundleActivator

2012-01-10 Thread Willem Jiang
Hi, Can you check if there is any other version of camel-core in your class path ? I just check the camel-core-2.9.0 jar , the Activator class was packed in the directory of org.apache.camel.impl.osgi. On Tue Jan 10 20:01:53 2012, iamniche wrote: Hello, Please could someone tell me how to

Re: Xstream marshals to byte array and not String

2012-01-10 Thread Willem Jiang
Can you try this ? from("activemq:queryServer?exchangePattern=InOut") .setExchangePattern(ExchangePattern.InOut) .to("log:it.giammar.pratobackend?showHeaders=true").unmarshal() .xstream().to("log:it.

Re: FTP consumer > ignore existing files: configuration option?

2012-01-10 Thread Claus Ibsen
On Tue, Jan 10, 2012 at 11:04 AM, Bilgin Ibryam wrote: > Hi Nic > > On 9 January 2012 17:03, iamniche wrote: >> Hello, >> >> I am using Camel successfully in my project, but have a question concerning >> the FTP consumer, specifically, with regard to existing files in a watched >> remote folder.

Camel 2.9.0 startup error message > ClassNotFoundException org.osgi.framework.BundleActivator

2012-01-10 Thread iamniche
Hello, Please could someone tell me how to solve this error message that occurs in my JBoss server logs: Failed to define class org.apache.camel.osgi.Activator in Module from Service Module Loader: java.lang.LinkageError: Failed to link org/apache/camel/osgi/Activator Caused by: java.lang.ClassNo

Re: How to send a templated mail with attachment?

2012-01-10 Thread v_peter
Actually you can use "stringtemplate" or any other uri in "enrich". But using "direct" helps to split the process in separate logical steps. You can have "direct:generateEmailBody" and if you need to do anything else for the step you can simply update the route. -- View this message in context:

Re: FTP consumer > ignore existing files: configuration option?

2012-01-10 Thread Bilgin Ibryam
Hi Nic On 9 January 2012 17:03, iamniche wrote: > Hello, > > I am using Camel successfully in my project, but have a question concerning > the FTP consumer, specifically, with regard to existing files in a watched > remote folder. > > Is there any way of ignoring all files that 'pre-exist' on the

Re: i am newbie to camel

2012-01-10 Thread Christian Schneider
An easy way to achieve this is using .setHeader("headername", xpath("//myelement")) in your route. This way you can extract informations and add these as headers to the camel message. You can then call a bean and work with these headers. You can also write your bean like public class MyBean {

Re: How to send a templated mail with attachment?

2012-01-10 Thread LNB
Thanks for fixing, I didn't try it out because I think I cannot use a snapshot version. But I used enrich as you proposed so now I can send emails with an attachment :). Is there a reason to use a "direct" endpoint in between, instead of using the stringtemplate endpoint directly in the enrich meth