Re: bean binding with inheritance & 2.0-M3 camel-http

2009-08-03 Thread Claus Ibsen
Hi On Tue, Aug 4, 2009 at 7:52 AM, jjb wrote: > > I have a hierarchy of objects which looks like this: > > public BaseClass implements javax.jms.MessageListener > { >    public void onMessage(javax.jms.Message message) >    { >        // do something >    } > } > > public DerivedClass extends Base

bean binding with inheritance & 2.0-M3 camel-http

2009-08-03 Thread jjb
I have a hierarchy of objects which looks like this: public BaseClass implements javax.jms.MessageListener { public void onMessage(javax.jms.Message message) { // do something } } public DerivedClass extends BaseClass { public void process(String body) { // do

Re: must be of type org.apache.mina.filter.codec.ProtocolCodecFactory error

2009-08-03 Thread Claus Ibsen
Hi Could you try adding camel-mina to the dependency as well. On Mon, Aug 3, 2009 at 7:43 PM, vincentytran wrote: > > This is my dependancies and properties with version of ServiceMix and Camel. > I downloaded ServiceMix 3.3.1 binary from the site which is where I copy the > SA into the hotdeplo

Re: Two-Phase-Commit with JCA, Spring, Camel and OC4j

2009-08-03 Thread Claus Ibsen
Hi Which versions of the various products are you using? And when you get an error shown the real stacktrace / error message helps. And try use google on this exception / stacktrace to find others with same problem. And try get a sample working with Oracle + Spring + JDBC + XA to ensure that co

Re: Problem with FileConsumer and pollEnrich

2009-08-03 Thread Claus Ibsen
On Mon, Aug 3, 2009 at 7:51 PM, ariablu<962...@gmail.com> wrote: > > using Apache Camel (2.0M3) and Spring, > >   >     uri="file:C:\test\trigger?initialDelay=1000&delay=500&useFixedDelay=false&recursive=false&delete=false&noop=false&move=.done&idempotent=false&readLock=none&readLockTimeout=0&aut

Re: JMS Component: mapJmsMessage option

2009-08-03 Thread Claus Ibsen
Hi Mind the SNAPSHOTS at Apache isnt always up to date with the latest and greatest code changes. And you need to use upgrade all .jars to -SNAPSHOT and not only camel-core etc. On Tue, Aug 4, 2009 at 7:38 AM, Claus Ibsen wrote: > Hi > > It was added after 2.0m3 was released. So try the SNAPSHOT

Re: JMS Component: mapJmsMessage option

2009-08-03 Thread Claus Ibsen
Hi It was added after 2.0m3 was released. So try the SNAPSHOT or build from the source. http://camel.apache.org/download.html On Mon, Aug 3, 2009 at 9:07 PM, Wilson wrote: > > Hello, > > I am trying to run this very simple route: > > = >        //... > >       �...@override >        p

Re: Camel 2.0 Failover Questions

2009-08-03 Thread Claus Ibsen
On Mon, Aug 3, 2009 at 10:39 PM, Carlo Camerino wrote: > Hi, > > Is there an option for camel to failover after a certain number of times > that an exception occurs. > Camel has failover for different types of exceptions, > > from("activemq:ab").failover(IOException.class).to("x", "y","z"); > > can

Camel 2.0 Failover Questions

2009-08-03 Thread Carlo Camerino
Hi, Is there an option for camel to failover after a certain number of times that an exception occurs. Camel has failover for different types of exceptions, from("activemq:ab").failover(IOException.class).to("x", "y","z"); can i specify the failover to occur this number of times before moving to

Re: Cannot Autowire consumerTemplate for client test

2009-08-03 Thread Willem Jiang
Hi, You can take a look at the camel-jms's unit test[1] for starting the activeMQ server. For the multiple client , maybe you need to create some listener with separated thread to check the status message. [1] https://svn.apache.org/repos/asf/camel/trunk/components/camel-jms/src/test/java/

Re: Unit testing Virtual topics in Camel

2009-08-03 Thread Willem Jiang
Hi, Camel support to pick up the Java DSL routing rule from spring configuration. You can include the activemq.xml in your camel spring configuration file, then you can create an unit test with the embedded AcitveMQ broker and you also need to put the activemq-camel jar into your ClassPath.

Unit testing Virtual topics in Camel

2009-08-03 Thread Mick Knutson
I have seen a FUSE posting showing: * from("activemq:topic:VirtualTopic.topic").to("activemq:Consumer.example.VirtualTopic.topic"); With the following added to the activemq.xml configuration file: ; * I am interested to know if this c

Camel 2.0 Failover Questions

2009-08-03 Thread Carlo Camerino
Hi, Is there an option for camel to failover after a certain number of times that an exception occurs. Camel has failover for different types of exceptions, from("activemq:ab").failover(IOException.class).to("x", "y","z"); can i specify the failover to occur this number of times before moving to

JMS Component: mapJmsMessage option

2009-08-03 Thread Wilson
Hello, I am trying to run this very simple route: = //... @Override public void configure() throws Exception { from("jms:queue:myQueue?mapJmsMessage=false") .to("stream:out"); } //... = Acc

Re: Cannot Autowire consumerTemplate for client test

2009-08-03 Thread Mick Knutson
Seems I can't attach images over 11k as I get bounced back for spam. OK: As I start digging more, I start wondering if I will need a durable queue for each subscriber as depicted the new diagram here? I have a url to the image I wanted to attach: http://baselogic.com/temp/wd.png --- Thank Yo

Problem with FileConsumer and pollEnrich

2009-08-03 Thread ariablu
using Apache Camel (2.0M3) and Spring, FileConsumer("from" tag) move files from C:\test\data to C:\test\data\.done , and not move files from c:\test\trigger to c:\test\trigger\.done . Is this correct? -- View this message in context: http://www.nabble.com/Problem-w

Re: must be of type org.apache.mina.filter.codec.ProtocolCodecFactory error

2009-08-03 Thread vincentytran
This is my dependancies and properties with version of ServiceMix and Camel. I downloaded ServiceMix 3.3.1 binary from the site which is where I copy the SA into the hotdeploy folder. org.apache.servicemix servicemix-camel ${servicemix-version} org.apache.s

Re: Cannot Autowire consumerTemplate for client test

2009-08-03 Thread Mick Knutson
I ma using Java DSL right now for the routing. And just to make sure I am going down the correct path, here is what I am trying to do with these consumers: I want a server to create a Status Message to a TOPIC. I then want remote Consumers to get this message they are subscribing to. I tried to

Re: must be of type org.apache.mina.filter.codec.ProtocolCodecFactory error

2009-08-03 Thread Claus Ibsen
Hi What version of SMX and/or Camel are you using? Its a bit strange as HL7MLLPCodec is implementing the ProtocolCodecFactory interface. Could you try with a route builder not define using as there was an issue with Spring not being able to IoC and do all its stuff in Camel 1.6.0 or older. So

Re: Cascading bean and splitter

2009-08-03 Thread Claus Ibsen
Hi Ah there is a bit of confusing as its called method in the expressions. But its a bean when you use the builders. from("direct:in").split(bean("splitter", "splitBody")). to("direct:test"); On Mon, Aug 3, 2009 at 5:42 PM, Bak Attila wrote: > > Thanks for the fast reply

must be of type org.apache.mina.filter.codec.ProtocolCodecFactory error

2009-08-03 Thread vincentytran
Hello. I need some help with using camel-hl7. I'm new to servicemix and I've been doing my best following all the tutorials and samples. The error I am getting is: Caused by: org.springframework.beans.factory.BeanNotOfRequiredTypeException: Bean named 'hl7codec' must be of type [org.apache.mina.

Two-Phase-Commit with JCA, Spring, Camel and OC4j

2009-08-03 Thread smilicevics
Hi, I am trying to write code which will consume a message and do the insert in database. I want to use global transactions and two-phase-commit. I got always the same error: cannot commit in global transaction. Can somebody tell me what am i doing wrong here: this is my spring xml: http://w

Re: Cascading bean and splitter

2009-08-03 Thread Bak Attila
Thanks for the fast reply. Unfortunately i cannot find the "method" you suggest... Can you help? Or would the following be equivalent to the previous?: from("file:src/data?noop=true").bean(new IncomingMessageValidator()).to("direct:in"); from("direct:in").split().meth

Re: Cascading bean and splitter

2009-08-03 Thread Claus Ibsen
On Mon, Aug 3, 2009 at 4:58 PM, Bak Attila wrote: > > Hi, > > I am trying to cascade a bean and a splitter like (java DSL): > >        from("file:src/data?noop=true").bean(new > IncomingMessageValidator()). >                split().method("splitter", "splitBody"). >                to("direct:test")

Cascading bean and splitter

2009-08-03 Thread Bak Attila
Hi, I am trying to cascade a bean and a splitter like (java DSL): from("file:src/data?noop=true").bean(new IncomingMessageValidator()). split().method("splitter", "splitBody"). to("direct:test"); It complains that method to(String) is undefined for object

Re: Camel 2.0-snapshot deployed on SMKNL4 - There are 2 parameters that couldn't be set on the endpoint

2009-08-03 Thread Claus Ibsen
Hi Yeah the pdf was linking to the Camel 1.x file/ftp components. Have changed that to link to Camel 2.x in the future. The file/ftp components has been redone in Camel 2.0 so many options is not the same. Glad you got it sorted using the correct values. On Mon, Aug 3, 2009 at 3:51 PM, SoaMatt

Re: Camel 2.0-snapshot deployed on SMKNL4 - There are 2 parameters that couldn't be set on the endpoint

2009-08-03 Thread SoaMattH
I have tried all of the escaping of special characters that does not seem to be the problem. That was one of the very first things I did when I first wrote the end Point. The escaping is noise to the real problem!! The problem is the documentation I have is not quite right . page 301 of ht

Re: Camel Mail issue with unsupported charset

2009-08-03 Thread Claus Ibsen
On Mon, Aug 3, 2009 at 2:53 PM, dcheckoway wrote: > > Claus, > > Thanks for the reply.  It is a valid charset name, but java6 has no > knowledge of it (yet).  For example, on my linux box, it lives in > /usr/share/i18n/charmaps/ANSI_X3.110-1983.gz right alongside all the other > typical charsets. >

Re: Camel Mail issue with unsupported charset

2009-08-03 Thread dcheckoway
Claus, Thanks for the reply. It is a valid charset name, but java6 has no knowledge of it (yet). For example, on my linux box, it lives in /usr/share/i18n/charmaps/ANSI_X3.110-1983.gz right alongside all the other typical charsets. The mail server is whatever google uses...imap.gmail.com is th

Re: setHeader via xslt

2009-08-03 Thread Claus Ibsen
On Mon, Aug 3, 2009 at 2:30 PM, jpcook wrote: > > Hi, > > Yes i created a XsltToHeaderProcessor - If you like I can create a jira and > attach a patch if you think it would be useful for other people? > Great yeah that would be a nice addition. And what is better than support for real life use case

Re: Camel 2.0-snapshot deployed on SMKNL4 - There are 2 parameters that couldn't be set on the endpoint

2009-08-03 Thread Claus Ibsen
On Mon, Aug 3, 2009 at 2:03 PM, Roman Kalukiewicz wrote: > When you use & in XML document it has to be written as & as single > & starts escape sequences in XML. The same goes to '<' that is written > as < and to other special symbols. > Ah yeah how many times have people not been fooled with the

Re: Trying to put a file in a dead letter folder

2009-08-03 Thread Claus Ibsen
On Mon, Aug 3, 2009 at 2:19 PM, SoaMattH wrote: > > > Your right it should be: > > > I have changed it from ure to ref, > However when I test a poorly formed XML file the unmarshal > throws an exception but the file ends up in the .camel/ > processed directory rather than the deadletter/ directory

Re: setHeader via xslt

2009-08-03 Thread jpcook
Hi, Yes i created a XsltToHeaderProcessor - If you like I can create a jira and attach a patch if you think it would be useful for other people? Thanks Claus Ibsen-2 wrote: > > XsltBuilder work on the exchange body only and as such it will affect > your body, and I assume this is not what you

Re: Trying to put a file in a dead letter folder

2009-08-03 Thread SoaMattH
Your right it should be: I have changed it from ure to ref, However when I test a poorly formed XML file the unmarshal throws an exception but the file ends up in the .camel/ processed directory rather than the deadletter/ directory? Ny clues SoaMattH wrote: > > > I am Using Camel 2.

Re: Camel 2.0-snapshot deployed on SMKNL4 - There are 2 parameters that couldn't be set on the endpoint

2009-08-03 Thread SoaMattH
The #{} is my custom place holder configurer. If I put a & in as aseperator I get validation error: The reference to entity "moveNamePrefix" must End with the ';' delimiter and the following Exception: org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration

Re: Camel 2.0-snapshot deployed on SMKNL4 - There are 2 parameters that couldn't be set on the endpoint

2009-08-03 Thread Roman Kalukiewicz
When you use & in XML document it has to be written as & as single & starts escape sequences in XML. The same goes to '<' that is written as < and to other special symbols. Roman 2009/8/3 SoaMattH : > > The #{} is my custom place holder configurer. > > > uri="file://#{omsws.incident.file.landing

Re: Cannot Autowire consumerTemplate for client test

2009-08-03 Thread Willem Jiang
How do you set the routing rule? Using the spring or Java DSL ? Please make sure the mock url is right. Willem Mick Knutson wrote: Here is the unit test: *...@produce(uri = "seda:foo") protected ProducerTemplate producer; @EndpointInject(uri = "mock:result") protected MockEnd

Re: setHeader via xslt

2009-08-03 Thread Claus Ibsen
XsltBuilder work on the exchange body only and as such it will affect your body, and I assume this is not what you want. You can do you own custom XSLT transformation and set it on the header as a result to avoid affecting your body payload. On Mon, Aug 3, 2009 at 12:45 PM, jpcook wrote: > > Hi

Re: Cannot Autowire consumerTemplate for client test

2009-08-03 Thread Mick Knutson
Here is the unit test: *...@produce(uri = "seda:foo") protected ProducerTemplate producer; @EndpointInject(uri = "mock:result") protected MockEndpoint mock; *...@test public void testReceiveGameStateUpdateMessage() throws Exception { log.info("testReceiveGameState

setHeader via xslt

2009-08-03 Thread jpcook
Hi, Is it possible to set the value of a header via the result of an xslt transform eg) .setHeader(INITIAL_DATA_HEADER, XsltBuilder.xslt( new File("myXslt.xslt"))) Currently this doesn't not compile as setHeader expects String, String. I tried using toString but that jus

Re: Cannot Autowire consumerTemplate for client test

2009-08-03 Thread Claus Ibsen
On Mon, Aug 3, 2009 at 10:08 AM, Willem Jiang wrote: > Hi Claus, > > Current camel support to define a producer template OUTSIDE a camel context, > I think it works well just like the autowire function which is provided in > Spring. > > If there more than two Camel context in the Spring Application

Re: Cannot Autowire consumerTemplate for client test

2009-08-03 Thread Willem Jiang
Hi Claus, Current camel support to define a producer template OUTSIDE a camel context, I think it works well just like the autowire function which is provided in Spring. If there more than two Camel context in the Spring Application context , the user should specify the camel context which t