Re: i am newbie to camel

2012-01-08 Thread Christian Schneider
Hi, you need to provide a little more context. What are you trying to do and what goes wrong? If you simply search a way to start you should look at the examples in the distribution and the tutorials. Christian Am 07.01.2012 06:20, schrieb shaharyar: hi folks I am very new with camel. i w

Re: JMS Header Issue

2012-01-08 Thread Castyn
Upon further investigation it seems to not be that simple. The basis of the route is as follows: Send request to JMS Queue A -> Splitter on Response -> For each split, JMS Queue B So it seems that after A is evaluated, if you reset the JMS headers servicemix will start throwing null pointer exce

Re: Xstream marshals to byte array and not String

2012-01-08 Thread mgiammarco
Thanks I have tried your workaround and it does the conversion. Unfortunately something worse is happening: with this route and a String input my stomp client receives a reply: from("activemq:queryServer?exchangePattern=InOut") .setExchangePattern(ExchangePattern.I

Re: Xstream marshals to byte array and not String

2012-01-08 Thread mgiammarco
Ok I have tried again and I failed again. This is my route: from("activemq:queryServer?exchangePattern=InOut") .setExchangePattern(ExchangePattern.InOut) .to("log:it.giammar.pratobackend?showHeaders=true").unmarshal()

JMS Header Issue

2012-01-08 Thread Castyn
After a lot of testing I have determined the cause of an issue I am having when using 2 different activeMQ JMS endpoints in the same route. Apparently after the first JMS queue is used, the message back will have a bunch of headers set such as JMSCorrelationId, messageId, JMSMessageId, etc. Now i

Re: Xstream marshals to byte array and not String

2012-01-08 Thread Claus Ibsen
On Sun, Jan 8, 2012 at 1:44 PM, mgiammarco wrote: > Hello, > I am using a stomp client (that usese only Strings) to send a bean to Camel > using ActiveMQ. It marshal the message to a String using xstream. > > Camel receives it as String, it unmarshals (using xstream) it as the correct > Java Bean.

Re: Embedded Web Console in Tomcat

2012-01-08 Thread mgiammarco
Hello, any news about this? I have the same problem: I need web console under tomcat. Is there any workaround? Can I deploy the console in a separate war? Thanks, Mario -- View this message in context: http://camel.465427.n5.nabble.com/Embedded-Web-Console-in-Tomcat-tp4894690p5129233.html Sent f

Re: Complex app… 1 context or many?

2012-01-08 Thread Willem Jiang
You can have a look at the camel-context component[1]. It maybe useful for you have a try :) [1]http://camel.apache.org/context.html On 1/8/12 7:53 AM, Jason Dillon wrote: I'm wondering what the best practice is for a complex application, where many sub-systems (some related, some not) are us

[DISCUSS] Dynamic ScheduledPollConsumer

2012-01-08 Thread Preben.Asmussen
hi We use a lot of polling in our integrations using components for File, FTP, Jpa (interface tables) and so on. Usually files or tables are only updated once a day or even once a week in a batch like fashion. When this happens its of course important to process as fast as possible (using the def

Re: Xstream marshals to byte array and not String

2012-01-08 Thread Willem Jiang
Hi, I just checked the code of camel-xstream in the trunk, it is converting the Java object into String. Can you show me the route that you have ? Which version of Camel are you using ? BTW, you need to set the encoding on the camel-xstream data format like this from("direct:marshal").marsha

Xstream marshals to byte array and not String

2012-01-08 Thread mgiammarco
Hello, I am using a stomp client (that usese only Strings) to send a bean to Camel using ActiveMQ. It marshal the message to a String using xstream. Camel receives it as String, it unmarshals (using xstream) it as the correct Java Bean. Camel process (it is a request-reply queue) and at the end I

Re: Protocol mismatch for port 443: engine's protocol is http, the url protocol is https

2012-01-08 Thread Willem Jiang
Hi, From the stack trace, I can tell the error is from CXF server side not the client side. The URL you found is for configuration of the CXF client side. You need to setup the jetty engine for SSL like this[1] for the server side. [1]http://cxf.apache.org/docs/jetty-configuration.html Wil

Re: Missing schema file in a cookbook article

2012-01-08 Thread Willem Jiang
We don't put the camel.xsd into to cxf.apache.org. You can find the schema in the META-INF/schema/configuration/ directory of the camel-cxf-transport.jar On Sun Jan 8 06:00:31 2012, Andreas Feldmann wrote: Hallo! I have tried to use a cookbook article, but this article uses a schema file whi

Re: Complex app… 1 context or many?

2012-01-08 Thread Christian Müller
For bigger applications we also use multiple contexts and bridge the context via the Camel ActiveMQ component (batch and online requests) or via the Camel VM component (only online requests). By splitting it into smaller parts each context is easier to understand and test. In addition, the developm