Re: JMS Transaction in jboss camel is not work

2011-02-23 Thread Claus Ibsen
On Thu, Feb 24, 2011 at 8:46 AM, Bill wrote: > > faint.. > I skip this infomation. > > thanks your advise. Well the good news is that it works :) And thanks for posting the answer. But yeah different servers and XA across different resources from different vendors can still be tricky :) > -- >

Re: JMS Transaction in jboss camel is not work

2011-02-23 Thread Bill
faint.. I skip this infomation. thanks your advise. -- View this message in context: http://camel.465427.n5.nabble.com/JMS-Transaction-in-jboss-camel-is-not-work-tp3395258p3398166.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: JMS Transaction in jboss camel is not work

2011-02-23 Thread Claus Ibsen
Hi You could have looked at the Camel JMS docu as well. There is a big red warning block http://camel.apache.org/jms Also, if you are using XA resources or running in a J2EE container, you may want to set the cacheLevelName to be CACHE_NONE as we have found that when using JBoss with TibCo EMS an

Re: JMS Transaction in jboss camel is not work

2011-02-23 Thread Bill
HI, I resolved this error. add in JMSComponent. because JMSComponent use DefaultMessageListenerContainer in spring , and in spring'docs , there is a words: Currently known servers that absolutely require CACHE_NONE for XA transaction processing: JBoss 4. For any others, consider raising the ca

Camel 2.6.0 - Locking with the file component

2011-02-23 Thread public_phil
I'm using Camel 2.6.0 and I've noticed some odd behavior with regard to file locking. Here are the routing details: The data file to be processed is a small .csv file that is routed to the "beanProcessor" for processing. The "beanProcessor" is an AsyncProcessor. Processing is quite compl

Re: How-to specify tab delimiter for flatpack

2011-02-23 Thread Claus Ibsen
On Wed, Feb 23, 2011 at 5:56 PM, prossman wrote: > > Hi, > > thanks for the quick reply, and sorry for not mentioning the version. I'm > using Camel inside Fuse 4.3.0 (apache-servicemix-4.3.0-fuse-03-00), so I'm > bound to what is used there: 2.4.0-fuse-02-00 > > I'll try to look for another worka

Re: How-to specify tab delimiter for flatpack

2011-02-23 Thread prossman
Hi, thanks for the quick reply, and sorry for not mentioning the version. I'm using Camel inside Fuse 4.3.0 (apache-servicemix-4.3.0-fuse-03-00), so I'm bound to what is used there: 2.4.0-fuse-02-00 I'll try to look for another workaround, then... Ciao, Philipp -- View this message in context:

Re: How-to specify tab delimiter for flatpack

2011-02-23 Thread Claus Ibsen
Hi Its fact already reported and fixed. See https://issues.apache.org/jira/browse/CAMEL-3045 Also you should always details what version of Camel you are using! And try upgrading to never version to see if its fixed. So in your case you need Camel 2.5 or better. On Wed, Feb 23, 2011 at 5:39 PM

Re: How-to specify tab delimiter for flatpack

2011-02-23 Thread Claus Ibsen
Hi I have created a ticket https://issues.apache.org/jira/browse/CAMEL-3710 You need to add a String -> char type converter, then it should work. On Wed, Feb 23, 2011 at 5:39 PM, prossman wrote: > > Hi, > > I'm receiving a tab-delimited file which I intend to parse with > camel-flatpack. My U

How-to specify tab delimiter for flatpack

2011-02-23 Thread prossman
Hi, I'm receiving a tab-delimited file which I intend to parse with camel-flatpack. My URI is: I'm trying to specify the tab using the delimiter option, but I get the following error: org.apache.camel.RuntimeCamelException: org.apache.camel.FailedToCreateRouteException: Failed to create route

RE: route's name in jconsole

2011-02-23 Thread Jaco van Tonder
Marcin, Sorry, my bad, the actual DSL portion is routeId() and not setId(). Jaco van Tonder Development & Integration: Software Engineer ubank A Sanhill Park, 1 Eglin Road, Sunninghill, Johannesburg, 2157 C +27 83 417 5424 T +27 11 518 5166 F 0866 754 9526 W http://www.ubank.co.za/ _

RE: route's name in jconsole

2011-02-23 Thread marcin
Hi, I cannot use setId(...) immediately after from(...) because setId(...) returns void and it should be use at the end of the route. Cheers, Marcin -- View this message in context: http://camel.465427.n5.nabble.com/route-s-name-in-jconsole-tp3396942p3397104.html Sent from the Camel - Users ma

Re: route's name in jconsole

2011-02-23 Thread marcin
Thanks for your help. It works. Cheers, Marcin -- View this message in context: http://camel.465427.n5.nabble.com/route-s-name-in-jconsole-tp3396942p3397087.html Sent from the Camel - Users mailing list archive at Nabble.com.

RE: route's name in jconsole

2011-02-23 Thread Jaco van Tonder
Hello Marchin, U suspect that you need to put the setId() section of the DSL immediately after the very first from element. from().setId("RouteName") Jaco van Tonder Development & Integration: Software Engineer ubank A Sanhill Park, 1 Eglin Road, Sunninghill, Johannesburg, 2157 C +27 83 4

Re: Transactional Camel route with ActiveMQ Topic and aggregator

2011-02-23 Thread xdevroey
Ok, I'll take a look. Thank you. Xavier. PS: The book has been ordered we look forward to it ;-) -- View this message in context: http://camel.465427.n5.nabble.com/Transactional-Camel-route-with-ActiveMQ-Topic-and-aggregator-tp3396892p3397049.html Sent from the Camel - Users mailing list arch

Re: Transactional Camel route with ActiveMQ Topic and aggregator

2011-02-23 Thread Claus Ibsen
Hi Spring Transaction with JMS is bound to the thread and it doesnt support a batch like commit. So what you can do is to use a persistent store with the aggregator, and have a TX from JMS -> AGG Then you can have a TX from AGG -> Route (* this is not "simulated" TX). See about HawtDB or the JDB

Re: Dynamic reloading of routes with SpringXML

2011-02-23 Thread Claus Ibsen
Hi See this example http://camel.apache.org/loading-routes-from-xml-files.html And CamelContext have API for starting/stopping/removing routes at runtime On Wed, Feb 23, 2011 at 2:01 PM, Arno Schatz wrote: > Hi, > > For productive use of Camel we would need to add, remove reload routes at > ru

Dynamic reloading of routes with SpringXML

2011-02-23 Thread Arno Schatz
Hi, For productive use of Camel we would need to add, remove reload routes at runtime without interuption to other routes. Most routes are defined using SpringXML. I have seen the smples of starting, stop and packageScan, but it seems they are all for Java DSL. I have not seen a way to dynamical

Re: route's name in jconsole

2011-02-23 Thread Claus Ibsen
On Wed, Feb 23, 2011 at 1:18 PM, marcin wrote: > > Hi, > > I would like to monitor my camel's routes using jconsole. > > When I create route in xml > > > ... > > > in jconsole I can see route's name "article-processing-route". > > But when I create route in dsl > > from("activemq:queue:test").pr

route's name in jconsole

2011-02-23 Thread marcin
Hi, I would like to monitor my camel's routes using jconsole. When I create route in xml ... in jconsole I can see route's name "article-processing-route". But when I create route in dsl from("activemq:queue:test").process(processor).setId("article-processing-event"); in jconsole I can

Transactional Camel route with ActiveMQ Topic and aggregator

2011-02-23 Thread xdevroey
Hello, I am trying to design a Camel route to take messages from an ActiveMQ Topic and register them into an Oracle database. The requirements for this route are: all messages will be saved in the database as soon as possible (we speak about ‘near real time’). My first idea was to have: -

AW: camel-cxf - relative path for webService resource

2011-02-23 Thread Christian Schneider
Hi Charles, another way is to use the camel transport for cxf and publish the service with a servlet:// route in camel. Christian -Ursprüngliche Nachricht- Von: Charles Moulliard [mailto:cmoulli...@gmail.com] Gesendet: Mittwoch, 23. Februar 2011 09:21 An: users@camel.apache.org Cc: Wi

Re: Producer Template and number of ActiveMQ Producers.

2011-02-23 Thread Ioannis Canellos
Thanks for your response. I declared the template in the camel context, and injected it using spring's @Autowried / @Qualifier and I think it works (currently testing it). I guess that a similar thing happens to consumers to *(I use @Consume annotation on a method)*. Any ideas on how I could confi

Re: camel-cxf - relative path for webService resource

2011-02-23 Thread Charles Moulliard
Hi Willem, I have registered my camel WebServices like you propose but fails to access the webservice using the url http://localhost:8181/cxf/pates/services/getAlias?wsdl No error is displayed in the console of Karaf except that application context is well started 09

xslt component and URI Resolver

2011-02-23 Thread Cappa Roberto
Hi, I'm trying to use the camel XSLT component with a stylsheet that contains xpath "document()" instructions. I've seen that default URIResolver works only with classpath resources, but my resources are available on relative web URLs (I'm using the Camel Servlet component deployed in a webapp)