Camel: SOAP over JMS

2011-04-26 Thread Zhemzhitsky Sergey
Hi there, I'm trying to configure SOAP over JMS by means of camel, cfx, activemq and servicemix (apache-servicemix-4.3.1-fuse-01-09). Here is documentation http://camel.apache.org/camel-transport-for-cxf.html I'm using. My configuration file looks like this beans

Re: Camel: SOAP over JMS

2011-04-26 Thread Christian Schneider
Hi Sergey, I think you are mixing the camel transport for cxf and the camel cxf endpoint in your config. I have some experience how to use the camel transport for cxf which I think is the cleaner alternative anyway. You already have configured the CamelTransporFactory. Next you should

Interceptor in onexception route

2011-04-26 Thread ghosh
I have some routes defined along with onException route like below onException exceptioncom.mycompany.MyException/exception log message=befor ex1 / to uri=ex1 / log message=befor ex2 / to uri=ex2 / /onException route id=id1 from uri=uri1 to uri=uri2 / /route

maximumRedeliveries is ignored

2011-04-26 Thread Sorin Silaghi
Hi, I have the folowing onException configuration in my camel-context.xml: onException exceptionjava.lang.Exception/exception redeliveryPolicy maximumRedeliveries=2 / /onException The route uses the file component for pooling. I expect this

Re: maximumRedeliveries is ignored

2011-04-26 Thread Claus Ibsen
On Tue, Apr 26, 2011 at 1:14 PM, Sorin Silaghi sorin7...@gmail.com wrote: Hi,      I have the folowing onException configuration in my camel-context.xml:        onException            exceptionjava.lang.Exception/exception            redeliveryPolicy maximumRedeliveries=2 /        

Re: Camel: SOAP over JMS

2011-04-26 Thread Willem Jiang
Hi, If you want to use the SOAP over JMS, you don't need to use the camel transport for CXF. Did you have a chance to try to create pure CXF with SOAP over JMS? Willem On 4/26/11 2:51 PM, Zhemzhitsky Sergey wrote: Hi there, I'm trying to configure SOAP over JMS by means of camel, cfx,

Re: SAXParseException by receiving a CXF web service response

2011-04-26 Thread Willem Jiang
Hi Christian, The configuration looks good for me. So I doubt it may be a JAXP issue, please let me know if it still there after you upgrade the version of Service. Willem On 4/26/11 3:09 AM, Christian Mueller wrote: Hello Willem! Sorry for not answering so long, but last week I worked

Reinstating JMS SimpleMessageListenerContainer

2011-04-26 Thread Joshua Watkins
A while ago there was a discussion topic that the SimpleMessageListenerContainer/ConsumerType.Simple was removed from camel-jms as it was deprecated. However from looking at the latest Spring docs ( http://static.springsource.org/spring/docs/3.1.0.M1/javadoc-api/org/springf

RE: Camel: SOAP over JMS

2011-04-26 Thread Zhemzhitsky Sergey
Hello Christian, Thanks for help. Finally I understood that I was slightly incorrect trying to bind a cxf service to an activemq endpoint so I have used cxf-jms transport. Moreover it seems that it's hardly possible to bind cxf:cxfEndpoint xmlns:cxf=http://camel.apache.org/schema/cxf; ... /

RE: Camel: SOAP over JMS

2011-04-26 Thread Zhemzhitsky Sergey
Hi Willem, Thanks for help. I understood that I was incorrect and was using not an appropriate tool for soap over jms. I succeeded in configuring cxf to use jms transport using the following configuration ?xml version=1.0 encoding=UTF-8? beans

Adding Routes dynamically

2011-04-26 Thread Jeff Segal
Hi all, I have written a service bean which can add and remove Routes dynamically and I'd like to know if my approach was kosher in terms of best practices. It's not exactly pretty, but it does work. Here are the two classes: @Component public class RssRouter implements CamelContextAware {

Re: Adding Routes dynamically

2011-04-26 Thread Joshua Watkins
You are missing using the routeId. When you create your route you need to: from(uri + ?splitEntries=falseconsumer.initialDelay=0). marshal().rss(). to(mock:result).routeId(routeId); Then when you remove the route you use the same routeId string. I hope this

Re: Adding Routes dynamically

2011-04-26 Thread Jeff Segal
Great, I will add the routeId. Thanks for the quick help. On Tue, Apr 26, 2011 at 10:28 AM, Joshua Watkins joshua.watk...@gamesys.co.uk wrote: You are missing using the routeId. When you create your route you need to: from(uri + ?splitEntries=falseconsumer.initialDelay=0).

Transactional jms

2011-04-26 Thread Patrick Daly
Hi Using Apache camel 2.7 I've taken a simple example from the Camel in Action book. chapter9\multiple-routes An modified it slighly. from(activemq:queue:a) .transacted() .to(bean:process?method=process); public class Process { protected ProducerTemplate template; public void

Re: Using xpath in setHeader with spring DSL

2011-04-26 Thread ben.oday
hmmm, you aren't using xpath in the Java DSL, so the spring DSL should be something like this... setHeader headerName=Exchange.HTTP_URI simple{{cmisURL}}/p/${in.header.folderPath}childrensimple /setHeader antoine.julienne wrote: Here is my code : .setHeader(Exchange.HTTP_URI,

Error with quartz timer starting up active mq and camel

2011-04-26 Thread pcroser
I am relatively new to camel/spring and active mq and this forum. I hope I have posted in the right location. Please let me know is this is not the case acttivemq 5.50, camel 2.70, spring 3.4, linux centos I have defined the following xml ( below the error ) in a camel.xml file which is

Re: obtaining a reference to X509Certificate from jetty:https

2011-04-26 Thread samslara
I've figured it out and for anyone who's interested: from the Exchange you can get the HttpServletRequest via: exchange.getIn().getBody(HttpServletRequest.class) and from there get the X509Certificate via: request.getAttribute(javax.servlet.request.X509Certificate) -- View this message in

Re: ROUTE_STOP and mail

2011-04-26 Thread Donald Whytock
Trying with a different mail server, it consistently deletes with IMAP and consistently fails to delete with POP3. Long as it's consistent, I'm good. Thanks. A couple issues that came up... - I got a FolderNotOpen error when the component was trying to set the DELETED flag. So to the

Re: Transactional jms

2011-04-26 Thread Willem Jiang
Hi You are using the producer template to send the message to a queue, in this case the transaction error handler will not be triggered. BTW, when the interruptedException is thrown, the template will not send the message to the queue:b. I don't get you description of the message that is