Camel - Move specific exchanges ONLY to a different location

2012-10-09 Thread raviwithyou
Hi, We had a scenario where we wanted to move only specific files to a different location (say done using move=done) and keep the remaining exchanges in the same location. This is the strategy we used to remove stale files for our application to Done location, meanwhile the correct files should r

Re: Netty or Mina Async in the same socket

2012-10-09 Thread Claus Ibsen
On Tue, Oct 9, 2012 at 9:20 PM, Flavio Magacho - M4U wrote: > Just for all to know, it works with my test case. > Thanks. > Magacho > Thanks for testing and reporting back. > -Original Message- > From: Flavio Magacho - M4U [mailto:flavio.maga...@m4u.com.br] > Sent: terça-feira, 9 de out

Re: Camel and JBoss

2012-10-09 Thread raviwithyou
Hi, Yes, we did. We created an MBean for managing our configurations and hooked up CamelContext to restart our routes. There are many ways as you said, we tried to wire in CamelContext to our MBean as below in our camel-context.xml. http://camel.apache.org/schema/spring";> ...

Re: Jboss 7 and camel -bindy 2.10

2012-10-09 Thread Elezabeth
Hi - Thanks & Regards Elz -- View this message in context: http://camel.465427.n5.nabble.com/Jboss-7-and-camel-bindy-2-10-tp5720739p5720830.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Jboss 7 and camel -bindy 2.10

2012-10-09 Thread Claus Ibsen
Hi On Wed, Oct 10, 2012 at 6:46 AM, Elezabeth wrote: > Hi Claus, > > This is my route Builder class. > > package jp.co.airlink.gavss.adapter.eai.oag; > > import org.apache.camel.Exchange; > import org.apache.camel.builder.RouteBuilder; > import org.apache.camel.dataformat.bindy.csv.BindyCsvData

Re: Does a "from Object" type converter override other converters?

2012-10-09 Thread Mark Doyle
Thanks, Raul. It looks like you were correct in a fashion. The message (query) is being sent from a Producer template using an annotation. This means it sends a BeanInvocation Object rather than the json Query string. Something to do with the Proxying I guess. I suspect the ObjectMapper in the con

Re: Jboss 7 and camel -bindy 2.10

2012-10-09 Thread Elezabeth
Hi All, One more question. If in case , Bindy doesn't work , can I use Camel Bean IO. I haven't done much research on that. But when I checked the documentation, I think it satisfy most of my requirements. I want to know which one is better Bindy or Bean IO? - Thanks & Regards Elz -- Vi

Re: Jboss 7 and camel -bindy 2.10

2012-10-09 Thread Elezabeth
Hi Chris, Thanks for your time. Please find the attched file. This is a sample csv file which i am trying to read using the Bindy component. sampleOag.csv Hope it will help. - Thanks & Regards Elz -- View this message in

Re: Jboss 7 and camel -bindy 2.10

2012-10-09 Thread Elezabeth
Hi Claus, This is my route Builder class. package jp.co.airlink.gavss.adapter.eai.oag; import org.apache.camel.Exchange; import org.apache.camel.builder.RouteBuilder; import org.apache.camel.dataformat.bindy.csv.BindyCsvDataFormat; import org.apache.camel.model.dataformat.BindyType; import org.a

Re: Removing an Endpoint from a route

2012-10-09 Thread Gnanaguru S
Hi Alejandro, I dont have knowledge on the option which you are trying. But why not you add a ' Failover ' attribute to your load balancing endpoint. It will skip the failed endpoint and Jump to the next available endpoint. http://camel.apache.org/load-balancer.html

Re: Best Practise for (Dynamic Topic in Ear Project)

2012-10-09 Thread zuff
Hi Christian, Thanks for your clarification. I will have a discussion with my PM and decide on the next course of action. Does it meant that we can't respond "only" to the backing bean that published the request ? Meaning I have to publish to a general topic, and the respective backi

Camel and JBoss

2012-10-09 Thread Flavio Magacho - M4U
Hi, Did anyone have used Camel with JBoss. I mean, did anyone knows if we have a MBean that starts and takes care of a Camel Context? I know that I can do that in many diferent ways, but it seems to be a common problems so . . . Thanks, Magacho Flavio Magacho Gerente de Desenvolvimento Diretori

passing email messages to camel:seda endpoint causes error

2012-10-09 Thread suralk
Hi All, I have a route that passes mail messages to a seda endpoint. However, when I try to consume this message from seda, I get an exception which says: org.apache.camel.RuntimeCamelException - Error populating the initial mail message attachments. this is how the two routes look like: from("im

Re: Best Practise for (Dynamic Topic in Ear Project)

2012-10-09 Thread Christian Müller
Hello Zuff! Please find some comments inline. If your response take so long (7 hours), InOut MEP is definitely the wrong choice. You should use the InOnly MEP in your context a), b) and c). a) xxx -->activemq:topic:request activemq:topic:response1 --> Aggregator activemq:topic:response2 --> Aggr

Re: Camel Tracer example - Database

2012-10-09 Thread Christian Müller
This is a known issue for OpenJPA + Derby. You can find an example how to work around at [1] and [2]. [1] https://svn.apache.org/repos/asf/camel/trunk/examples/camel-example-tracer/ [2] https://svn.apache.org/repos/asf/camel/trunk/examples/camel-example-tracer/src/main/java/org/apache/camel/exampl

RE: Netty or Mina Async in the same socket

2012-10-09 Thread Flavio Magacho - M4U
Just for all to know, it works with my test case. Thanks. Magacho -Original Message- From: Flavio Magacho - M4U [mailto:flavio.maga...@m4u.com.br] Sent: terça-feira, 9 de outubro de 2012 07:08 To: users@camel.apache.org Subject: Re: Netty or Mina Async in the same socket The idea is to u

Re: Jboss 7 and camel -bindy 2.10

2012-10-09 Thread Chris Wolf
Claus, Is the Camel-Jboss component supported on JBoss-7? I ask because the documentation page: http://camel.apache.org/camel-jboss.html ...mentions a camel-jboss jar for JBoss 4.x/5.x and different jar for JBoss-6 and no mention of JBoss-7 - and then further down the page, it says, "From Camel

Re: Jboss 7 and camel -bindy 2.10

2012-10-09 Thread Chris Wolf
Elz, I was making a general suggestion as to a better way to do Camel deployments on JBoss - i.e. not using WAR deployment, but rather Spring AppContext deployment. Sorry for not directly answering your CSV question. If I can, I'll try the Bindy component in one of our JBoss deployments and let

Re: Does a "from Object" type converter override other converters?

2012-10-09 Thread Raul Kripalani
Hi Mark, Camel picks the most suitable @Converter by traversing the chain of inheritance, comparing the actual payload type against the available @Converters. The unit tests of the components deal with Strings and with Objects, so in theory everything should work. What may be happening is that y

Re: Camel-CXF web services are not available

2012-10-09 Thread Sachin
Thanks i will try that, but now i got it working with a workaround. It definitely looks an issue to me. As CXF 2.4 ( SoapTransportFactory class) only supposrts below namespaces. "http://schemas.xmlsoap.org/wsdl/soap/"; "http://schemas.xmlsoap.org/wsdl/http"; "http://schemas.xmlsoap.org/wsdl

Re: Does a "from Object" type converter override other converters?

2012-10-09 Thread Claus Ibsen
On Tue, Oct 9, 2012 at 4:39 PM, Mark Doyle wrote: > I see, so line 63 should be a FallBackConverter? I guess a JIRA is in order. > > https://fisheye6.atlassian.com/browse/camel/trunk/components/camel-mongodb/src/main/java/org/apache/camel/component/mongodb/converters/MongoDbBasicConverters.java?hb

Re: Camel-CXF web services are not available

2012-10-09 Thread Willem jiang
Can you try to use the more latest Camel version? I think it could be better if you are trying to use CXF 2.5.x. BTW, how did deploy your camel route? -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.

Re: Does a "from Object" type converter override other converters?

2012-10-09 Thread Mark Doyle
I see, so line 63 should be a FallBackConverter? I guess a JIRA is in order. https://fisheye6.atlassian.com/browse/camel/trunk/components/camel-mongodb/src/main/java/org/apache/camel/component/mongodb/converters/MongoDbBasicConverters.java?hb=true In the case of this Mongo component I think it mu

Re: Does a "from Object" type converter override other converters?

2012-10-09 Thread Claus Ibsen
On Tue, Oct 9, 2012 at 4:11 PM, Mark Doyle wrote: > Hi all, > > Camel-mongodb has a set of provided type converters. > > @Converter > public static DBObject fromStringToDBObject(String s) { > ..blah blah > } > > @Converter > public static DBObject fromAnyObjectToDBObject(Object value) { > ...blah

Does a "from Object" type converter override other converters?

2012-10-09 Thread Mark Doyle
Hi all, Camel-mongodb has a set of provided type converters. @Converter public static DBObject fromStringToDBObject(String s) { ..blah blah } @Converter public static DBObject fromAnyObjectToDBObject(Object value) { ...blah blah } I'm trying to run a query which means sending a json string. Af

Re: JPA component and JTA

2012-10-09 Thread Lucas Amador
Hi, thanks for the tips! The JDBC driver being used already is XA capable (oracle.jdbc.xa.OracleXADataSource). Actually it is working well with transacted JMS routes and Oracle AQ, no problem with that. I just tried with Atomikos and I'm getting the same behaviour 09/10 10:34:16,360[main] INFO

Re: Camel-CXF web services are not available

2012-10-09 Thread Sachin
Hi Willem, Thanks for your quick reply, i modified my endpoint to have cxf:/// in both the routes, but now at camel startup i am getting below error in infinite loop. Caused by: java.lang.StackOverflowError at java.util.concurrent.ConcurrentHashMap$Segment.get(ConcurrentHashMap.java:350)

Camel OSGI and dynamicRoute

2012-10-09 Thread alexey-s
Hi I decided to try to call external camel process from another process. If in the first, specify the name of an external process, the process will be run once. If during the specified dynamic route, bean components are run many times. Use Apache Camel 2.10.1 and Apacke Karaf. Example route syste

Re: Jboss 7 and camel -bindy 2.10

2012-10-09 Thread Claus Ibsen
Hi Can you post the Camel route snippet that uses Bindy? You should favor specying the class type over package name. The latter requires to use the camel-jboss component to let the JBoss VFS be able to package scan the classpath. The former will not need for that as you specified the class name f

Re: Camel-CXF web services are not available

2012-10-09 Thread Willem jiang
Hi, It looks like you are leverage the CXF servlet transport. It is important that cxf endpoint address is start with "/" to make sure the service is published rightly. As the endpoint uri is start with "cxf://" the endpoint address is "swaptioncompactservice/SwaptionCompactService", you just

Re: Jboss 7 and camel -bindy 2.10

2012-10-09 Thread Elezabeth
Hi Chris, I dint understand quite well about your post. But one observation I would like to share here. When I used CSV instead of Bindy. It worked. So is not some issue between camel bindy and JBoss 7? My issue still exists. Camel bindy is more powerful than camel -csv. Also csv doesn't mat

Re: Jboss 7 and camel -bindy 2.10

2012-10-09 Thread Elezabeth
Hi Scott, I checked that and I have specified "," as the separator. - Thanks & Regards Elz -- View this message in context: http://camel.465427.n5.nabble.com/Jboss-7-and-camel-bindy-2-10-tp5720739p5720788.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Netty or Mina Async in the same socket

2012-10-09 Thread Flavio Magacho - M4U
The idea is to use a development build. I'm building a release of camel-netty to test a code that claus have done. So how can I use this build in service mix? Willem jiang wrote: It's depends on what's version of service mix are you using. As Apache Camel provides patch releases, it could be p

Re: autoStartup and Endpoints

2012-10-09 Thread Claus Ibsen
Hi I have logged a ticket to improve this https://issues.apache.org/jira/browse/CAMEL-5695 I agree we should look into not start the route services up front, but defer to when the route is actually started. The trick is that we need to enlist the route in JMX and as well do some sanity validation

Re: Validating each row in a csv file and skipping that row and continue to next

2012-10-09 Thread Claus Ibsen
Hi There is a bean validation component http://camel.apache.org/bean-validation.html On Fri, Oct 5, 2012 at 12:07 PM, Elezabeth wrote: > Hi, > > I have a requirement as below: > > I have a csv to be read. I am reading the csv file using camel and converted > to list of VOs . So I assume each ro

Re: Problem with SMPP Consumer error handling

2012-10-09 Thread Claus Ibsen
Btw I logged a ticket about this https://issues.apache.org/jira/browse/CAMEL-5693 On Fri, Oct 5, 2012 at 1:15 PM, Claus Ibsen wrote: > On Thu, Oct 4, 2012 at 9:27 PM, Christian Müller > wrote: >> @Claus: Could this be related to the doTry()/doCatch() issue you are >> investigating at present? Or

Re: TCP Channel as a Service

2012-10-09 Thread Claus Ibsen
On Fri, Sep 28, 2012 at 10:04 AM, alireza wrote: > Hi, > > I have a question, as far as I know we can have an outgoing tcp endpoint > which based on the defined route a message can be send to the endpoint using > a producer object. by receiving a message, producer will open a tcp > connection if t