Re: NoSuchEndpointException: getting exception when talking to http endpoint using camel

2010-01-08 Thread Harbeer Kadian
Hi, I have got the solution for problem. We have to add a component of type http in camelContext. Then only the camelContext is able to understand a http uri. camelContext.addComponent(http, new HttpComponent()); The String name can be any valid string. I dont know, whether it is osgi which is

Re: NoSuchEndpointException: getting exception when talking to http endpoint using camel

2010-01-08 Thread Willem Jiang
Hi, You just forget the most important thing of the CamelContextFactory, you need to set the BundleContext before calling the createContext. camelContextFactory = new CamelContextFactory(); camelContextFactory.setBundleContext(bundleContext) Then CamelContext will find the camel-http

Re: JAXB marshaller control characters

2010-01-08 Thread Pavel
Hi, I attached test to JIRA. I'll see if I can put together Xml-based approach; will write back on that. BTW, do you guys have any objections against updating EasyMock dependency to 2.5? Thanks, Pavel On Fri, Jan 8, 2010 at 5:37 AM, Willem Jiang willem.ji...@gmail.com wrote: Hi Pavel, It's

Re: JAXB marshaller control characters

2010-01-08 Thread Willem Jiang
Hi Pavel, I think it is OK for us use EasyMock 2.5 as it just for testing. Look forward your XmlStream* solution :) Willem Pavel wrote: Hi, I attached test to JIRA. I'll see if I can put together Xml-based approach; will write back on that. BTW, do you guys have any objections against

ClassLoader issue with camel-web WAR file deployed on SMX4

2010-01-08 Thread Charles Moulliard
When I deploy camel-web WAR in SMX4, the following error is generated : 12:11:49,265 | WARN | l Console Thread | jetty| service.jetty.internal.JCLLogger 115 | Nested in org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML

Re: ClassLoader issue with camel-web WAR file deployed on SMX4

2010-01-08 Thread Charles Moulliard
Hi Willem, I use JDK 6.0 You are right -- lib folder contains JAXB jars. I will remove them and see if the error is still there. REMARK : I think that we should generate a WAR file for OSGI platform without including those jar files Regards, Charles Moulliard Senior Enterprise Architect

Re: ClassLoader issue with camel-web WAR file deployed on SMX4

2010-01-08 Thread Charles Moulliard
SMX4 config.properties file defines the package which are exported by the Java Runtime For JRE 6, the following packages were not exported : javax.xml, \ javax.xml.bind, \ javax.xml.bind.annotation, \ javax.xml.bind.annotation.adapters, \ javax.xml.bind.attachment, \

Re: camel quartz

2010-01-08 Thread Claus Ibsen
On Fri, Jan 8, 2010 at 10:37 AM, marcin80 mtros...@gmail.com wrote: Hi I would like to know how to create quartz jobs dynamically? My case is following: I have a message consumer witch consume messages from queue and each message should be proces at specific time defined in message

Re: camel quartz

2010-01-08 Thread marcin80
Hi Claus, Thank you for your response. Time interval will be changeable for each task but range is 1 day - 1 week. Cheers, Marcin -- View this message in context: http://old.nabble.com/camel-quartz-tp27073449p27075754.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: camel quartz

2010-01-08 Thread Claus Ibsen
On Fri, Jan 8, 2010 at 2:14 PM, marcin80 mtros...@gmail.com wrote: Hi Claus, Thank you  for your response. Time interval will be changeable for each task but range is 1 day - 1 week. Ah okay then I assume you can use some sort of persistent quartz to store the trigger time and the message

WstxEOFException: Unexpected EOF in prolog

2010-01-08 Thread Ricardo Melo
Hi, I'm having an issue when trying to invoke a remote webservice method. I'm using camel 2.0.0 and cxf 2.2.2. I get the following exception. Do you know what can cause this exception? I've disabled firewall and unistalled AVG antivirus. Thanks! Exceotion: Jan 8, 2010 11:26:43 AM

Re: WstxEOFException: Unexpected EOF in prolog

2010-01-08 Thread James Carr
I've had this problem locally before... but my setup was unique so YMMV. We have apache redirecting to weblogic for certain urls, and for the CXF client I had turned gzipCompression on. However, I had failed to enable gzip Compression in apache. Turning it off on the client or enabling it on

Re: JAXB marshaller control characters

2010-01-08 Thread Pavel
Me again. I'm trying to hook my writer to the right place and I got confused a bit. There are several places that do marshalling/unmarshalling. 1. JaxbDataFormat - this is what I think normally steps in when route needs to marshal/unmarshal something. 2. FallbackTypeConverter - if I read camel

How to handle a Soap Fault message?

2010-01-08 Thread jeroenvoogt
Hi all, One of the systems I'm communicating with using ServiceMix and Camel is SOAP based. When that system returns SOAP Fault messages I'd like to transform them using XSLT and then put them into a JMS message queue. However Camel throws an exception after it receives the SOAP Faults:

Interceptor not working for manually created echanges

2010-01-08 Thread S. Ali Tokmen
Hello I'm currently using CAMEL 2.0.0 with a route that dynamically splits and routes a message to many destinations. I should be using a recipientList() but since the version 2.0.0 doesn't allow any exception handling I'm forced to using a construct like the following: for

Re: JAXB marshaller control characters

2010-01-08 Thread Willem Jiang
Hi Pavel, We need to do the change 1, 2 at the same time. My old patch can't deal with this situation from(direct:getJAXBElementValue) .unmarshal(new JaxbDataFormat(org.apache.camel.foo.bar)) .to(mock:result); It's very late for my time, I will

Multicast routing with different messages

2010-01-08 Thread Raphaël Delaporte
Hi, I saw in the doc that the multicast / recipient list just allow to send the same message. I'd like to have multicast operation but I don't want to send the same message, but I want to have different messages to each endpoints (with the same content). Is it possible ? Thanks. Raphaël

Re: ActiveMQ - Camel as client POST?

2010-01-08 Thread Stephen Gargan
Agreed,If switching between them didn't require adding the extra dependency it might not be such a big deal. Say if there were a camel-json that was a facade like dependency that transitively included xstream and jackson. The pro being you could easily swap json providers to see which met your

Re: WstxEOFException: Unexpected EOF in prolog

2010-01-08 Thread Stephen Gargan
Make sure that your web service url is correct. I've seen this happen when trying to grab the wsdl, but accidentally getting a page of html instead; the xml prolog is missing and it complains like this. Double check and see if this is your problem. ste On Fri, Jan 8, 2010 at 6:56 AM, James Carr

Re: JAXB marshaller control characters

2010-01-08 Thread Stephen Gargan
Pavel, Mock Frameworks are a subjective kind of thing, but I've had a lot of luck with Mockito. It's DSL (And we're fans of good DSLs round here ;) ) is really clean and succinct and the Argument Capture I've found indispensible. http://www.mockito.org/ And I've also found Mycila very useful

Re: camel-cache: Using Objects for cache

2010-01-08 Thread tide08
Thanks! I will reply back when patch is ready. Claus Ibsen-2 wrote: Hi I created a ticket for it https://issues.apache.org/activemq/browse/CAMEL-2343 On Wed, Jan 6, 2010 at 6:12 AM, Claus Ibsen claus.ib...@gmail.com wrote: On Wed, Jan 6, 2010 at 3:44 AM, Willem Jiang

Re: context.stopRoute() API hangs periodically

2010-01-08 Thread boday
thanks for the feedback guys... I think I found the issue. My ErrorMessageProcessor runs every 60 seconds and was periodically taking longer than 60 seconds to run. Then, I end up with multiple threads trying to stop/start the same route (not a good thing I imagine). So, I increased the time

Re: 2.1.0 Manual?

2010-01-08 Thread /U
Thanks Hadrian. Is there a chance you could upload it today? Is there a significant delta between 2.0.0PDF and the one for 2.1.0? Regards, /U hzbarcea wrote: Yes, there was a problem with the generation of the pdf. I will upload it manually. Thanks Hadrian On Jan 7, 2010, at 3:26

Re: How to handle a Soap Fault message?

2010-01-08 Thread Willem Jiang
Hi, Which servicemix-camel component are you using? From the stack trace it look like servicemix-camel component have trouble to create the FalutMessage. Can you try the latest servicemix-camel component , as we did some refactor work 4 months ago, which may fix the issue that you hit.

Re: Multicast routing with different messages

2010-01-08 Thread Willem Jiang
Hi Here is an easy way to meet your requirement. from(direct:start).multicast(direct:A, direct:B, direct:C); from(direct:A).processor(You can change the message here).to(You endpoint A); from(direct:B).processor(You can change the message here).to(You endpoint B) from(direct:C).processor(You

Re: WstxEOFException: Unexpected EOF in prolog

2010-01-08 Thread Willem Jiang
This exception is caused by Wstx doesn't get a whole XML stream. Can you use the tcpmon[1] to catch the under lay message? You can also find some tips of CXF debugging here[2]. [1]http://tcpmon.dev.java.net/ [2]http://cxf.apache.org/docs/debugging-and-logging.html Stephen Gargan wrote: Make

Re: 2.1.0 Manual?

2010-01-08 Thread Willem Jiang
Please check out the CAMEL-2.1.0 Release doc[1] for more information. [1]http://cwiki.apache.org/confluence/display/CAMEL/Camel+2.1.0+Release Willem /U wrote: Thanks Hadrian. Is there a chance you could upload it today? Is there a significant delta between 2.0.0PDF and the one for 2.1.0?

How could using the split pattern avoid memory overload?

2010-01-08 Thread ext2
Hi I always to do work , it seems the split pattern could resolve, but will encounter memory overload problem. To illustrate the problem, lets' take a example: Often , we need to query records from a database , but the records matched the condition are too much , and cannot load

Re: How could using the split pattern avoid memory overload?

2010-01-08 Thread ext2
Does the split-pattern support the bean-express to return a Enumeration instead of List? Hi I always to do work , it seems the split pattern could resolve, but will encounter memory overload problem. To

Re: How could using the split pattern avoid memory overload?

2010-01-08 Thread ext2
Oh, I am stupid; The camel's document said clearly, the bean return iterator, and using stream model could resolve my problem; --- Does the split-pattern support the bean-express to return a Enumeration instead of List?

Re: JAXB marshaller control characters

2010-01-08 Thread Claus Ibsen
On Fri, Jan 8, 2010 at 7:38 PM, Stephen Gargan steve.gar...@gmail.com wrote: Pavel, Mock Frameworks are a subjective kind of thing, but I've had a lot of luck with Mockito. It's DSL (And we're fans of good DSLs round here ;) ) is really clean and succinct and the Argument Capture I've found

Re: context.stopRoute() API hangs periodically

2010-01-08 Thread Claus Ibsen
On Fri, Jan 8, 2010 at 10:14 PM, boday bo...@vektrel.com wrote: thanks for the feedback guys... I think I found the issue.  My ErrorMessageProcessor runs every 60 seconds and was periodically taking longer than 60 seconds to run.  Then, I end up with multiple threads trying to stop/start the

How to import camel in a java application program

2010-01-08 Thread ztesoft
I write a java application program to achieve a HTTP server. Camel is used in this program to receive the http requests and transfer them to a file. Does anyone suggest me how to do this? -- View this message in context:

Re: How to import camel in a java application program

2010-01-08 Thread Stephen Gargan
Take a look at the jms-to-file from the examples http://svn.apache.org/repos/asf/camel/trunk/examples/camel-example-jms-file/ Look at the JmsToFileRoute; You'll be using a jetty http endpoint in place of the jms one e.g. from(jetty:http://0.0.0.0/8080/;).to(file:test) Remember, you'll need to

Re: How to import camel in a java application program

2010-01-08 Thread ztesoft
Does it mean I should use jetty for HTTP server? Stephen Gargan wrote: Take a look at the jms-to-file from the examples http://svn.apache.org/repos/asf/camel/trunk/examples/camel-example-jms-file/ Look at the JmsToFileRoute; You'll be using a jetty http endpoint in place of the jms