Re: Is it possible to cluster camel endpoint?

2010-11-24 Thread Sergey_Zhemzhitsky
Hi there I'm not using JBI. Each route is deployed as OSGi bundle. Claus Ibsen 24.11.2010 20:15 Please respond to users@camel.apache.org To users@camel.apache.org cc Subject Re: Is it possible to cluster camel endpoint? Hi Are you using JBI or not? The last statement was kinda con

Re: hibernate and spring with camel

2010-11-24 Thread Mark Webb
What I meant was, at build-time I would not know and could not hard-code. I will probably use a classpath XML loader. On Wed, Nov 24, 2010 at 3:51 PM, Claus Ibsen wrote: > Hi > > You can use your own xml file to boot up AMQ. You dont have to use the > default files. > > And what do you mean by?

Re: JAXB causing Unit Test Failure without any actual marshalling active

2010-11-24 Thread Willem Jiang
Camel Jaxb has a FallbackTypeConverter which will check if the message body object class has the XmlRootElement annotation , then it decide to do the marshal/ unmarshal job or not. In this case , you don't need to specify data format or use the marshal/unmarshal DSL. If camel can't convert t

Re: JAXB causing Unit Test Failure without any actual marshalling active

2010-11-24 Thread enalposi
Thanks for following up. In the meantime I have moved on and created a custom Processor chained into the route, which provides more flexibility for other processing. The rest of the stack trace just went further into the jaxb RI and didn't seem to provide additional clues why Camel is picking thi

Re: camel-ftp via proxy

2010-11-24 Thread jmh
Thanks Richard for your warning -- View this message in context: http://camel.465427.n5.nabble.com/camel-ftp-via-proxy-tp3278292p3279149.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: hibernate and spring with camel

2010-11-24 Thread Claus Ibsen
Hi You can use your own xml file to boot up AMQ. You dont have to use the default files. And what do you mean by? Sure of its location? On Wed, Nov 24, 2010 at 9:24 PM, Mark Webb wrote: > Agree, but since ActiveMQ is importing the file from activemq.xml, I > can never be sure of its location.

Re: Retrieving the exchange's processing time in onCompletion

2010-11-24 Thread Bengt Rodehav
Thanks for your reply Claus, I actually use the JMX interface already to get hold of the statistics and show them in the user interface. Yes, it's a bit painful but doable. However, I don't think it's possible to get exchange specific information via JMX - is it? I can only get information regard

Re: hibernate and spring with camel

2010-11-24 Thread Mark Webb
Agree, but since ActiveMQ is importing the file from activemq.xml, I can never be sure of its location. On Wed, Nov 24, 2010 at 3:20 PM, Claus Ibsen wrote: > Is the XML file just a regular Spring XML file? > > I would assume you just do this as you would do using spring. > > On Wed, Nov 24, 2010

Re: hibernate and spring with camel

2010-11-24 Thread Claus Ibsen
Is the XML file just a regular Spring XML file? I would assume you just do this as you would do using spring. On Wed, Nov 24, 2010 at 7:56 PM, Mark Webb wrote: > I am looking to persist some data I receive in my processor to a > database using Spring and Hibernate.  Does anyone have experience >

Re: JAXB causing Unit Test Failure without any actual marshalling active

2010-11-24 Thread Richard Kettelerij
Looks like you didn't post the entire stacktrace (the first part is missing?). Can you post the entire stacktrace? Also can you post your route definition? -- View this message in context: http://camel.465427.n5.nabble.com/JAXB-causing-Unit-Test-Failure-without-any-actual-marshalling-active-tp32

hibernate and spring with camel

2010-11-24 Thread Mark Webb
I am looking to persist some data I receive in my processor to a database using Spring and Hibernate. Does anyone have experience setting this up and maybe providing some tips on how to do it? Right now I have everything defined as spring beans in an XML file that is imported from activemq.xml.

JAXB causing Unit Test Failure without any actual marshalling active

2010-11-24 Thread enalposi
Hi. We are planning to plug JAXB marshalling into our Camel routes. To start with I annotated DTOs for JAXB and create a schema for .NET clients. Next was to get Camel involved. However, simply adding the Maven dependency is causing the unit tests to throw execptions as below. Again - marshal/u

Re: Is it possible to cluster camel endpoint?

2010-11-24 Thread Claus Ibsen
Hi Are you using JBI or not? The last statement was kinda confusing how I read it. If you use JBI I suggest to use jbi to pass messages between applications. On Wed, Nov 24, 2010 at 5:01 PM, wrote: > Well, it seems that my attachments have been dropped. > > Here are camel routes: > > route fo

Re: Retrieving the exchange's processing time in onCompletion

2010-11-24 Thread Claus Ibsen
On Wed, Nov 24, 2010 at 4:41 PM, Bengt Rodehav wrote: > I'm implementing a message history store. As suggested in Camel in Action, >  I plan to use the onCompletion interceptor to extract the information I > need from the exchange and store it in a database. > > I would like to store the processin

Re: Is it possible to cluster camel endpoint?

2010-11-24 Thread Sergey_Zhemzhitsky
Well, it seems that my attachments have been dropped. Here are camel routes: route for cluster node 1: http://www.springframework.org/schema/beans"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:osgi="http://www.springframework.org/schema/osgi"; xsi:schemaLo

Re: Is it possible to cluster camel endpoint?

2010-11-24 Thread Sergey_Zhemzhitsky
Hi I have attached sample application (SMX-CLUSTER.zip) and configuration of activemq in ServiceMix (SMX-CONFIG.zip) for clustering: To install the application please execute mvn install from command line. It is necessary to have two instances of ServiceMix for the cluster (configurations for

Retrieving the exchange's processing time in onCompletion

2010-11-24 Thread Bengt Rodehav
I'm implementing a message history store. As suggested in Camel in Action, I plan to use the onCompletion interceptor to extract the information I need from the exchange and store it in a database. I would like to store the processing time of the exchange. I've seen that information in the JMX in

Re: DefaultShutdownStrategy can't shutdown DefaultErrorHandler's retries?

2010-11-24 Thread Claus Ibsen
Hi I created a ticket https://issues.apache.org/activemq/browse/CAMEL-3364 On Tue, Nov 23, 2010 at 11:55 AM, Claus Ibsen wrote: > On Tue, Nov 23, 2010 at 2:42 AM, Lorrin Nelson > wrote: >> The interaction between DefaultErrorHandler retries and >> DefaultShutdownStrategy seems broken. What I w

Re: Multicast() Behaviour with Exceptions

2010-11-24 Thread Claus Ibsen
Hi The issue has now been fixed on trunk. On Mon, Nov 22, 2010 at 2:59 PM, Claus Ibsen wrote: > Hi > > Thanks for raising this issue. It looks like a bug in the multicast logic > when having exceptions handled by onException as well. > If you dont have the onException it should work. > > A work

Re: camel-ftp via proxy

2010-11-24 Thread Richard Kettelerij
Your configuration looks good at first sight. Have you looked at http://wiki.apache.org/commons/Net/FrequentlyAskedQuestions (scroll down to "Does FTPClient support FTP connections through an FTP proxy server?"). Camel's FTP component uses the FTPClient included in Apache Commons Net under the h

Re: Is it possible to cluster camel endpoint?

2010-11-24 Thread Claus Ibsen
Hi Can you post more details FUSE ESB version used JDK used OS used And the Camel route you are using. And you can try using the latest release: v4.3.0-fuse-02-00 On Wed, Nov 24, 2010 at 10:06 AM, wrote: > Hello all. > > I'm trying to use camel on the ServiceMix 4 cluster. > > According to h

Re: Type converter

2010-11-24 Thread Remi Malessa
Claus and Tim, thanks a lot. Its working now. I had placed a full name of the class together with the package (just like log4j) before, so it didn't work.. Remi On 11/24/2010 06:14 AM, Claus Ibsen wrote: Hi See for example camel-mina which has custom type converters as well: https://svn.apa

Is it possible to cluster camel endpoint?

2010-11-24 Thread Sergey_Zhemzhitsky
Hello all. I'm trying to use camel on the ServiceMix 4 cluster. According to http://camel.apache.org/clustering-and-loadbalancing.html we can use NMR endpoint but there isn't an example there. I have tried to connect from one node of a cluster to another using camel's nmr component, but without

Re: Testing a bean with @Resource

2010-11-24 Thread Claus Ibsen
On Tue, Nov 23, 2010 at 4:19 PM, John wrote: > > I'm using Camel 2.2. > > I have a bean used in a route that is annotated with a couple of @Resource > objects that are injected via Spring. The bean also calls the producer > template to forward requests to different routes. > > I've tried to add mo

Re: Apache Tika support for Camel

2010-11-24 Thread Claus Ibsen
Hi Welcome to the community. We love contributions and if you consider donating your work to Apache, then we can have the data format included in the kit out of the box. http://camel.apache.org/contributing.html I have added your project to the Camel users stories https://cwiki.apache.org/conf

Apache Tika support for Camel

2010-11-24 Thread Wouter Heijke
Hi, I'm relatively new to Camel and while learning how to use it created a DataFormat extension using Apache Tika. With this you can unmarshal file formats supported by Apache Tika into Camel messages and filter on the document's contenttype etc. The unmarshalled text will be in the body of the me