Hi
Could you post the stacktrace?
And also DEBUG log the org.apache.camel.component.jms to see that it pick up
the Object JMS type to send your payload.
And yes you need SearchTerm.class on the classpath on the server side.
And the Camel tracer could also help look into the message as its routed
Hi
The body is just a string and thus the gunzip do not know that its a file
name and that it should read the file content.
You can construct the file body yourself in a eg bean, processor or the
likes. Lets use a bean
public File convertToFile(String name) {
return new File(name);
}
And then
Hey,
Thanks for the response. I thought that having the pojo implement
serializable would be all I needed, but I got the
NoTypeConversion..Exception, so I thought I needed to use some sort of
converter. Any ideas on why I would get this with the pojo being
serializable?
willem.jiang wrote:
>
Hi,
If you are planing to send the SearchTerms object through the JMS
transport, you need to let the SeachTerms to implement the Serializable
interface.
camel-jms will take care rest of the work ;)
Willem
buzzterrier wrote:
> My camel client sends a request to my service:
>
> Future fu
Hi,
just store the message body with the filename that your body has.
It will not read the file that you want.
Maybe you need write a bean or processor to do that kind of job for you.
Willem
sriramch wrote:
> I am using the latest camel 2.0-m2 release. I have a list of gzipped file in
> a step
Hi Trivedi,
After went through the stack trace , I found the issue is cause by the
recent change of SpringCamelContext's start and stop flag.
In your case, the spring's refresh event makes the SpringCamelContext
into a endless loop, so your got the StackOverFlow error.
I just fill a JIRA[1] for
Claus Ibsen-2 wrote:
>
> Hi
> You need the around the route tag.
>
>
> ... insert the camel route here
>
>
>
>
> On Tue, Jun 23, 2009 at 11:40 AM, Serge Merzliakov
> wrote:
> Claus,
>Embedding the route inside camelContext worked - thanks. For the
> record here is full spring confi
Claus,
That solved the problem - thankyou. For future reference here is an
entire spring config file which listens copies messages from 'input' queue
to 'output' queue:
http://www.springframework.org/schema/beans";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:camel="http://
I am using the latest camel 2.0-m2 release. I have a list of gzipped file in
a step within a route. I need to extract the contents from the gzipped
location and then based on 1 of 3 types of tokens in the filename, I need to
pass the extracted filename to 3 different beans. My route looks like the
Hi,
You don't need to start the Broker with Camel, if you have already has
an ActiveMQ service running there.
You just need to update the JMS component's connection factory's broker URL.
Willem
buzzterrier wrote:
> Hello,
>
> We ha
I didn't see any stack trace in the mail.
What's you problem?
If you got the schema validate error , this FAQ[1] may help you out.
[1]
http://cwiki.apache.org/CAMEL/how-to-validate-the-camel-1x-context-xml-from-apache-camel-web-site.html
Willem
Serge Merzliakov wrote:
> Also,
> note that sche
My camel client sends a request to my service:
Future future = camelTemplate.asyncRequestBody(camelURI, searchTerms);
Where searchTerms is a simple pojo SearchTerms that has just string values
to be used for our query on the server.
On the server I get a NoTypeConversionAvailableException on
Hi All,
I am trying to create a webserivce using camel-cxf component with 1.6.1
version, while deploying the project (which is webapp) using jetty/tomcat
container, getting an stack over flow error. From tomcat/jetty logs, I can
clear see the recursive calls happening for initializing some beans.
Hello,
We have an existing ActiveMQ service running on a dedicated server. I am
having trouble figuring out how to integrate my Camel service with the
existing ActiveMQ service. Do we have to now start the ActiveMQ service
using the Camel Maven or Ant scripts? Will existing non-camel consumers be
Ok. See CAMEL-1749.
- Rune
Claus Ibsen-2 wrote:
>
> On Mon, Jun 22, 2009 at 12:10 PM, RuneB wrote:
>
>>
>> No, it's not the JAXB unmarshaller that throws the exception.
>> Unmarshalling
>> seems to work fine.
>>
>> It's for exceptions thrown *after* unmarshalling that the message body is
>
Claus Ibsen-2 wrote:
>
> On Mon, Jun 22, 2009 at 12:10 PM, RuneB wrote:
>
>>
>> No, it's not the JAXB unmarshaller that throws the exception.
>> Unmarshalling
>> seems to work fine.
>>
>> It's for exceptions thrown *after* unmarshalling that the message body is
>> lost. My testing indicates t
Hi
You need the around the route tag.
... insert the camel route here
On Tue, Jun 23, 2009 at 11:40 AM, Serge Merzliakov wrote:
>
> Sorry about that. I made sure to use camel 1.5 version of xsd in jar file
> here it is:
>
> http://www.springframework.org/schema/beans";
> xmlns:xsi="http:/
Hi,
the restricting or bug that for Validator.validate(source) the source
parameter must be of
type DOMSource and SAXSource was fixed in 2003!
See:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4945750
I use the following snippet in some projects:
validator.validate(new StreamSource(new St
Also,
note that schemaLocation defined schema location at camel-spring.xsd and
not full namespace. Because Im using classpath app context in spring this
seems to be the thing to do.
Serge
Serge Merzliakov wrote:
>
> Sorry about that. I made sure to use camel 1.5 version of xsd in jar file
Sorry about that. I made sure to use camel 1.5 version of xsd in jar file
here it is:
http://www.springframework.org/schema/beans";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:camel="http://activemq.apache.org/camel/schema/spring";
xsi:schemaLocation="
http://www.s
Hans,
We don't package a camel-scala test jar, but you can use Scala to
build your unit tests in combination with the camel-core test jar.
Just create a Camel unit test that extends the normal Camel
ContextTestSupport class and add the Scala DSL's RouteBuilderSupport
trait.
We use this technique
On Tue, Jun 23, 2009 at 10:40 AM, Roman Kalukiewicz <
roman.kalukiew...@gmail.com> wrote:
> 2009/6/23 Claus Ibsen :
> > Hi
> > I think the ValidatingProcessor was created like this using DOMSource and
> > DOMResult.
> >
> > I wonder if it can use SaxSource and SaxResult instead, in case its
> fast
2009/6/23 Claus Ibsen :
> Hi
> I think the ValidatingProcessor was created like this using DOMSource and
> DOMResult.
>
> I wonder if it can use SaxSource and SaxResult instead, in case its faster
> and uses less CPU resources.
I guess it could be, but according to [1] it has to be either
DOMSourc
Hi,
when I read JIRA-501 and its follow-up JIRA-1260
(http://issues.apache.org/activemq/browse/CAMEL-1260) I was not sure, if
implementing this ticket really would help in this situation. The reason is
that 'polling-failed-exception' would still be thrown from 'stop-consumer'
and so the exception
Hi
I created a new ticket to track changing this behavior
https://issues.apache.org/activemq/browse/CAMEL-1744
On Tue, Jun 23, 2009 at 10:24 AM, Claus Ibsen wrote:
> The original ticket for this is: CAMEL-501
> https://issues.apache.org/activemq/browse/CAMEL-501
>
>
> On Tue, Jun 23, 2009 at 9:
Hi
I think the ValidatingProcessor was created like this using DOMSource and
DOMResult.
I wonder if it can use SaxSource and SaxResult instead, in case its faster
and uses less CPU resources.
On Tue, Jun 23, 2009 at 10:12 AM, SwenVogel wrote:
>
> Hi,
>
> i stupid question: why you must get t
Hi,
I'm trying to configure redelivery in the loadbalancer but I don't get the
expected result.
What I want to do is something like this:
> loadbalancer +> route A (with maximumRedelivery=2)
| +> call endpoint
| +> call endpoint
The original ticket for this is: CAMEL-501
https://issues.apache.org/activemq/browse/CAMEL-501
On Tue, Jun 23, 2009 at 9:41 AM, Claus Ibsen wrote:
> Hi
> Yeah I think the idea was that it should remember if an exception occurred
> once during a poll.
> And then report it when it was stopping.
>
Hi,
i stupid question: why you must get the body as DOMSource for validating in
ValidationProcessor?
It would also possibly to use the body as String for example:
Source source = new StreamSource(
new StringReader(
exchange.getIn().getBody(String.class)));
--
View this message i
Hi
You spring config file is not visible/present in the mail?
Are you sure you use the correct namespace for Camel 1.x?
http://activemq.apache.org/camel/schema/spring
As Camel 2.0 uses a new namespace then you might have picked the wrong one.
On Tue, Jun 23, 2009 at 9:58 AM, Serge Merzliakov
I have tried to get the samples to work without success. Using:
* Camel 1.5 jars
* Activemq 5.2
* Spring 2.5.6
I want to write a Spring xml based file to copy messages from one jms queue
to another - as a proof of concept.
Here is my spring config file:
Hi
Yeah I think the idea was that it should remember if an exception occurred
once during a poll.
And then report it when it was stopping.
But I think it should ignore this and just do as it does log a WARN when the
poll failed.
So we can do a clean stop. And the logic that stops should try to st
Hi
I have created a ticket to track this one
https://issues.apache.org/activemq/browse/CAMEL-1743
And currently working on a fix.
On Tue, Jun 23, 2009 at 9:08 AM, Claus Ibsen wrote:
> Hi
> A workaround a you can say a solution is to convert the body to String
> before validating
>
> from("jett
Hi
A workaround a you can say a solution is to convert the body to String
before validating
from("jetty...")
.convertBodyTo(String.class)
.to("validatior:..");
On Mon, Jun 22, 2009 at 3:57 PM, SwenVogel wrote:
>
> Hi,
>
> i created the following simple route:
>
> from("jetty:http://loc
34 matches
Mail list logo