Re: Camel mock:end

2014-01-23 Thread Claus Ibsen
Yes mock keeps a copy of the exchange in memory. Though you can use retainFirst/retainLast option to only keep X number of copies. Read more about the mock at its website. On Thu, Jan 23, 2014 at 3:36 AM, contactreji wrote: > Hi All > > I was using mock component as a sink element in one of the

Re: I got weird problem with aggregator

2014-01-23 Thread Claus Ibsen
For JDBC you need to store serializable objects in the message as they need to be able to be written to a database. See at section what is preserved when persisting: http://camel.apache.org/sql-component.html On Wed, Jan 22, 2014 at 10:20 PM, nono wrote: > I got weird problem with jdbc aggregat

Re: Split and Aggregate - Old Exchange is null everytime in AggregationStrategy

2014-01-23 Thread Claus Ibsen
Looks like its your correlation expression that is a new group for each message, eg each xpath result is different. If you want to split and join the same messages then see this eip http://camel.apache.org/composed-message-processor.html And see the example using only splitter. That is much easie

Re: Dead letter queue and onException

2014-01-23 Thread Claus Ibsen
What Camel version do you use? On Wed, Jan 22, 2014 at 8:19 PM, bocamel wrote: > It seems that whenever an error is caught by onException, regardless whether > handled is set to true or false, the failed message would not be written to > the dead letter queue. Here is a sample project to demonst

Re: Apache Camel and Jboss FUSE IDE

2014-01-23 Thread Claus Ibsen
Fuse IDE is just an Eclipse based editor. You can use it for any kind of Java development. It just has a graphical UI for editing Camel routes as well. To run Java applications you can use maven to start the JVM, which you eg can do for unit testing etc. Or use maven goals that can startup Camel /

Bean cannot be instantiated

2014-01-23 Thread Muhzin
Hi all, I'm trying to run a camel application on karaf 3.0.0 using blueprint *Blueprint.xml * http://www.osgi.org/xmlns/blueprint/v1.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:camel="http://camel.apache.org/schema/blueprint"; xsi:schemaLoc

Re: I got weird problem with aggregator

2014-01-23 Thread nono
Then it should work, Because Map is HashMap, key and value are string , which stored in Map. More exception information like below. the problem happened when i update my bundle. i guess what stored in jdbc aggreator table is only Exchange 05:28:40,083 | WARN | teTimeoutChecker | eProcessor

Re: Bean cannot be instantiated

2014-01-23 Thread Muhzin
Hi all, Resolved the issue. I had multiple aws-sdk version installed in my ESB. I removed one of it and it fixed up the issue. Sorry for any troubles caused. On Thu, Jan 23, 2014 at 2:09 PM, Muhzin wrote: > Hi all, > I'm trying to run a camel application on karaf 3.0.0 using blueprint > > *Bl

Re: Bindy component: more than one model object per package

2014-01-23 Thread MohamedAli
Hello All, I am using Camel 2.12.2 version, facing the same problem. Is this feature available in Camel 3.0 now? Please tell me when this could be ready? Thanks in advance -- View this message in context: http://camel.465427.n5.nabble.com/Bindy-component-more-than-one-model-object-per-packa

Re: Apache Camel v2.12 | CXF Component | Basic Authentication | Web Service

2014-01-23 Thread manchandap
Thanks Willem, >> As the CxfProducer is created during the camel context start the route, >> the cxfEndpoint’s property is not updated. That was my hunch, however i was not able to prove it concretely. I will try your suggestion of updating the property in Route Builder's configure method. Thank

Re: Questions about cxfrs

2014-01-23 Thread Sergey Beryozkin
Hi, I haven't had a chance to look into it yet, will do asap What about this alternative (assuming you'd like to do it the JAX-RS way): Create a CXF jaxrs:server entry endpoint with the address like "camel://myservice", and link to it from Camel Servlet. This endpoint service implementation wil

Queries on jetty server

2014-01-23 Thread bijoy
I'm currently using Tomcat server to deploy web applications and REST webservices. The applications and services are deployed on tomcat on need basis but putting the necessary war file into tomcat's webapp folder. I want to realize the similar working model using camel's jetty component. I would l

RE: convert attachment to base64

2014-01-23 Thread Ronny Aerts
Hello, I was able to solve my base64 problems as: ContentType contentType = new ContentType (dh.getContentType()); if (contentType.match("image/*")) { // convert to base64 and add Content-Transfer-Encoding attribute byte[] attachmentData = exchange.getContext().getTypeConverter().convertTo(byte[

Re: Questions about cxfrs

2014-01-23 Thread David
Thanks for the suggestion, I'll look into it as a temporary workaround. On Thu, Jan 23, 2014 at 5:17 AM, Sergey Beryozkin wrote: > Hi, > > I haven't had a chance to look into it yet, will do asap > What about this alternative (assuming you'd like to do it the JAX-RS way): > Create a CXF jaxrs:se

Mail attachment, zip files goes to message body

2014-01-23 Thread kalber
Hi, i try to send a zip file as an attachment in a mail, but it finished in the message body, see below. In a bean i attach the zip file to the message with this code : exchange.getIn().addAttachment(filename,new DataHandler(new FileDataSource(pathname))); and then i try to set the content typ

Re: Dead letter queue and onException

2014-01-23 Thread bocamel
Hi Charles, thank you very much for the response. I assume what you meant was to reference the DLC in because the Spring DSL does not allow definition within . I tried to move the errorHandlerRef in the . It did not help. The failed message was only written to the dead queue if the error was

Re: Dead letter queue and onException

2014-01-23 Thread bocamel
Hi Claus, Thank you for your response. The version being tested is 2.12.2. -- View this message in context: http://camel.465427.n5.nabble.com/Dead-letter-queue-and-onException-tp5746362p5746402.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Split and Aggregate - Old Exchange is null everytime in AggregationStrategy

2014-01-23 Thread dinesh19aug
Claus, I tested the Xpath expression using a Xpath Evaluator tool and also printed out the coorelation expression results and all my messages are same. Ex- Group 1: 1 Group 2: 2 I am trying to keep things clean and hence thought that Aggregator2 would be a good way to keep t

Re: Split and Aggregate - Old Exchange is null everytime in AggregationStrategy

2014-01-23 Thread dinesh19aug
Claus, I tried to add the Aggregation strategy in the Splitter itself and that works and I get aggregated xmls messages. However I am still looking for a way to use Aggregator2. Is there no way I can implement it using Aggregator component? BTW .. if anyone is following this post here's how I

Re: Split and Aggregate - Old Exchange is null everytime in AggregationStrategy

2014-01-23 Thread dinesh19aug
Claus, I think I figured it out how to aggregate the messages using Aggregator. I added a headerName called id and use it as my correlation id. //te:Orders/*

Camel JCR examples?

2014-01-23 Thread hardikdesai81
Hi All, I have a need to use Camel JCR to communicate with a Jackrabbit repository for 3 operations: fetch a particular file, update a particular file, get a list of files in a particular node. Can someone please provide me some examples that can help in achieving this? Camel website does not co

Re: Logback used with Apache Camel throws so many irrelevant Exceptions

2014-01-23 Thread amrut
Why is it asking for so many dependencies - though I am not using any of the feature in my program. below is the logback configuration: public static void programmaticConfiguration() { ResourceBundle rb = ResourceBundle.getBundle("com.logProperties"); En

documentation fix - cannot update wiki page

2014-01-23 Thread MichaelAtSAG
All, I believe this documentation wiki page is incorrect. The example shows "features", but this word is not recognized by Karaf. http://camel.apache.org/twitter-websocket-blueprint-example.html "features:chooseurl camel 2.12.0" I believe the commands should be "feature". "feature:chooseurl ca

Re: documentation fix - cannot update wiki page

2014-01-23 Thread MichaelAtSAG
This command from the example is also unknown: osgi:install -s mvn:org.apache.camel/camel-example-twitter-websocket-blueprint/2.12.0 Do I need to use a specific version of Karaf to follow this example? Will this work with camel 2.12.2? -- View this message in context: http://camel.465427.n5.n

Re: Camel JCR examples?

2014-01-23 Thread Bilgin Ibryam
I have a blog post and github example here http://www.ofbizian.com/search/label/JCR Also you might consider using CMIS component that can talk also to Jackrabbit. Here is another example using cmis http://www.ofbizian.com/2012/07/content-migration-with-camel-cmis.html Cheers, On 23 January 201

Simple bean invocation with '.' throwing NoSuchBeanException

2014-01-23 Thread bhcohen
I'm using Camel 2.11.0 with Spring XML and am getting a NoSuchBeanException when I invoke a bean through Simple with a String argument that contains a period '.' I have a Map defined as follows: I then have a setHeader element that looks like: When setHeader is called I get: If I change t

Re: Camel 2.5.0 for Cygwin/UNIX

2014-01-23 Thread rjarchuleta
I am on a Windows laptop with no admin rights, but use Cygwin to have a UNIX-like environment. I downloaded the tar file many times. - Rich - On Thu, Jan 23, 2014 at 12:45 AM, Claus Ibsen-2 [via Camel] < ml-node+s465427n574638...@n5.nabble.com> wrote: > On Wed, Jan 22, 2014 at 8:13 PM, rjarchu

Http4 Set Header Content-Type not passing through to the HTTP Request

2014-01-23 Thread E. A. English
Hi, setting the Content-type header for Http4 Camel Route - Message headers from the IN message are not being copied to the OUT message Using Camel Version 2.12.2 example http4 route code: from("timer://foo?fixedRate=true&delay=0&period=1") .setHeader(Exchange.CONTENT_TYPE, consta

any suggestion for completionTimeout value ?

2014-01-23 Thread nono
Any suggestion for completionTimeout value? should I use it in my case? if yes. what should be the proper value? My scenario JdbcAggregationRepository aggregated message size will not bigger than 30KB shutdownRoute="Defer" with timeout=5000 , should be long enough for completing aggregatin

Re: Apache Camel v2.12 | CXF Component | Basic Authentication | Web Service

2014-01-23 Thread manchandap
Looking at the CXF Component Documentation , I notice that two new options (username and password) for Basic Authentication have been added in 2.12.3. However, from the download, I am not able t

Re: zip file best practices

2014-01-23 Thread alexey-s
ZipSplitter uses the input stream from the archive file (message body). Sends output stream for each attached file. One should not expect from him GenericFile Nothing complicated. -- View this message in context: http://camel.465427.n5.nabble.com/zip-file-best-practices-tp5713437p5746434.html

Re: Apache Camel v2.12 | CXF Component | Basic Authentication | Web Service

2014-01-23 Thread manchandap
Was able to get this working by adding the following code to the Route Builder. I am using Java DSL: Map properties = new HashMap(); AuthorizationPolicy authPolicy = new AuthorizationPolicy(); authPolicy.setAuthorizationType(HttpAuthHeader.AUTH_TYPE_BASI