Re: typesafe endpoint configuration approach

2013-11-18 Thread ChristianSchaefer
Hi Willem, is there an example of how to "define the Endpoint in the pure Java way,"? Didn't find one.   regards Christian Schäfer Willem.Jiang [via Camel] schrieb am 2:34 Montag, 18.November 2013: Hi,   I’m not a not a big fan of this type safe endpoint configuration. As the endpoint

Message headers getting lost while using NMR

2013-11-18 Thread Neeraj Mahajan
My Integration application is divided into two camel contexts. I am using NMR to have integration between these two camel contexts. The flow is as follows and I am using *INOnly* Message Exchange Pattern 1 CamelContext1-Route -> NMR -> CamelContext2-Route 2 CamelContext2-Route set some *new header

Re: Composed Message Processor

2013-11-18 Thread bilalalp
Thank you so much :) -- View this message in context: http://camel.465427.n5.nabble.com/Composed-Message-Processor-tp5743165p5743410.html Sent from the Camel - Users mailing list archive at Nabble.com.

Camel and Testing

2013-11-18 Thread bilalalp
Hi, I've splitted my camel context with using routecontext. Everything is okay except for my unit tests doesn't work after this operation. I'm using annonation based testing. What can be problem? -- View this message in context: http://camel.465427.n5.nabble.com/Camel-and-Testing-tp5743411.html

Re: Parallel file processing with Camel

2013-11-18 Thread Claus Ibsen
Hi No there is no xml example. But its fairly easy to do as well. Java and XML is very the same. So for in XML just do ... insert stuff here On Sat, Nov 16, 2013 at 6:24 PM, piyushbhatt wrote: > Hi Claus, > > Is it available as part of XML configuration ? If yes can you point me

Re: Simple way of calling WS under Tomcat - whole url?

2013-11-18 Thread moldur
Thank you for clarification. I was lost and relative path in element made me think to much ;p You are perfectly right in destination the whole url works like a charm. Sorry for such a silly question. -- View this message in context: http://camel.465427.n5.nabble.com/Simple-way-of-calling-WS-u

Re: Message headers getting lost while using NMR

2013-11-18 Thread bradnicolson
HI Neeraj, What header you are setting in you camel message? Header value must be a Serializable object. Cheers, Brad -- View this message in context: http://camel.465427.n5.nabble.com/Message-headers-getting-lost-while-using-NMR-tp5743356p5743416.html Sent from the Camel - Users mailing li

Re: Camel and Testing

2013-11-18 Thread Claus Ibsen
Hi You need to provide more details, to get better help. You can take a look at this page which have some bullets what you can do http://camel.apache.org/support On Mon, Nov 18, 2013 at 9:24 AM, bilalalp wrote: > Hi, I've splitted my camel context with using routecontext. Everything is > okay e

CXF, X509, signatures

2013-11-18 Thread mdo
Hello, I've to setup a webservice client for an existing WSDL. Client requests have to get signed (WSHandlerConstants.ACTION -> WSHandlerConstants.SIGNATURE). Thing is there are a multitude of external webservice endpoints the requests need to get send to. And I have to use a couple of different

Re: after setting trigger.repeatCount=1 then also going to infinite scheduler

2013-11-18 Thread Claus Ibsen
Hi repeatCount is for the simple trigger, not for cron. So if you want something to only trigger one time, then remove the cron On Fri, Nov 15, 2013 at 6:05 PM, ishwar wrote: > hi. after setting repeatcount=1 then also my scheduler is continuously > running.. i dont know where i made mistake. >

Re: Is there interest in a second RabbitMQ component/consumer/endpoint?

2013-11-18 Thread Claus Ibsen
Hi I dont think its a good idea to create a 2nd component. Instead improve/fix make the the existing component better. We love contributions http://camel.apache.org/contributing.html On Fri, Nov 15, 2013 at 7:49 PM, Christian Posta wrote: > not sure what the rest of the community thinks... bu

Re: Import xml fragments of camel routes?

2013-11-18 Thread Claus Ibsen
Hi No you cannot do this. You can though have routes in seperate xml files and use http://camel.apache.org/configuring-camel.html Though doesn't allow to use and the likes from On Fri, Nov 15, 2013 at 10:03 PM, dunnlow wrote: > I am using Spring 3.1 with Camel 10.1. > > I am working to su

Re: domain locks up on transactional file splits

2013-11-18 Thread Claus Ibsen
If you use the Camel splitter, then you can run in streaming mode On Fri, Nov 15, 2013 at 9:54 PM, javamonkey79 wrote: > We're running camel 2.11 and AMQ 5.8 on glassfish & red hat OS. > > We have a route which reads in somewhat large files (20 mb) and has to split > them up. The current route r

Re: Camel properties component not being resolved when configuring data source

2013-11-18 Thread Claus Ibsen
If you use spring, then all the is spring's property placeholder that handles that. And spring uses ${ } syntax. So change To use ${ } All inside is Camel. And uses {{ }} syntax. See also http://camel.apache.org/how-do-i-use-spring-property-placeholder-with-camel-xml.html On Sat

null expression for setting body to null?

2013-11-18 Thread Aki Yoshida
I would like to set the body to null using xml and would like do something as simple as ${null} I experimented with this idea and added this null-expression to the simple expression builder so that this expression works. But I was not sure if there is already another way to do this without introd

Re: onCompletion not triggerd in testing

2013-11-18 Thread cristisor
I found out the problem which was making my test not reach the onComplete syncProcessor but I am having another issue now. Inside the processor I use producer.sendBody(buildDurableSubscription(register), holder);, where producer is created in the context.xml with and return consumer.receiveBodyNoW

Re: onCompletion not triggerd in testing

2013-11-18 Thread Claus Ibsen
receiveNoWait does not guarantee a message will be received. You would need to use the one with a timeout value, to have client poll server for new messages. On Mon, Nov 18, 2013 at 12:23 PM, cristisor wrote: > I found out the problem which was making my test not reach the onComplete > syncProce

Re: null expression for setting body to null?

2013-11-18 Thread Claus Ibsen
What is the use-case for setting the body as null ? On Mon, Nov 18, 2013 at 11:59 AM, Aki Yoshida wrote: > I would like to set the body to null using xml and would like do > something as simple as > ${null} > > I experimented with this idea and added this null-expression to the > simple expressio

Re: onCompletion not triggerd in testing

2013-11-18 Thread cristisor
Thank you for pointing that out for me, now the test is working. Still, I find it weird that the consumer is not retrieving anything even though JConsole shows that the QueueSize > 0. -- View this message in context: http://camel.465427.n5.nabble.com/onCompletion-not-triggerd-in-testing-tp57431

Re: null expression for setting body to null?

2013-11-18 Thread Aki Yoshida
One use case is for a request-response scenario using a jaxws provider (at camel-cosnumer) and when you want to return a null to this endpoint so that it can return an HTTP 202 response to the caller instead of returning some xml data which was in the body (i.e., using the rule described in jaws sp

Re: null expression for setting body to null?

2013-11-18 Thread Claus Ibsen
Hi Yeah we could add that ${null} function to the simple language. Then we dont introduce a new DSL which likely is overkill for a not so often use-case. On Mon, Nov 18, 2013 at 2:35 PM, Aki Yoshida wrote: > One use case is for a request-response scenario using a jaxws provider > (at camel-cos

Re: null expression for setting body to null?

2013-11-18 Thread Aki Yoshida
hi claus, thanks. regards, aki 2013/11/18 Claus Ibsen : > Hi > > Yeah we could add that ${null} function to the simple language. > Then we dont introduce a new DSL which likely is overkill for a not so > often use-case. > > > > On Mon, Nov 18, 2013 at 2:35 PM, Aki Yoshida wrote: >> One use case i

CXF route in blueprint with policy and sts

2013-11-18 Thread Oliver Wulff
Hi there I've created a simple route in blueprint from cxf endpoint to another cxf endpoint. When I deploy this in Karaf the bundle stays in "GracePeriod" and the following exception is logged: 2013-11-18 16:06:36,556 | INFO | Thread-842 | BlueprintContainerImpl | container.Bl

Re: Import xml fragments of camel routes?

2013-11-18 Thread dunnlow
Claus, Bummer, ok thank you. Also, thank you for the comment about lack of onexception handling. That is an important limitation (for me) that I didn't catch in the documentation. I'd like to recommend adding it (and any other limitations on routeContext) - perhaps here: http://camel.apache.or

Re: RouteBuilder from exposing as a ChoiceDefinition rather than a RouteDefinition

2013-11-18 Thread peter.berkman
finally figured it out. first, because a ChoiceDefinition will compile just fine, but throw an exception at runtime, set the "from" to a local RouteDefinition variable - this way, the editor/compiler will complain. (note: the cast is needed because when you use ".end()" or ".filter()" it return

Memory issue while using the spliter EIP

2013-11-18 Thread cyrille.eloundou
Hi, I have a memory issue with the splitter. I have a big table with millions of records in a sql server database 2008. What I'm trying to do is : select * from myBigTable

Re: Memory issue while using the spliter EIP

2013-11-18 Thread Claus Ibsen
Hi I am not sure but maybe the fetchXXX options is only hints to the JDBC driver. As it may return the full data instead. So if you have millions of rows in the database table you get them all. You may write some SQL that is SQL server specific to tell it to only return first X rows. Each RDBMS

Re: camel:proxy (CamelProxyFactoryBean) and CamelBeanMethodName

2013-11-18 Thread steve.ardis
Continue to discover and try new things. I've also determined that my unit test works when the "proxy" and "export" beans are in different Spring applicationContext(s). So, still not sure why my real-world test fails (when the "proxy" and "export" beans are in different web applications). -- V

RE: Memory issue while using the spliter EIP

2013-11-18 Thread cyrille.eloundou
Thank you for your help Claus! Apache camel is a wonderful framework. Best Wishest! Cyrille Eloundou Barclays-Global Technology Java Solution architect work:201 499 2921 cell: 646 522 1567 cell private: 347 978 5022 -Original Message- From: Claus Ibsen [mailto:claus.ib...@gmail.com] Se

Re: Exposing a Remote Web Service written in Axis2

2013-11-18 Thread madusanka
Hi, Thanks a lot. it worked. Can I apply "Content Based Routing" rules if I use jetty for proxy ? -- View this message in context: http://camel.465427.n5.nabble.com/Exposing-a-Remote-Web-Service-written-in-Axis2-tp5743186p5743454.html Sent from the Camel - Users mailing list archive at Nabble.

Re: Help with properites resolution

2013-11-18 Thread piyushbhatt
Any pointers on this issue Piyush -- View this message in context: http://camel.465427.n5.nabble.com/Help-with-properites-resolution-tp5743374p5743452.html Sent from the Camel - Users mailing list archive at Nabble.com.

hawtio camel route layout/UI question.

2013-11-18 Thread arparikh21
We use spring DSL for our camel route definitions. I just integrated hawtio with our dev environment and it is awesome.. As part part of our route definition, we added "id" attribute to each of our node to give a meaningful business name. However, in the layout diagram, for each node (to's) it s

Re: hawtio camel route layout/UI question.

2013-11-18 Thread James Carman
Perhaps you should send this email to their mailing list: http://hawt.io/community/index.html On Mon, Nov 18, 2013 at 2:22 PM, arparikh21 wrote: > We use spring DSL for our camel route definitions. I just integrated hawtio > with our dev environment and it is awesome.. > > As part part of our r

hawtio camel route layout/UI question.

2013-11-18 Thread arparikh21
We use spring DSL for our camel route definitions. I just integrated hawtio with our dev environment and it is awesome.. As part part of our route definition, we added "id" attribute to each of our node to give a meaningful business name. However, in the layout diagram, for each node (to's) it s

Re: hawtio camel route layout/UI question.

2013-11-18 Thread Claus Ibsen
Hi You can reach out to the hawtio community at http://hawt.io/community/index.html The hawtio project loves the github way of communicating. And I think your suggest of being able to see the id in the Camel diagram is a good idea. Maybe allow people to configure this what they prefer to see. t

Re: Import xml fragments of camel routes?

2013-11-18 Thread Claus Ibsen
On Mon, Nov 18, 2013 at 4:31 PM, dunnlow wrote: > Claus, > > Bummer, ok thank you. Also, thank you for the comment about lack of > onexception handling. That is an important limitation (for me) that I > didn't catch in the documentation. I'd like to recommend adding it (and any > other limitati

Re: Camel properties component not being resolved when configuring data source

2013-11-18 Thread Joao Vicente
Willem and Claus Thanks so much for your help. I am updating the post with working code. Kind regards, Joao db.properties datasource.stg.url=jdbc:oracle:thin:... camel-context.xml ...

Re: typesafe endpoint configuration approach

2013-11-18 Thread ChristianSchaefer
My proposed guess wasn't meant/thought as a replacement for the the string URI configuration of camel. I just thought that it could be a helpful addon especially for Java DSL users. Sure, the endpoint "templates" would require implementation for each endpoint type because they are different in so

Splitting up XML into 2 XMLs

2013-11-18 Thread cameluser2013
Hi, I need to split up a XML into 2 XMLs.. Example:parent.xml .. .. it needs to split up to 2 xmls like below child1.xml ... child2.xml .. Please help me on this and am new to camel...i tried to understand other posts in the forum ,but am confused Thanks in advance!!! --

Re: Splitting up XML into 2 XMLs

2013-11-18 Thread Willem jiang
Hi, It not like one split operation, it is more like transformation first, and then splitting the xml base on the -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English) http://jnn.iteye.com (htt

JPA enpoint to CSV enpoint working but only 1 row

2013-11-18 Thread richie.rivi...@gmail.com
Hi all, I have written a route that executes a JPA named query and then marshall's the object into csv... private void configureCsvExportRoute () throws Exception { from(END_POINT_JPA_ITEM_EXPORT) .marshal() .csv() .to(END_POINT_FILE_ITEM_EXPORT);