Active MQ - Camel Digital signature verification not working with ActiveMQ 5.10

2014-11-10 Thread ahmad.abed
Environment : Windows 7 64 Bit java version "1.7.0_21" ActiveMQ 5.10 with camel 2.13.1 using following camel route is failed during (crypto:verify) : Error during digital signature verification : INFO | jvm 1 | 2014/11/10 15:07:02 | ERROR | Failed delivery for (MessageId: queue_SSLTEST.ss

Re: Active MQ - Camel Digital signature verification not working with ActiveMQ 5.10

2014-11-10 Thread ahmad.abed
-- View this message in context: http://camel.465427.n5.nabble.com/Active-MQ-Camel-Digital-signature-verification-not-working-with-ActiveMQ-5-10-tp5758877p5758879.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Best way to discard changes made to Exchange by invoked route

2014-11-10 Thread Camel Guy
Hi Claus, Thanks for the pointer! This program logs "INFO hello" followed by an empty INFO message. I would like the second logged message to also be "INFO hello." Am I doing something wrong? Camel 2.14.0 Thank you, ~cg hello On Mon, Nov 10, 2014 at 10:06 PM, Claus

Re: [HEADS UP] - camel-scr for OSGi with pure Java in Camel 2.15

2014-11-10 Thread Claus Ibsen
Hi Christian sounds good if you have the time and willingness to dive into improving the camel-scr code. In camel-blueprint / camel-core-osgi is some code that gathers all the component names, data formats, and languages that are define in the Camel routes. And then use that to reference as the n

Re: Best way to discard changes made to Exchange by invoked route

2014-11-10 Thread Claus Ibsen
See about the content enricher On Tue, Nov 11, 2014 at 4:21 AM, Camel Guy wrote: > Hello, > > I am using Spring XML. I would like to invoke a route synchronously, > passing the current Exchange. However, I want to discard the changes > that the invoked route makes to the Exchange (e.g., modificat

Proxying RESTful service using the REST DSL :Camel 2.14.0

2014-11-10 Thread zeecamel
I am new to Camel, I want to proxy my RESTful webservice so I can provide additional output formats on top of json and xml. I then used the REST dsl for this and RestConfiguration component is "jetty". My Real webservice uses JaxB and Jackson httpconvertters. At the moment I was just doing a passth

Best way to discard changes made to Exchange by invoked route

2014-11-10 Thread Camel Guy
Hello, I am using Spring XML. I would like to invoke a route synchronously, passing the current Exchange. However, I want to discard the changes that the invoked route makes to the Exchange (e.g., modification of headers). So far this is the shortest recipe that results in the desired behavior:

Re: Camel Template solution for JSON

2014-11-10 Thread Willem Jiang
+1 for adding this new component. I just have a quick look at the JOLT[1] license, it uses ASLv2, which means we can use it within Apache Camel without any issue. [1]https://github.com/bazaarvoice/jolt -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.

Manual commit inside a loop using Camel

2014-11-10 Thread gabfssilva
Hello! I'm trying to do a manual commit a JMS transaction inside a loop using camel: from("direct:some-endpoint") .routeId("my-route") .process(createObject) .marshal().json(JsonLibrary.Jackson) .transacted("policyRequiresNew")

Re: http not cleaning up tmp files when exchange is stopped

2014-11-10 Thread freesbee EV
I have the same issue. There are some temporary files that aren't deleted. This an example of my code: private class ProcessorSend implements Processor { public void process(Exchange exchange) throws Exception { //... some operations String myEndpoint =

Re: CXF webservice deployment on glassfish

2014-11-10 Thread sab12in
Hi, Thanks for your reply. I did as you suggested as below http://localhost:8080/webservices/incident"; serviceClass="org.apache.camel.example.reportincident.ReportIncidentEndpoint" wsdlURL="etc/report_incident.wsdl" endpointName="ons:Repor

Date format issue in xstream marshalling.

2014-11-10 Thread sayed_india
Hi, I observed that while marshalling uisng XStream, the date field of an XML tag gets changed to GMT(i.e,-5:30 hrs). Could you please point to a quick solution to avoid this changes? Before transformation.All...[{COPYRIGHTYEAR=2009-01-01 00:00:00.0}] After Transformation..

Camel Template solution for JSON

2014-11-10 Thread salemi
Hi All, is there JSON template solution for camel? I saw camel supports the following templating: FreeMarker StringTemplate Velocity XQuery XSLT I like to convert incoming messages all to JSON using a template. There is framework called JOLT that maps json to json. It would b

Re: how to process json and dispatch to several processors

2014-11-10 Thread gmh
Thanks Claus. I have came across the Composed Message Processor in my research before and it does look like something we can leverage. How do you incorporate JsonPath in this pattern? Are there simple test cases I can use to illustrate the use of this pattern? How about concurrency issue? Can we e

Re: how to process json and dispatch to several processors

2014-11-10 Thread Claus Ibsen
Oh and your use-case may seem a bit like this eip http://camel.apache.org/composed-message-processor.html You can more easily do this using the splitter only, so see the _splitter only_ section on that page On Mon, Nov 10, 2014 at 4:43 PM, gmh wrote: > All, > I have a simple use case I am tryin

Re: how to process json and dispatch to several processors

2014-11-10 Thread Claus Ibsen
Hi Do you need to route to a "dynamic to" then see this FAQ http://camel.apache.org/how-to-use-a-dynamic-uri-in-to.html On Mon, Nov 10, 2014 at 4:43 PM, gmh wrote: > All, > I have a simple use case I am trying to implement. > We will be receiving data from websocket. > I am thinking about using

Re: Camel Aggregator: how to stop route on first failed Message

2014-11-10 Thread Claus Ibsen
See the control bus eip On Mon, Nov 10, 2014 at 4:10 PM, srikarn wrote: > Hi, > > I have setup my aggregator as follows. > > LevelDBAggregationRepository repository = new > LevelDBAggregationRepository(REPO_NAME, repoLocation+"/"+REPO_NAME+".dat"); > repository.setUseRecovery(true); >

how to process json and dispatch to several processors

2014-11-10 Thread gmh
All, I have a simple use case I am trying to implement. We will be receiving data from websocket. I am thinking about using poll consumer pattern to test for now. Essentially I will have the following json coming thru the activemq queue. {name: abc address: xyz } Where the json does not really

Camel Aggregator: how to stop route on first failed Message

2014-11-10 Thread srikarn
Hi, I have setup my aggregator as follows. LevelDBAggregationRepository repository = new LevelDBAggregationRepository(REPO_NAME, repoLocation+"/"+REPO_NAME+".dat"); repository.setUseRecovery(true); repository.setMaximumRedeliveries(3); repository.setRecoveryInterval(3000)

Issue with in-out pattern

2014-11-10 Thread cesar.tl
Hi, we are trying to use the in-out pattern with the following route: We have an MDB listening to queue1. This beans reads the bytes of the file, makes some modifications and then sends the bytes ba

Custom ShutdownStrategy to persist inflight exchanges?

2014-11-10 Thread Carsten
Hi all, I'm thinking about implementing a custom ShutdownStrategy to persist inflight exchanges to disk (or database). The reason for this is that we can't rely on a Messaging middleware to take care of the persistence, but we want to be able to shutdown routes without loosing those inflight

Re: Configuring hibernate with blueprint in karaf

2014-11-10 Thread Aryan
Hi, We also tried to use the latest karaf version(3.0.2) and using hibernate version as 4.2.15.Final but still same issue. Any ideas? Thanks, Aryan -- View this message in context: http://camel.465427.n5.nabble.com/Configuring-hibernate-with-blueprint-in-karaf-tp5758588p5758835.html Sent fro

Re: Strange issue with JDBC add Postgres

2014-11-10 Thread Tim Dudgeon
I dug a bit deeper here and I think that Camel is doing something with the connection, possibly related to autoCommit. I worked around the problem by writing my own Processor that sets autoCommit to false, sets maxRows on the statement and then iterates through the ResultSet and a cursor does se

Re: Camel's tps

2014-11-10 Thread Walzer, Thomas
Hi Frans, first of all it would have helped if you included a link to the mentioned presentation instead of letting us search for it ourselves: http://de.slideshare.net/JBossArchitectForum/jboss-fuse-invodafone?qid=bbceab91-7904-447c-9a77-1eef3efd2910&v=qf1&b=&from_search=1 The tps will vary wit

Re: [HEADS UP] - camel-scr for OSGi with pure Java in Camel 2.15

2014-11-10 Thread Christian Schneider
I just looked into the camel-scr component. If found some design issues: - Why do we need to @Reference to ComponentResolver. I think we should do this under the covers so the user does not have to configure it himself. The easiest way would probably be to do this using plain OSGi APIs. - It

Re: Problem with REST DSL (2.14.0) and String bean

2014-11-10 Thread Claus Ibsen
Hi Errors like that smells like mixed versions of Camel JARs on the classpath etc. So I suggest to double check that all the camel JARs are the same version. And also for Spring JARs. On Mon, Nov 10, 2014 at 9:10 AM, Vaïsse-Lesteven Arthur wrote: > Hi everyone, > > I'm currently trying the new R

Proxying RESTful service using the REST DSL :Camel 2.14.0

2014-11-10 Thread zeecamel
I am new to Camel, I want to proxy my RESTful webservice so I can provide additional output formats on top of json and xml. I then used the REST dsl for this and RestConfiguration component is "jetty". My Real webservice uses JaxB and Jackson httpconvertters. At the moment I was just doing a passth

Problem with REST DSL (2.14.0) and String bean

2014-11-10 Thread Vaïsse-Lesteven Arthur
Hi everyone, I'm currently trying the new REST DSL of the Apache Camel 2.14.0 release. And as the title of this post state it, I got problems with a bean that specify a file name. Let's show what's wrong. Here come a valid XML file reduced to a test case. It only define a String bean and a Camel