Re: Using CamelHttpTransportServlet

2011-09-26 Thread ren
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:

Re: camel-web contexts

2011-09-26 Thread aedwards
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

Method invocation stack during route execution - stack depth too high?

2011-09-26 Thread Ashwin Jayaprakash
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

how does camel handle runtime exceptions?

2011-09-26 Thread Davis Ford
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

How do I access the message class name from Simple?

2011-09-26 Thread djakubiec
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

Re: Transform header values into jpa bean body?

2011-09-26 Thread Alan Camillo
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

Re: WSSE Security Header

2011-09-26 Thread Freeman Fang
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

Re: Activemq dynamic endpoint configuration

2011-09-26 Thread kal2420
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

Re: Transform header values into jpa bean body?

2011-09-26 Thread dunnlow
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

Re: Transform header values into jpa bean body?

2011-09-26 Thread dunnlow
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

Re: Transform header values into jpa bean body?

2011-09-26 Thread Alan Camillo
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

Re: WSSE Security Header

2011-09-26 Thread belmar.bob
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 -

Transform header values into jpa bean body?

2011-09-26 Thread dunnlow
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

JAXB bug and Camel interaction

2011-09-26 Thread Lennart Jorelid
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

Re: Appending index number in file name written in error folder by File component

2011-09-26 Thread Claus Ibsen
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

Appending index number in file name written in error folder by File component

2011-09-26 Thread nilsoni
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

Re: Invoking a Camel end point deployed in remote Server from JUnit test case

2011-09-26 Thread tatha
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

Re: Unmarshal csv with missing quotes

2011-09-26 Thread livensn
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

Re: ConcurrentModificationException added routes from multiple threads

2011-09-26 Thread Claus Ibsen
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

Re: Configuring Camel without modifying the jar

2011-09-26 Thread Thorsten Höger
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

Unmarshal csv

2011-09-26 Thread livensn
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");

Re: Configuring Camel without modifying the jar

2011-09-26 Thread Claus Ibsen
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

Re: Configuring Camel without modifying the jar

2011-09-26 Thread 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. > > And what server/container are you using? > > But in general the .xml file can be placed on the file

Re: Configuring Camel without modifying the jar

2011-09-26 Thread Ł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 properties and re-use them in camel configuration. Best regards, Lukasz > Hi! > > Is there a possibility to place the camel-context.xml o

Re: Configuring Camel without modifying the jar

2011-09-26 Thread Claus Ibsen
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 .

Configuring Camel without modifying the jar

2011-09-26 Thread Thorsten Höger
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