Re: Camel : file to Message - Error SAX "XML" Byte Order Mark (BOM)

2009-09-30 Thread Henric Hedin
Hi, I had a similar problem and performed a workaround where I removed the BOM characters in a Processor in my Camel Route. See code below. I'm not sure, but I think the problem is related to this bug in the JRE: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4508058 Regards, Henric public

Re: Dead Letter Channel : Error on configuring dead letter channel

2009-09-30 Thread Claus Ibsen
Hi You have a typo in the spring xml file. The class name should be: RedeliveryPolicy You are missing the y in Redelivery. On Wed, Sep 30, 2009 at 5:58 PM, titexe wrote: > > by replacing deadLetterUri by defaultDeadLetterEndpointUri, I received > another type of errors : > > DEBUG XBeanBroker

Re: Dead Letter Channel : Error on configuring dead letter channel

2009-09-30 Thread titexe
by replacing deadLetterUri by defaultDeadLetterEndpointUri, I received another type of errors : DEBUG XBeanBrokerFactory - Now attempting to figure out the type of resource: activemq.xml ERROR: java.lang.RuntimeException: Failed to execute start task. Reason: org.springframework.beans

Re: Dead Letter Channel : Error on configuring dead letter channel

2009-09-30 Thread titexe
here are the versions that I use : Version Camel : 1.6.0 Version activemq : fuse message broker 5.3 version java : 1.6 Thank you in advance, Claus Ibsen-2 wrote: > > Hi > > You are using Camel 1.x which have some properties which are not the > same as 2.0. > > If you use a good IDE you get

Re: Dead Letter Channel : Error on configuring dead letter channel

2009-09-30 Thread Claus Ibsen
Hi You are using Camel 1.x which have some properties which are not the same as 2.0. If you use a good IDE you get code completion in the XML editor and thus can see which properties you can use. I recall its called: defaultDeadLetterEndpointUri in Camel 1.x instead of deadLetterUri On Wed, Se

ActiveMQComponent leaves threads running in WL

2009-09-30 Thread arhan
Hi! I'm using ActiveMQ and Camel to route messages in an application that is deployed in Weblogic 10. THe code is something like this: from("activemq:queue:QueueName").to(someSpringBean); When I try to stop the application from the WL's UI console, it refuses to die gracefully. When I tried to

Dead Letter Channel : Error on configuring dead letter channel

2009-09-30 Thread titexe
Hello, I want to setup the pattern "Dead Letter channel" for handling errors and execption generated in my flow ( camel route). my setup is as follows: http://activemq.apache.org/camel/schema/spring";> by starting ActiveMQ, I receive the following error : INFO BrokerService

Re: Camel : file to Message - Error SAX "XML" Byte Order Mark (BOM)

2009-09-30 Thread titexe
Firstly, thank you for your response and responsiveness. my camel platform receives files from different applications that generate this type of xml file. I should be able to handle normal xml files and xml files with (BOM) there's a solution to solve this problem by a configuration in camel ?

Re: Atom Component

2009-09-30 Thread jpcook
Thanks. Useful to know. We aren't using maven unfortunately. Claus Ibsen-2 wrote: > > On Wed, Sep 30, 2009 at 3:57 PM, jpcook > wrote: >> >> Upgraded to the latest latest version 0.4.0 and it works. Might be useful >> to >> list the dependancies on the wiki? Camel just eats the exception as we

Re: Smtp component : error in smtp endpoint

2009-09-30 Thread titexe
the problem is solved, I put the same version for all jar files camel *. jar in the lib Thank very Much, Claus Ibsen-2 wrote: > > Hi > > Are you have all the same version of the camel .jars? Looks like e.g. > camel-core is maybe older etc. > So check your classpath that all camel .jars have

Re: Camel : file to Message - Error SAX "XML" Byte Order Mark (BOM)

2009-09-30 Thread Claus Ibsen
Hi Use a text editor that do NOT set that BOM character. Or maybe your existing text editor can save in UTF-8 without the BOM. On Wed, Sep 30, 2009 at 3:42 PM, titexe wrote: > > Hello, > > i have developped Camel route to transfrom file to message in queue > > This is my configuration: > > xm

Re: Smtp component : error in smtp endpoint

2009-09-30 Thread Claus Ibsen
Hi Are you have all the same version of the camel .jars? Looks like e.g. camel-core is maybe older etc. So check your classpath that all camel .jars have the same version number. On Wed, Sep 30, 2009 at 4:08 PM, titexe wrote: > > Hello, > > I encountered a problem using the mail component, > >

Smtp component : error in smtp endpoint

2009-09-30 Thread titexe
Hello, I encountered a problem using the mail component, I have tried to develop a camel route, which transforms a message in an email. Here is my setup: i have added camel-mail-1.6.1.0-fuse.jar and mail.jar to lib directory, but i always receive this error: DefaultComponent DEBUG - Cre

Re: Atom Component

2009-09-30 Thread Claus Ibsen
On Wed, Sep 30, 2009 at 3:57 PM, jpcook wrote: > > Upgraded to the latest latest version 0.4.0 and it works. Might be useful to > list the dependancies on the wiki? Camel just eats the exception as well. Most people use maven and have the dependencies for free. If you are not then you have to ch

Re: Atom Component

2009-09-30 Thread jpcook
Upgraded to the latest latest version 0.4.0 and it works. Might be useful to list the dependancies on the wiki? Camel just eats the exception as well. jpcook wrote: > > Got further. > > What version of abdera does this work with. I have downloaded the latest > which is 0.3.0 and it doesn't see

Camel : file to Message - Error SAX "XML" Byte Order Mark (BOM)

2009-09-30 Thread titexe
Hello, i have developped Camel route to transfrom file to message in queue This is my configuration: http://activemq.apache.org/camel/schema/spring";> This error is received only in the case of some xml file,when i edit these files, I detected that there's (BOM) b

Re: Atom Component

2009-09-30 Thread jpcook
Got further. What version of abdera does this work with. I have downloaded the latest which is 0.3.0 and it doesn't seem to contain the getInstance method used here. Abdera.getInstance().getParser(); if I use Abdera.getNewParser() it works ok. Any ideas please? jpcook wrote: > > Strange jus

Re: Spring event URI is wrong in site documentation

2009-09-30 Thread Claus Ibsen
Fixed documentation to state that if using 1.x you may need to remove the // On Wed, Sep 30, 2009 at 3:10 PM, Claus Ibsen wrote: > Using // is the correct URL notation as you have to separate the > scheme from the context path. > > Camel 2.0 is improved in that area. > So if you use 1.6 etc. you

Re: Spring event URI is wrong in site documentation

2009-09-30 Thread Claus Ibsen
Using // is the correct URL notation as you have to separate the scheme from the context path. Camel 2.0 is improved in that area. So if you use 1.6 etc. you may have issues with // or not using //. On Wed, Sep 30, 2009 at 3:08 PM, Anto Paul wrote: > there is no "//" in the URI that Camel uses.

Re: Lifecycle events of CamelContext

2009-09-30 Thread Claus Ibsen
Hi The org.apache.camel.spi.LifecycleStrategy is for that. In the code in the trunk you just implement a bean with this interface and then add that as a spring bean to the xml file And Camel will take it from there and invoke the callbacks on your class. In 2.0 or older Camel only had "room"

Re: Spring event URI is wrong in site documentation

2009-09-30 Thread Anto Paul
there is no "//" in the URI that Camel uses. See code SpringCamelContext#createEventEndpoint(). Site document has "//" in the URI. I wasted a lot of time in debugging why this route is not working if I put spring-event://default. Anto On Wed, Sep 30, 2009 at 6:33 PM, Claus Ibsen wrote: > On Wed

Lifecycle events of CamelContext

2009-09-30 Thread Anto Paul
Hi, How to get lifecycle events of CamelContext?. I need to know when CamelContext is initialised. I am looking something like Spring ApplicationListener. I need CamelContext after initialization so that I can add new routes after reading them from database. As of now I am using Camel Even

Re: Spring event URI is wrong in site documentation

2009-09-30 Thread Claus Ibsen
On Wed, Sep 30, 2009 at 2:59 PM, Anto Paul wrote: > HI, > >    URI for Event component is wrong in the site documentation at > http://camel.apache.org/event.html The actual URI used is > spring-event:default This must be fixed in documentation. > The documentation states this As of Camel 1.5 the

Spring event URI is wrong in site documentation

2009-09-30 Thread Anto Paul
HI, URI for Event component is wrong in the site documentation at http://camel.apache.org/event.html The actual URI used is spring-event:default This must be fixed in documentation. Anto

Re: Route Camel : Pass variables in a SQL query

2009-09-30 Thread titexe
Problem fixed : expression simple Thank you titexe wrote: > > Hello, > > I'm trying to develop a route camel who can: > > Retrieve a value from the header of a message > and put this value in an SQL query. > > Below my configuration: > > > > >UPDATE CAMEL SET B='${in.h

Re: Atom Component

2009-09-30 Thread jpcook
Strange just using the http endpoint works fine. jpcook wrote: > > Hi, > > So just trying a very simple example like: > from("atom://http://macstrac.blogspot.com/feeds/posts/default";).to("log:afterAtom"); > > But it returns: > 2009-09-30 12:05:04,650 INFO [main] afterAtom - Exchange[BodyType

Re: Atom Component

2009-09-30 Thread jpcook
Hi, So just trying a very simple example like: from("atom://http://macstrac.blogspot.com/feeds/posts/default";).to("log:afterAtom"); But it returns: 2009-09-30 12:05:04,650 INFO [main] afterAtom - Exchange[BodyType:null, Body:null] No errors in the console so not sure what I'm doing wrong? Cl

EIP - Message Broker Pattern

2009-09-30 Thread tnabil
Hi, As agreed, I'm prefixing the title of this post with "EIP" to denote that it's a general post on Enterprise Integration Patterns (not Camel specific). Message Broker is one of the patterns described in the EIP book. I believe that this pattern is also the basis of ESB products currently bein

Re: Could not refresh JMS Connection for destination 'XXX_QUEUE' - retrying in 2000 ms ???

2009-09-30 Thread Claus Ibsen
On Tue, Sep 29, 2009 at 10:54 PM, Allen Lau wrote: > Hi, > > Been getting a lot of these types of messages from the > DefaultMessageListenerContainer when I try to refresh or shutdown a camel > route inside of an OSGi container.   I know that I can tune the > recoveryInterval( in the JmsConfigurat