Re: Camel CXF-JAXRS error !!

2009-11-23 Thread Willem Jiang
Hi Charles, You need to include the cxf-rs extendsion in your spring configuration file like this Or you will not get the cxf rs binding factory loaded. Willem Charles Moulliard wrote: I try to create a small tutorial on camel cxf-jaxrs. Here is my camel route config : http://www.springframe

Re: Camel CXF-JAXRS error !!

2009-11-23 Thread Claus Ibsen
Hi Can you create a ticket in JIRA and assign it to Willem Tam as he works on that part of CXF. And if possible create an unit test in camel-cxf that demonstrates this. On Mon, Nov 23, 2009 at 5:37 PM, Charles Moulliard wrote: > I try to create a small tutorial on camel cxf-jaxrs. Here is my c

Re: DataSet header {CamelDataSetIndex=0} causes failure

2009-11-23 Thread Claus Ibsen
Hi Thanks a lot for your findings. I have created a ticket https://issues.apache.org/activemq/browse/CAMEL-2215 And will commit a fix in short time. Feel free to try with latest code. On Tue, Nov 24, 2009 at 1:54 AM, tide08 wrote: > > So looks like CaseInsensitiveMap is not serializable :( >

Re: Jms remoting failover problem

2009-11-23 Thread Ming Fang
After much testing we've settled on a workaround/solution to this problem. The problem can be solved by setting up the brokers as a "network of brokers". That way the replies would eventually get forwarded to the right broker no matter which broker the producer is sending to. While I think it is m

Re: DataSet header {CamelDataSetIndex=0} causes failure

2009-11-23 Thread tide08
So looks like CaseInsensitiveMap is not serializable :( Map.Entry is non-serializable and so java.util.HashMap defines those as transient so that serialization of that member does not happen. So CaseInsenstiveMap should also define its member "entrySetView" as transient or if it needs to be seri

Re: DataSet header {CamelDataSetIndex=0} causes failure

2009-11-23 Thread tide08
Exception stack trace shows cause as - java.io.NotSerializableException: org.apache.camel.util.CaseInsensitiveMap$1 tide08 wrote: > > I have soak test with following route and it seems to fail with following > error. I am using camel 2.1-SNAPSHOT. > > I am not sure why that happens - > >

DataSet header {CamelDataSetIndex=0} causes failure

2009-11-23 Thread tide08
I have soak test with following route and it seems to fail with following error. I am using camel 2.1-SNAPSHOT. I am not sure why that happens - ProxySender instead is just a custom processor which uses camelTemplate and camel-jms to send

Re: RSS Parameters (again)

2009-11-23 Thread Stan Lewis
On Mon, Nov 23, 2009 at 3:33 PM, Claus Ibsen wrote: > On Mon, Nov 23, 2009 at 9:12 PM, Stan Lewis wrote: > > Did some more checking, looks like the updatedDate/publishedDate fields > > aren't set, that's what camel-rss needs to compare two entries. Can you > add > > either of these fields to th

Re: RSS Parameters (again)

2009-11-23 Thread Claus Ibsen
On Mon, Nov 23, 2009 at 9:12 PM, Stan Lewis wrote: > Did some more checking, looks like the updatedDate/publishedDate fields > aren't set, that's what camel-rss needs to compare two entries.  Can you add > either of these fields to the feed?  Otherwise you may wind up having to > remove the sortEn

Re: RSS Parameters (again)

2009-11-23 Thread Stan Lewis
Did some more checking, looks like the updatedDate/publishedDate fields aren't set, that's what camel-rss needs to compare two entries. Can you add either of these fields to the feed? Otherwise you may wind up having to remove the sortEntries parameter... On Mon, Nov 23, 2009 at 2:37 PM, Stan Le

Re: RSS Parameters (again)

2009-11-23 Thread Stan Lewis
On Mon, Nov 23, 2009 at 12:29 PM, Ian de Beer wrote: > > The oracle error is only there if you use the whole url - you must remove > the > parameters that are consumed by the camel component i.e. > sortEntries=true&consumer.initialDelay=9000 > You should then get the feed in your browser if you u

Re: Original message body lost in transacted route

2009-11-23 Thread Claus Ibsen
On Mon, Nov 23, 2009 at 6:31 PM, Dragisa Krsmanovic wrote: > On Sat, 2009-11-21 at 09:20 +0100, Claus Ibsen wrote: >> Hi >> >> Digged a bit deeper and seems the issue is that the assertion on the >> constant seems wrong as you set the body to an empty string. >> Which then causes Camel to look int

Re: Original message body lost in transacted route

2009-11-23 Thread Dragisa Krsmanovic
On Sat, 2009-11-21 at 09:20 +0100, Claus Ibsen wrote: > Hi > > Digged a bit deeper and seems the issue is that the assertion on the > constant seems wrong as you set the body to an empty string. > Which then causes Camel to look into the backing JMS message where it > can find the "foo" body. Desp

Re: RSS Parameters (again)

2009-11-23 Thread Ian de Beer
The oracle error is only there if you use the whole url - you must remove the parameters that are consumed by the camel component i.e. sortEntries=true&consumer.initialDelay=9000 You should then get the feed in your browser if you use: http://www.iafrica.com/pls/cms/grapevine.xml?p_section=weather

Camel CXF-JAXRS error !!

2009-11-23 Thread Charles Moulliard
I try to create a small tutorial on camel cxf-jaxrs. Here is my camel route config : http://www.springframework.org/schema/beans"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:context="http://www.springframework.org/schema/context"; xmlns:camel="http://camel

Re: Cannot dequeue Oracle XMLType queue, is it supported?

2009-11-23 Thread Claus Ibsen
On Mon, Nov 23, 2009 at 4:25 PM, miljenko2 wrote: > > I can read without Camel by creating session in this way (specifying payload > factory): > > ... > MessageConsumer consumer = ((AQjmsSession) session).createReceiver( >                    queue, XMLType.getORADataFactory()); > ... > > How can I

Re: RSS Parameters (again)

2009-11-23 Thread Stan Lewis
On Mon, Nov 23, 2009 at 11:04 AM, Claus Ibsen wrote: > On Mon, Nov 23, 2009 at 5:00 PM, Stan Lewis wrote: > > If I go to the URL that you're using I don't see an RSS feed but instead > see > > what looks like an Oracle error. Did you check and make sure that the > URL > > you're using is produc

Re: RSS Parameters (again)

2009-11-23 Thread Claus Ibsen
On Mon, Nov 23, 2009 at 5:00 PM, Stan Lewis wrote: > If I go to the URL that you're using I don't see an RSS feed but instead see > what looks like an Oracle error.  Did you check and make sure that the URL > you're using is producing a valid RSS feed? > Ah yeah but the NPE may come from camel-rs

Re: RSS Parameters (again)

2009-11-23 Thread Stan Lewis
If I go to the URL that you're using I don't see an RSS feed but instead see what looks like an Oracle error. Did you check and make sure that the URL you're using is producing a valid RSS feed? On Mon, Nov 23, 2009 at 10:43 AM, Ian de Beer wrote: > > Hi > I specify the RSS feed as follows: > r

RSS Parameters (again)

2009-11-23 Thread Ian de Beer
Hi I specify the RSS feed as follows: rss:http://www.iafrica.com/pls/cms/grapevine.xml?p_section=weather&p_city=cape%20town&sortEntries=true&consumer.initialDelay=9000 I consistently get the following response: WARN - DefaultPollingConsumerPollStrategy - Consumer Consumer[rss://http://www.iafrica

Re: Cannot dequeue Oracle XMLType queue, is it supported?

2009-11-23 Thread miljenko2
I can read without Camel by creating session in this way (specifying payload factory): ... MessageConsumer consumer = ((AQjmsSession) session).createReceiver( queue, XMLType.getORADataFactory()); ... How can I set this for camel (in spring configuration file)? Thanks, Miljen

Re: Cannot dequeue Oracle XMLType queue, is it supported?

2009-11-23 Thread miljenko2
I can read without Camel by creating session in this way (specifying payload factory): ... MessageConsumer consumer = ((AQjmsSession) session).createReceiver( queue, XMLType.getORADataFactory()); ... How can I set this for camel (in spring configuration file)? Thanks, Miljen

Re: Jms remoting failover problem

2009-11-23 Thread Claus Ibsen
On Mon, Nov 23, 2009 at 1:35 PM, Ming Fang wrote: > Thanks for looking into this problem. > > According to org.apache.camel.component.jms.JmsProducer.java line 76, >        affinity = RequestorAffinity.PER_PRODUCER; > This is already the default. > > The problem is this case is that the physical c

Re: Jms remoting failover problem

2009-11-23 Thread Ming Fang
Thanks for looking into this problem. According to org.apache.camel.component.jms.JmsProducer.java line 76, affinity = RequestorAffinity.PER_PRODUCER; This is already the default. The problem is this case is that the physical connection under the Producer changes if left idle for over 3

Re: Jms remoting failover problem

2009-11-23 Thread Claus Ibsen
Hi Have you tried with the option replyToTempDestinationAffinity=producer On Sun, Nov 22, 2009 at 3:09 PM, Claus Ibsen wrote: > On Sun, Nov 22, 2009 at 2:46 PM, Ming Fang wrote: >> Thanks. >> But I hope that assigning this issue to 2.3 is just a default and that it >> will be sooner once iss

Re: How to configure Camel Routes under JBOSS 5

2009-11-23 Thread Claus Ibsen
On Mon, Nov 23, 2009 at 8:47 AM, Matvey wrote: > > ActiveMQ + JBOSS5 + Camel. > > An Idea is to configure Camel Producers automatically using annotations > inside of EJB3 bean (mostly session beans). Is that possible? > Camel uses the help of Spring to inject those beans. So in case Spring can do

Re: Cannot dequeue Oracle XMLType queue, is it supported?

2009-11-23 Thread Claus Ibsen
On Mon, Nov 23, 2009 at 10:33 AM, miljenko2 wrote: > > Hi. > > My code works fine with "sys.aq$_jms_text_message" queue but doesn't read > from "sys.xmltype" queue. Does Camel support Oracle queues with XMLType > payload? Camel uses JMS so if you can read for Oracle queues with XMLType using plai

Cannot dequeue Oracle XMLType queue, is it supported?

2009-11-23 Thread miljenko2
Hi. My code works fine with "sys.aq$_jms_text_message" queue but doesn't read from "sys.xmltype" queue. Does Camel support Oracle queues with XMLType payload? Thanks, Miljenko -- View this message in context: http://old.nabble.com/Cannot-dequeue-Oracle-XMLType-queue%2C-is-it-supported--tp26474

Re: Create a route in disabled mode

2009-11-23 Thread Claus Ibsen
On Mon, Nov 23, 2009 at 9:45 AM, mantay wrote: > > > > Claus Ibsen-2 wrote: >> >> See >> http://camel.apache.org/configuring-route-startup-ordering-and-autostartup.html >> >> Its a new feature in the upcoming 2.1 release. >> > > Thanks for your answer, Claus. Where can I download release 2.1 or a

Re: Create a route in disabled mode

2009-11-23 Thread mantay
Claus Ibsen-2 wrote: > > See > http://camel.apache.org/configuring-route-startup-ordering-and-autostartup.html > > Its a new feature in the upcoming 2.1 release. > Thanks for your answer, Claus. Where can I download release 2.1 or a preliminary version? All links on the download page seem to

Re: getEndpoints deprecated for 2.1 - please advise why

2009-11-23 Thread Claus Ibsen
Hi I have polished the @deprecation javadoc and marked them for Camel 2.3 giving a bit more time to prepare for this. On Sun, Nov 22, 2009 at 12:03 PM, huntc wrote: > > Hi Claus, > > > Claus Ibsen-2 wrote: >> >> On Sun, Nov 22, 2009 at 7:38 AM, huntc wrote: >> There are plenty of other methods

Re: Newbiew: from(cxf).to(file) doesn't work

2009-11-23 Thread Alexandros Karypidis
Also correct. Using "Source" will dump the file without the need for an explicit ".convertBodyTo(String.class)". Willem Jiang wrote: Hi Can you change your SOAPMessage to Source and try again ? I don't think SOAPMessage can be serialized directly. Willem Alexandros Karypidis wrote: My provide