Hi
That is actually what I did and everything came right. Thanks! :-)
On Fri, Sep 23, 2011 at 11:27 AM, Willem.Jiang [via Camel] <
ml-node+s465427n4832931...@n5.nabble.com> wrote:
> I found you are using Camel-2.7-SNAPSHOT, can you change to latest
> released Camel 2.8.1 ?
>
> On Fri Sep 23 16:
I know this is late on this post... but This would be a nice feature.
Curious if there has been any progress?
Also, another really great feature would be if the camel-web application
could use the jmx endpoints to communicate with camel-contexts so that the
web application could be deployed sepa
Hi, I was playing with a simple example using Camel and encountered an
exception in one of the routes. I had only 3 simple routes and in the
exception I saw that the method stack was already 65+ lines deep. The
exception was thrown midway in the second route - not even the final/3rd
route.
Don't y
Hi, just curious how would camel handle a runtime exception in this routing
example:
from("jms:someQueue").beanRef("someBean", "doSomething");
If bean#doSomething() throws a RuntimeException? Is the exception just logged
and swallowed? I'm mainly just interested in understanding if it will af
Hi,
I have JMS topic where I publish a few different types of POJOs.
I'm trying to create a log message that prints out the class of each POJO
along with the toString() representation. I got the toString() printing,
but can't figure out how to get the class name via the Simple syntax.
This pres
I understood your idea, but I don´t know if this will work.
Try something like this:
public class ProcessHeader{
public String process( Exchange exchange ) {
String param1 = exchange.getIn().getHeader("param1", String.class);
String param2 = exchange.getIn().getHeader("param2
Hi,
I assume you're using camel-cxf component, so it should be same to
configure interceptors as you do in CXF, you can add outInterceptors
for cxfEndpoint.
Freeman
On 2011-9-26, at 下午10:48, belmar.bob wrote:
Freeman:
Thanks for your response.
I think I have figured out how to write an
Thanks Claus,
I got busy with work, and I am just getting back to camel. I did try
looking into event-driven-consusmer, What i really want is to configure
dynamic selector on activemq queue. Here is how I am trying to configure
dynamic selector, please tell me if this is correct:
// once al
Alan, my only thought was that adding the processor to the JPA Entity Bean
seems odd to me (for some reason - I'm pretty new to JPA, but the beans I've
used thus far have been very clean). It seems like there should be a way in
Spring DSL to request that values in the header get passed to the
cons
Also, FYI. My current route for testing looks like:
I have tracing enabled, and I see that the message going to the jpa
component has the values set in the Header (which was passed in via the URL
to the servlet), but the Body is null.
--
View this message in context:
http://camel.46542
Hello!
Why don´t use a Processor?
http://camel.apache.org/processor.html
Use a processor to get the headers from servlet component and set in your
entity bean.
I believe is the simplest way to solve this problem.
Alan
On Mon, Sep 26, 2011 at 11:23 AM, dunnlow wrote:
> Hi,
> I am using Spring
Freeman:
Thanks for your response.
I think I have figured out how to write an interceptor, but I can't figure
out how to incorporate that sample into the servicemix/camel framework. Do I
set up the interceptor the same way, using the SpringBusFactory ? Or is
there a camel way to do that ?
Bob
-
Hi,
I am using Spring and have a servlet component that is receiving the url
parameters and placing them into header values. I have a JPA entity bean
and I would like to take those passed in parameters (in the header values
from the servlet component) load them into my entity bean and persist it
i
Hello all,
As some of you might have realized awhile ago, the JAXB implementation
causes interesting problems for those of you using spring to read
camel contexts. There are actually 2 errors with similar error output,
so this mail aims to reduce confusion for us all.
Error description: You rec
Hi
Camel does not have any existing option for this.
You can use a java bean to compute the number yourself
http://camel.apache.org/file-language.html
You can just use the JDK File API to check if the file exists, if it
does, then increment the number, and try again.
Until you find a "free numbe
Hi,
In File component URI, I have specified "moveFailed=..." option. Now
whenever there is any error, file is moved to error folder. I have a
requirement where files with same name are provided to input endpoint of
file component and if all of them are failing one by one due to any reason,
they sho
Hi Claus,
Thanks for your inputs.
We cant upgrade the version , but we will do something similar to what you
suggested in point no 2. Instead of calling a Servlet, we will call a
business class using Spring remote invocation. We will configure the
business class with camel context.
I have alread
Update : We found the problem with the doublue quotes, it's in the encoding
of the file.
New problem : How to set the encoding of the unmarshal method?
We tried to set the encoding of the exchange to UTF-8, we tried to set the
encoding of the route to UTF-8.
Both were unsuccessful.
Any suggestio
On Fri, Sep 23, 2011 at 5:55 PM, Barry Kaplan wrote:
> I don't have the stacktraces just now. I simply made scalaz-camel's method
> that creates endpoints synchronous. If needed I can undo that and create
> some traces.
>
Creating endpoints ought to be synchronized by Camel.
However in Camel 2.9
Thanks to all!
Adding this to my Spring config did the trick.
Regards,
Thorsten
Am 26.09.2011 09:44, schrieb Łukasz Dywicki:
> Hey Thorsten,
> You may put general import directive in Spring XML configuration file. For
> example:
>
>
>
> Another option is to extract configuration variables to
Hi all,
This is our route, everything works fine.
CsvDataFormat csv = new CsvDataFormat();
csv.setDelimiter(";");
onException(RuntimeException.class).handled(false).to("bean:exceptionProcessor",
"direct:readData").stop();
from(from)
.to("seda:fileQueue");
2011/9/26 Thorsten Höger :
> Am 26.09.2011 09:41, schrieb Claus Ibsen:
>> Hi
>>
>> What version of Camel are you using?
> I'm using Camel version 2.7.2 as a standalone application by using the
> class org.apache.camel.spring.Main.
>
The Main class has options to load from file system. Check out it
Am 26.09.2011 09:41, schrieb Claus Ibsen:
> Hi
>
> What version of Camel are you using?
I'm using Camel version 2.7.2 as a standalone application by using the
class org.apache.camel.spring.Main.
>
> And what server/container are you using?
>
> But in general the .xml file can be placed on the file
Hey Thorsten,
You may put general import directive in Spring XML configuration file. For
example:
Another option is to extract configuration variables to properties and re-use
them in camel configuration.
Best regards,
Lukasz
> Hi!
>
> Is there a possibility to place the camel-context.xml o
Hi
What version of Camel are you using?
And what server/container are you using?
But in general the .xml file can be placed on the filesystem, and you
can refer to it with the file: prefix.
2011/9/26 Thorsten Höger :
> Hi!
>
> Is there a possibility to place the camel-context.xml outside the .
Hi!
Is there a possibility to place the camel-context.xml outside the .jar
file to enable configuring the system without changing the jar package?
The use case is to deploy the same .jar but changing the .xml for
individual customers.
Thanks in advance.
Thorsten Höger
26 matches
Mail list logo