Re: Route split, bean method call and new bean instance

2012-04-05 Thread Claus Ibsen
Hi If you use Spring or some other bean container, then you can define the bean in spring, and declare it as prototype scope, then a new instance is created each time Camel uses the bean. On Wed, Apr 4, 2012 at 7:04 PM, maticpetek wrote: > Hello, >   I'm using Java DSL and my route looks somet

Re: Route split, bean method call and new bean instance

2012-04-05 Thread maticpetek
Hi Claus, Thank you for reply. Any idea how to do this without bean container technology? I really wound not like to add another technology stack to our application. Or maybe better question : is it possible to do this without bean container technology? So I know if Sprint would become my next (t

Re: Camel Monitoring Tool

2012-04-05 Thread Christian Schneider
I don´t know exactly how the fuse hyperic integration works but I guess it is probably the same as at Talend. We also offer a Hyperic integration which is just a Hyperic plugin that discovers the camel jmx beans. So it is just for convenience. All the monitoring data is already offered by the c

RDF Integration

2012-04-05 Thread jpcook01
Hi, I wondered if there was support for RDF integration and SPARQL-driven messager routing yet in camel? I can't see anything in the components or other docs? Thanks Jon -- View this message in context: http://camel.465427.n5.nabble.com/RDF-Integration-tp5619733p5619733.html Sent from the Came

Re: Camel Monitoring Tool

2012-04-05 Thread Claus Ibsen
Hi Apache Camel offers details as JMX stats. And some as REST (see camel-web). But JMX is the most elaborate and has the most data. And of course there is also the logs as well. Any 3rd party tool which can work with JMX can then monitor Camel. Such tools could be: Nagios, Hyperic, IBM Tivoli, HP

Re: Difficulty with BeanIO from 2.10-SNAPSHOT - route does NOT start

2012-04-05 Thread Claus Ibsen
Hi That is a bit weird as we got unit tests in camel-beanio. Can you reproduce the issue in an unit test? And can you tell a bit more about your runtime environment, OS, and JDK etc. On Wed, Apr 4, 2012 at 10:51 PM, Aaron Daubman wrote: > Greetings, > > I was excited to see BeanIO support added

Re: OSGI Transaction Propagation to Camel Route

2012-04-05 Thread Stefan Burkard
Can you try to swap the two lines camel:transacted and camel:wireTap? There must not be any element between the "transacted" and the "from". Stefan On Thu, Apr 5, 2012 at 07:13, Chris Geer wrote: > We are building an application using ServiceMix (CXF, Camel, Karaf...) and > we've run into an is

Re: RDF Integration

2012-04-05 Thread Claus Ibsen
On Thu, Apr 5, 2012 at 9:39 AM, jpcook01 wrote: > Hi, > > I wondered if there was support for RDF integration and SPARQL-driven > messager routing yet in camel? > > I can't see anything in the components or other docs? > Can you provide more details about RDF? Maybe a link etc. So people have a b

Re: OSGI Transaction Propagation to Camel Route

2012-04-05 Thread Christian Müller
Chris, may be the source code of Claus book "Camel in Action" is helpful for you [1]. Could you als share your datasource configuration with us? It was not in your post... [1] http://code.google.com/p/camelinaction/source/browse/trunk/chapter9/xa/src/test/resources/spring-context.xml Best, Chris

Re: Jetty as consumer in synchronous mode?

2012-04-05 Thread Sameer Apte
Any one answering this question please??? I have run into exactly same problem. -Sameer -- View this message in context: http://camel.465427.n5.nabble.com/Jetty-as-consumer-in-synchronous-mode-tp5614463p5619898.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Jetty as consumer in synchronous mode?

2012-04-05 Thread Sameer Apte
Any one answering this question please??? I have run into exactly same problem. What I am trying to do is expose a jetty endpoint which will receive post requests from client and push the message on queue after converting body to string. And obviously it works fine. Route definition looks like bel

Re: Route split, bean method call and new bean instance

2012-04-05 Thread Claus Ibsen
On Thu, Apr 5, 2012 at 9:13 AM, maticpetek wrote: > Hi Claus, >  Thank you for reply. Any idea how to do this without bean container > technology? I really wound not like to add another technology stack to our > application. Or maybe better question : is it possible to do this without > bean conta

Re: Jetty as consumer in synchronous mode?

2012-04-05 Thread Claus Ibsen
On Thu, Apr 5, 2012 at 11:57 AM, Sameer Apte wrote: > Any one answering this question please??? > I have run into exactly same problem. What I am trying to do is expose a > jetty endpoint which will receive post requests from client and push the > message on queue after converting body to string.

Re: Jetty as consumer in synchronous mode?

2012-04-05 Thread Claus Ibsen
Hi Your issue is not the same as the original questions. So please start a new thread instead of hijacking the existing thread. On Thu, Apr 5, 2012 at 11:57 AM, Sameer Apte wrote: > Any one answering this question please??? > I have run into exactly same problem. What I am trying to do is expose

Re: Jetty as consumer in synchronous mode?

2012-04-05 Thread Claus Ibsen
Hi If there is a difference between your computer and the server. Then you should check what the difference is. And by synchronous, do you mean that Camel should process the message using the same thread, in full synchronous mode. Can you be more specific. What other components are involved in y

Scale routes with "stateful" processors

2012-04-05 Thread Stefan Burkard
Hi To clarify the subject: with "stateful" I mean processors with an internal state like aggregator, resequencer etc. On the other hand would I call processors like content based router etc. as stateless because they can take a single message and process it without further need to wait for other m

Re: Scale routes with "stateful" processors

2012-04-05 Thread Claus Ibsen
On Thu, Apr 5, 2012 at 12:55 PM, Stefan Burkard wrote: > Hi > > To clarify the subject: with "stateful" I mean processors with an > internal state like aggregator, resequencer etc. On the other hand > would I call processors like content based router etc. as stateless > because they can take a sin

Aggregator design

2012-04-05 Thread topicfun
Hi! I'm in trouble with aggregator please have a look the following route! from("jms:queue.purse.in") .choice() .when(new PredicateMessage()).to("direct:aggregate") .process(new ContextRequestProcessor())

Re: Camel SFTP move is failing in new fuse

2012-04-05 Thread Claus Ibsen
Hi This mailing list is for Apache Camel. You can use FuseSource forum / their support. To get help with the Fuse ESB. http://fusesource.com/forums/index.jspa That said can you post the full FTP uri, without the ${ } placeholders. This help us understand how you have configured it. And make sur

Re: RDF Integration

2012-04-05 Thread Hadrian Zbarcea
Not yet, I wrote a camel-jena component a while ago, at the time Jena was moving to the ASF. Then they didn't have a release for a long time. They just had their first release recently. From my talks to the guys in the jena community there seems to be some divergence of ideas about the future

Re: RDF Integration

2012-04-05 Thread Magnus Palmér
Restlet has a RDF extension, maybe that is worth looking into - http://wiki.restlet.org/developers/172-restlet/g2/160-restlet.html There is a chapter of it in the Restlet in Action but I haven't read it yet. I am not into the Semantic Web any time soon anyway. Den 5 april 2012 16:11 skrev Hadria

Re: OSGI Transaction Propagation to Camel Route

2012-04-05 Thread Chris Geer
Stefan, I removed the wireTap line completely and it didn't make any difference. Chris On Thu, Apr 5, 2012 at 1:00 AM, Stefan Burkard wrote: > Can you try to swap the two lines camel:transacted and camel:wireTap? > There must not be any element between the "transacted" and the "from". > > Stef

Re: OSGI Transaction Propagation to Camel Route

2012-04-05 Thread Claus Ibsen
There is some webinars about transactions with Camel, AMQ and ServiceMix, running in the OSGi world and uses XA as well. There should be some sample code as well. The TX should be the 2nd part of the webinar series. You can find the webinars here: http://fusesource.com/resources/video-archived-web

Re: OSGI Transaction Propagation to Camel Route

2012-04-05 Thread Chris Geer
Christian, I have that book and that is what I used for a lot of my reference. In fact, they only major difference between his source and mine is he is using Atomikos as the transaction manager and I'm using aries. I am referencing an existing PlatformTransactionManager instead of creating a JtaTr

Re: RDF Integration

2012-04-05 Thread Hadrian Zbarcea
RDF is one of the main standards (DataFormat in camel terms) the for the semantic web. From your reference to sparql you seem to be needing not only marshaling/unmarshaling to/from rdf, but interacting with an engine, which means a camel endpoint as well. Hadrian On 04/05/2012 10:45 AM, Magn

Re: OSGI Transaction Propagation to Camel Route

2012-04-05 Thread Claus Ibsen
On Thu, Apr 5, 2012 at 4:59 PM, Chris Geer wrote: > Christian, > > I have that book and that is what I used for a lot of my reference. In > fact, they only major difference between his source and mine is he is using > Atomikos as the transaction manager and I'm using aries. I am referencing > an e

Re: Detecting SOAP Faults

2012-04-05 Thread Castyn
Ah that makes sense, thank you. So basically I can just setup onException blocks to look for something like org.apache.cxf.interceptor.Fault to indicate a SOAP Fault, then within that onException block I could use a processor to do what I need? Something like this in the processor? SoapFault fau

Re: OSGI Transaction Propagation to Camel Route

2012-04-05 Thread Chris Geer
Claus, I realize that but I can't explain what I'm seeing. Here is an additional piece of info, here is debug log for the sending of the message. As you can see, the transaction fields are all null but I don't know if that is normal or a symptom of the problem. 08:51:22,906 | DEBUG | erations/add

Re: Difficulty with BeanIO from 2.10-SNAPSHOT - route does NOT start

2012-04-05 Thread Aaron Daubman
Hi Claus, Thanks for the reply. Fortunately (or unfortunately after the time wasted attempting to debug) when I attempted to continue debugging on my home machine with a copy of the exact project config and source (but not using the corporate nexus repo) everything "just worked". (Both machines a

Re: Detecting SOAP Faults

2012-04-05 Thread Castyn
I have done a bit more testing with this and seem to not be able to actually catch SOAP faults as exceptions. Lets say my CXF consumer throws the following in my route: 13:58:57,419 | WARN | qtp50072751-7150 | PhaseInterceptorChain| ? ? | - - | I

Parsing XML and binding to Java Object

2012-04-05 Thread vs.souza
Hello friends, I am using restlet to consume a restful service and I receive the following response from server: 5 2003-02-21T02:10:00-05:00 2000-02-27T00:00:00-05:00 1970-01-01T00:00:00-05:00 1970-01-01T00:00:00-05:00 1234 1970-01-01T00:00:00-05:00 Ly

Re: How can Shiro be used with camel to limit access to a route?

2012-04-05 Thread mgiammarco
Ok I have found the bug: ShiroSecurityTokenInjector creates a bytearray and puts it in the message header. The bytearray do not pass through openwire... But the bytearray content is a string text with only ascii chars! So I manually put it as an header of string type. -- View this message in co

MyBatis batch-insert example?

2012-04-05 Thread Aaron Daubman
Greetings, I've found some similar questions asked in the past but there never seem to be followups posted. I am looking for an example as how to perform batch insert operations using MyBatis with Camel. The desire is to be able to most efficiently insert 1000s of records at a time from a List. M

Re: Detecting SOAP Faults

2012-04-05 Thread Raul Kripalani
It looks like your client is sending an invalid SOAP message. Since JAXB cannot parse the Boolean value, the processing stops inside the CXF consumer before even hitting the Camel route. In fact, the error is not being handled gracefully because incoming XML schema validation is not enabled on the

Re: Parsing XML and binding to Java Object

2012-04-05 Thread Christian Müller
Use the camel-jaxb component/dataformat: http://camel.apache.org/jaxb.html Best, Christian On Thu, Apr 5, 2012 at 8:36 PM, vs.souza wrote: > Hello friends, > > I am using restlet to consume a restful service and I receive the following > response from server: > > > > 5 > 2003-02-21T02:10:00

Re: Detecting SOAP Faults

2012-04-05 Thread Castyn
I actually do have validation enabled on the CXF consumer in the properties with the schema-validation-enabled which I guess is why it returns a SOAP fault to the calling client and not something else. I didn't realize a CXF consumer never technically enters a route unless the consumer parse is

Re: camel-netty psuedo proxy?

2012-04-05 Thread Matt Narrell
This works fine with Mina, but chokes with Netty... On Apr 3, 2012, at 4:25 PM, Matt Narrell wrote: > I have a route: > >from("netty:tcp://somewhere:1234?...") > .to("bean:myBean?method=callOut") > > Where the callOut method does several things, followed by a producerTemplate > call to

Re: MyBatis batch-insert example?

2012-04-05 Thread Aaron Daubman
Ugh - I think I found my problem. The camel-mybatis code will iterate over any list passed in and attempt to insert each item individually, bypassing foreach support =( ---from camel/trunk/components/camel-mybatis/src/main/java/org/apache/camel/component/mybatis/MyBatisProducer.java --- pri

Re: MyBatis batch-insert example?

2012-04-05 Thread Aaron Daubman
I just created an issue and submitted a patch for this: https://issues.apache.org/jira/browse/CAMEL-5143 On Thu, Apr 5, 2012 at 11:31 PM, Aaron Daubman wrote: > Ugh - I think I found my problem. > > The camel-mybatis code will iterate over any list passed in and attempt to > insert each item in