Re: Camel JMS re-delivery on failure

2011-07-18 Thread Claus Ibsen
On Mon, Jul 18, 2011 at 11:04 PM, fridlyos wrote: > Hi > > Hoping to get some help with an design issue I'm having.  Playing around > with Camel error handling - trying to get an answer to following questions. > > If an exception is cough - message flows into exception handler.  If there > are

Re: how to decide a route should be define?

2011-07-18 Thread Willem Jiang
They are sharing the similar architecture. You can treat the netty as the next version of mina :) And netty is updated more often. On 7/15/11 10:28 PM, xiangqiuzhao wrote: if i need to implement socket protocol, why use netty and not mina? -- View this message in context: http://camel.465427.

EIP pattern for blocking messages or delaying messages

2011-07-18 Thread srimin
Hi I have a queue on which i'd like to receive JMS messages. I should start delivering the messages to an endpoint during working hours 9.00AM to 12.00PM I was wondering if there is any EIP pattern that could be helpful in achieving it. bw srim -- View this message in context: http://camel.4

Re: Camel JMS re-delivery on failure

2011-07-18 Thread Ashwin Karpe
Hi, Rollback of transactions all the way back to the Queue happens only if the ActiveMQ consumer/producer that write to the queue/topic use a Transacted session in ActiveMQ. When you create a connection factory, you need to set a Transaction Manager and a associated a Transaction against the JMS

Camel JMS re-delivery on failure

2011-07-18 Thread fridlyos
Hi Hoping to get some help with an design issue I'm having. Playing around with Camel error handling - trying to get an answer to following questions. If an exception is cough - message flows into exception handler. If there are few redelivery attempts to be made - Camel seem to handle it c

Re: Visio implementation of remaining EIP patterns

2011-07-18 Thread Ashwin Karpe
Hi, The original designs have been inherited from the "Enterprise Integration Patterns" book by Gregory Hohpe and Bobby Woolf. There could well be some patterns for which icons are not available. Cheers, Ashwin... - - Ashwin Karpe Apa

Visio implementation of remaining EIP patterns

2011-07-18 Thread Robert J. Liguori
Just FYI... I sent out an e-mail to Matthew Oskowis (http://eaipatterns.com/downloads.html), to see if there are any plans on creating Visio images for the following patterns: Message Routing === Scatter-Gather Throttler Sampling Delayer Load Balancer Multicast Loop Message Trans

Re: RouteBuilder Predicate Syntax

2011-07-18 Thread enalposi
Yes, I suppose that's another option, or wrap things with a DelegateProcessor. Our route builder (on top of the Camel RouteBuilder) is part of a larger framework and makes all sorts of dynamic and configured decisions how to assemble various scenarios. Cheers! -- View this message in context: h

Re: Camel to testQueue.

2011-07-18 Thread boday
see the camel http://camel.apache.org/jms.html jms page for details or this example https://svn.apache.org/repos/asf/camel/trunk/components/camel-jms/src/test/java/org/apache/camel/component/jms/JmsRouteTest.java unit test zerdo wrote: > > Can someone hint me how to Calem with the following

Re: EIP pattern for blocking messages or delaying messages

2011-07-18 Thread boday
you can also look at Camel http://camel.apache.org/quartz.html Quartz for scheduling and the http://camel.apache.org/content-enricher.html pollEnrich pattern for retrieving message and passing them along to your queue... srimin wrote: > > Hi > > I have a queue on which i'd like to receive J

Re: RouteBuilder Predicate Syntax

2011-07-18 Thread boday
choice and predicate are used to do conditional routing based on attributes of an exchange/message, not static attibutes resolved on route startup... I'm not following what you are trying to do...why would a Processor be NULL exactly? If a code change is required to add/remove/implement a process

Re: EIP pattern for blocking messages or delaying messages

2011-07-18 Thread Ashwin Karpe
Hi, Please check out http://camel.apache.org/delayer.html http://camel.apache.org/delayer.html http://camel.apache.org/message-filter.html http://camel.apache.org/message-filter.html Cheers, Ashwin... - - Ashwin Karpe Apache Camel C

Re: Sending MapMessage via CamelContext?

2011-07-18 Thread Claus Ibsen
On Mon, Jul 18, 2011 at 3:14 PM, heinrichheine wrote: > Hi there, > > i was wondering how to create a MapMessage with the Camel XML route notation > (no Spring). > I've read in the Camel docs that Map objects in the body will be converted > to MapMessage. > But how do i specify the key values in t

Re: How do I authenticate with Camel?

2011-07-18 Thread nizhnegorskiy
Thanks! -- View this message in context: http://camel.465427.n5.nabble.com/How-do-I-authenticate-with-Camel-tp4590064p4599426.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Re: Translate FIX message to HTTP request

2011-07-18 Thread pvenini
Hi, I finally managed to go forward a few steps by modifying the quickfix converter. The route I'm building looks like this: from("quickfix:config.cfg"). filter( header(QuickfixjEndpoint.MESSAGE_TYPE_KEY).isEqualTo(MsgType.ORDER_SINGLE)). unmarshal(camelDataFormat). to("jetty:http://loc

Re: RouteBuilder Predicate Syntax

2011-07-18 Thread enalposi
Ok, so I initially used #1 but it failed to build the route. The issue seems to be different than what I originally assumed... Basically I am building a route and want to insert a processor based upon a condition (which is: does the processor exist?). Initially I did this with an if-then-else stat

Sending MapMessage via CamelContext?

2011-07-18 Thread heinrichheine
Hi there, i was wondering how to create a MapMessage with the Camel XML route notation (no Spring). I've read in the Camel docs that Map objects in the body will be converted to MapMessage. But how do i specify the key values in the xml? ? thanks in advance martin -- View this messag

Re: how to send string as a soap message to jbi endpoint

2011-07-18 Thread rrino Gazeta.pl
Of course - provider :) And with useJBIWrapper="false" and useSOAPEnvelope="true" it works fine, thanks a lot! regards rafal 2011/7/18 Freeman Fang > Hi, > > my comment inline > > On 2011-7-18, at 下午7:49, rrino Gazeta.pl wrote: > > Hi >> >> I have a question regarding sending soap message as

Re: how to send string as a soap message to jbi endpoint

2011-07-18 Thread Freeman Fang
Hi, my comment inline On 2011-7-18, at 下午7:49, rrino Gazeta.pl wrote: Hi I have a question regarding sending soap message as a String to jbi.endpoint (cxf-bc concumer): I guess you mean cxf bc provider here, as to("jbi:endpoint:..) the target can't be a cxfbc consumer. with the follow

Re: how to send string as a soap message to jbi endpoint

2011-07-18 Thread Jean-Baptiste Onofré
Hi, you should transform the message into a JBI message. Basically, a JBI message is more or less a SOAP envelope (payload) with headers (jbi). Regards JB On 07/18/2011 01:49 PM, rrino Gazeta.pl wrote: Hi I have a question regarding sending soap message as a String to jbi.endpoint (cxf-bc c

how to send string as a soap message to jbi endpoint

2011-07-18 Thread rrino Gazeta.pl
Hi I have a question regarding sending soap message as a String to jbi.endpoint (cxf-bc concumer): with the following from("timer://tutorial?fixedRate=true&delay=4000&period=1") .setBody(constant(msg)) .to("jbi:endpoint: http://servicecom/ws/WebService/cxfbc-provi

Re: two webapps on Tomcat sharing cache through Camel

2011-07-18 Thread alberto.zigoni
Yes, they are serializable. Everything works fine if everything is used within the same web application. The problems come out when spreading things among different web apps. Unfortunately I cannot go with OSGi because of backwards compatibility. Thanks anyway. Alberto Il giorno 18/lug/201

Re: CAMEL-4176 fix

2011-07-18 Thread Claus Ibsen
On Mon, Jul 18, 2011 at 2:23 AM, Don Doffe wrote: > Hi Claus, > > sorry I could not check the fix on the weekend. I have shut down my work PC > by mistake (instead of rebooting it) over the VPN. > > I have run the scenario Camel -- HTTP --> proxy -- HTTPS --> destination. > Seem to work. > > Will

camel-jms, JBoss Messaging

2011-07-18 Thread Don Doffe
Hi, does anybody have a example how to configure camel with JBoss Messaging? Using AS 5.1.0. Thanks. -- View this message in context: http://camel.465427.n5.nabble.com/camel-jms-JBoss-Messaging-tp4598676p4598676.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Problem with Camel,osgi-compendium and mvn camel:run

2011-07-18 Thread Freeman Fang
Hi, I don't think there's a way you can init camel-context which include spring-dm property placeholder outside the OSGi container. Because to init bean like id="testcfg" it will use OSGi configAdim service which need some core functionality from OSGi container such as bundleContext get in

Re: two webapps on Tomcat sharing cache through Camel

2011-07-18 Thread Claus Ibsen
On Mon, Jul 18, 2011 at 10:21 AM, alberto.zigoni wrote: > Claus, > > I have tried it first, but there are a lot of ClassNotFoundError problems. > > Even though you find the least amount of jars to be copied to the tomcat > shared lib, there are problems when you e.g. call > exchange.getIn().getB

Re: two webapps on Tomcat sharing cache through Camel

2011-07-18 Thread alberto.zigoni
Claus, I have tried it first, but there are a lot of ClassNotFoundError problems. Even though you find the least amount of jars to be copied to the tomcat shared lib, there are problems when you e.g. call exchange.getIn().getBody(MyApplicationClass.class). If the Camel core classes are loaded

Re: two webapps on Tomcat sharing cache through Camel

2011-07-18 Thread Claus Ibsen
Maybe just copy that camel-cache JAR into tomcat shared lib. And then keep the other Camel JARs in your WARs. On Mon, Jul 18, 2011 at 9:42 AM, alberto.zigoni wrote: > I have defined a Camel context with a route creating and populating a cache. > This camel context is included into a web applicat

Problem with Camel,osgi-compendium and mvn camel:run

2011-07-18 Thread Dinesh
We have camel based application as OSGi bundle and were able to run using [mvn camel:run] apart from deploying it as a bundle in Servicemix. Later we moved the properties file out of bundle.For this we have used Compendium Services.This facilitates us to keep the configuration file outside the b

two webapps on Tomcat sharing cache through Camel

2011-07-18 Thread alberto.zigoni
I have defined a Camel context with a route creating and populating a cache. This camel context is included into a web application deployed on Tomcat. The route creating and populating the cache is fired at startup using a Quartz endpoint. Everything works fine. Now I want to query that cache fr

Re: onException vs. doTry...doCatch

2011-07-18 Thread alberto.zigoni
Claus, thanks for the info. I have tried using the AggregationStrategy to handle errors, as suggested in the book, but with the onException configuration the route exits before calling the aggregate(). I will stick to the doTry...doCatch syntax for the moment. Thanks Alberto Il giorno 16/l