Re: jdbc component streamList, last row

2014-12-02 Thread Claus Ibsen
Hi I suggest to dive into the code to see if there is anything for that. And if not, if that would be possible to add? On Mon, Dec 1, 2014 at 5:01 PM, dermoritz wrote: > I am using jdbc component with streamList as output type. Is there a way to > know when last row arrived? (probably there is a

Delayed request processing with Camel Restlet 2.14.0

2014-12-02 Thread Thomas Günter
Hi, we moved a restful application based on the RESTLET component from Camel 2.13.3 to 2.14.0 and discovered severe perfomance problems with the latter version. Whereas requests with 2.13.3 were countinuously replied within a few (10) milliseconds, with 2.14.0 the requests took longer than 2

Re: Servlet component matchOnUriPrefix is not working as documented

2014-12-02 Thread Claus Ibsen
Try flipping the order the routes are defined, not the startup order attribute On Mon, Dec 1, 2014 at 6:18 PM, Amit wrote: > I still need to check with 2.14.0 version, but we did try to change the route > order by specifying startupOrder="1" for exact match and startupOrder="2" > to matchOnUri

Re: Rest DSL - OutType in case of error message problem

2014-12-02 Thread Claus Ibsen
Hi Yeah well spotted. We should improve rest-dsl to support these use-cases where you prepare a response message yourself and set the http status code to some error code etc. I guess if the status code is >= 300+ then we should assume its an error, and use the message body as-is as the response.

Re: Delayed request processing with Camel Restlet 2.14.0

2014-12-02 Thread Claus Ibsen
Hi Try set synchronous=true on the restlet uris. Also you can try downgraded restlet itself as we upgraded it too. On Tue, Dec 2, 2014 at 10:57 AM, Thomas Günter wrote: > Hi, > > we moved a restful application based on the RESTLET component from Camel > 2.13.3 to 2.14.0 and discovered severe p

Re: Quartz clustering in camel spring DSL - JIRA CAMEL-8076

2014-12-02 Thread selva
Hi Willem, I have downloaded(2.14.x from github) and debugged the camel quartz component source code and found the reason for the issue i am facing. As i already posted i am facing issue in the cluster environment, deployed the camel application as stand alone program running 2 instances. While e

Re: Setting rest response json directly

2014-12-02 Thread Claus Ibsen
Hi >From Camel 2.14.1 onwards we have made this easier with https://issues.apache.org/jira/browse/CAMEL-8104 So if you have a custom error message you just set the HTTP error code to a value 300+ and rest-dsl will not do output binding. There is a new option that is turned on by default, you can

Re: Rest DSL - OutType in case of error message problem

2014-12-02 Thread Claus Ibsen
Hi I logged, and fixed this for next release https://issues.apache.org/jira/browse/CAMEL-8104 On Tue, Dec 2, 2014 at 11:38 AM, Claus Ibsen wrote: > Hi > > Yeah well spotted. We should improve rest-dsl to support these > use-cases where you prepare a response message yourself and set the > http s

Re: JMS Put to WebsphereMQ destionation using a Qmgr name - how to specify?

2014-12-02 Thread clinton
Unfortunately, that only controls which Qmgr I am connected to. If I want to send messages through that one to other Qmgrs, that has to be specified at the point of the send of the message. Just like email. You connect to your "local" email server, but then send to people both local and remote to

Problem with getting SOAP Header from response for spring-ws

2014-12-02 Thread hanusto
Hello, we have problem with getting SOAP Header (SpringWebserviceConstants.SPRING_WS_SOAP_HEADER) from response. For communication we use spring-ws. Response looks like: http://schemas.xmlsoap.org/soap/envelope/"; xmlns:test="http://www.test.com";> asdasdasd when w

RabbitMQ convert body

2014-12-02 Thread Marc Tudor
Hi, I recently upgraded from using bluelock with camel 1.x to camel 2.14 and rabbitmq component. My route: public static class CustomRouteBuilder extends RouteBuilder { public static String toEndPoint = "rabbitmq://localhost/someExchange?queue=queueName&routingKey=customKey&exchange

Re: JMS Put to WebsphereMQ destionation using a Qmgr name - how to specify?

2014-12-02 Thread edhansen42
The 'remote' queue definition is actually defined on your local queue manager, so what about just this? -- View this message in context: http://camel.465427.n5.nabble.com/JMS-Put-to-WebsphereMQ-destionation-using-a-Qmgr-name-how-to-specify-tp5759882p5759954.html Sent from the Camel - Users

Why doesn't camel throw an error for invalid file or invalid ftp?

2014-12-02 Thread brianlmartino
What is wrong with my code? I have tried two ways to get this to fail with errors. I am expecting camel to have a problem connecting to the bogus ftp site and not finding the file in question. == Using CamelContext and main method === import org.apache.camel.CamelContext; import org.ap

Re: Dynamic routing to a XSL file

2014-12-02 Thread sathiyaraja
Thanks Guru.. Its propertyName inside setProperty.. wrongly typed in this post. I could able to log the property also. Inside recipientlist i cant able to use any camel exchange properties(headers or property). But i tried with xpath and its working fine But in my case it should read from the pr

Camel Websocket

2014-12-02 Thread Duong, Minh
Hi, Does Camel Websocket support Websocket JSR 356 API (JDK 7)? If not, is there a plan to do that? The current camel-websocket uses Jetty server but I need a websocket component that can be run in a container environment e.g. Jboss EAP 6. Can Camel atmostphere-websocket do that? What's

Re: Why doesn't camel throw an error for invalid file or invalid ftp?

2014-12-02 Thread brianlmartino
Using camel 2.0 , passing just a single file needs special syntax. Camel will ignore the route if the file isn't found. @Override public void configure() throws Exception { from("file:.?fileName=pom.xml"). to("ftp://noone@nowhere:22/wth?password=test";); } Thi

Re: JMS Put to WebsphereMQ destionation using a Qmgr name - how to specify?

2014-12-02 Thread clinton
Realized that CamelJmsDestinationName will take the provider-specific format. Problem solved. -- View this message in context: http://camel.465427.n5.nabble.com/JMS-Put-to-WebsphereMQ-destionation-using-a-Qmgr-name-how-to-specify-tp5759882p5759964.html Sent from the Camel - Users mailing list

Re: JMS Put to WebsphereMQ destionation using a Qmgr name - how to specify?

2014-12-02 Thread clinton
Thank you for responding edhansen42 and Henrique ed, if a "remote q def" is setup on the local qmgr, you are right that I would not need to reference the remote queue manager name. However, that requires admin activity on the local qmgr to keep it in sync with the remote one, and worse, usually t

camel kafka - provider no partition key

2014-12-02 Thread tapdur
Hi, i use the camel-kafka component and when i send a message to a topic it raise an error :No partition key set. t is due to the new api of the component. on the wiki page there is a sample for the consumer xml dsl but none for the provider, any idea ? thx Best Re

Websphere MQ setting targetClient=1

2014-12-02 Thread barry.barnett
Being that Camel is using the JMS API to write a message to an MQ queue, MQ will use the RHQ2 header to store information about the message, etc. However, the reading app is a non-JMS app, which cannot read the RFH2 header. We would like to strip the header by utilizing the targetClient=MQ in

Re: Websphere MQ setting targetClient=1

2014-12-02 Thread Andrew Block
Barry, You can use a DestinationResolver to accomplish this.  An example of this is found in the JMS component documentation in the section "Setting JMS provider options on the destination" http://camel.apache.org/jms.html - Andy --  Andrew Block On December 2, 2014 at 11:38:16 AM, barry.barn

RE: Websphere MQ setting targetClient=1

2014-12-02 Thread barry.barnett
We made this change in the route and it works to remove the RFH header now: queue:///qname?targetClient=1 On the MQ queue, you can also set the propctl to NONE, and that will strip the header as well. Regards, Barry From: Andrew

Getting over the Performance Hump with Camel @Ticketmaster

2014-12-02 Thread rodneypbarlow
We've launched a new post on our Ticketmaster tech blog regarding our performance improvements with Camel integrations, specifically Camel's transform API and Spring DSLs: http://tech.ticketmaster.com/2014/12/01/getting-over-the-performance-hump-with-apache-camel/

Re: rest client - post a json content to and http enpoint

2014-12-02 Thread salemi
I have two questions: How can implement basic authentication? Is there a way to accept all certificates using HTTPS protocol? Ali - Alireza Salemi -- View this message in context: http://camel.465427.n5.nabble.com/rest-client-post-a-json-content-to-and-http-enpoint-tp5759600p5759988.html

camel - xsd

2014-12-02 Thread smilevasu6
Hi All, I have created one router to read the xsd and to fetch the element name (table) and load the txt file data into the table. But its not giving me any error and the data not inserted into table. Please advice. Here is router from("timer://foo?period=6")

Camel file2 - get notified when the file is deleted from a directory in the idempontent mode

2014-12-02 Thread salemi
Hi, is it possible to get notified when the file is deleted from a directory in the idempotent mode Thanks, Ali - Alireza Salemi -- View this message in context: http://camel.465427.n5.nabble.com/Camel-file2-get-notified-when-the-file-is-deleted-from-a-directory-in-the-idempontent-mode-tp

Re: camel - xsd

2014-12-02 Thread smilevasu6
Any one there to help on this issue pleaseee?? -- View this message in context: http://camel.465427.n5.nabble.com/camel-xsd-tp576p5760002.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: camel - xsd

2014-12-02 Thread Claus Ibsen
Hi You should use simple language instead of constant if you want to refer to headers with ${ } etc http://camel.apache.org/simple On Wed, Dec 3, 2014 at 4:51 AM, smilevasu6 wrote: > Hi All, > > I have created one router to read the xsd and to fetch the element name > (table) and load the txt fi

Re: Camel file2 - get notified when the file is deleted from a directory in the idempontent mode

2014-12-02 Thread Claus Ibsen
Hi What do you mean? Do you mean that some 3rd party delete a file, and you want Camel to "notify" about this event? If so then no. But you can use the java api to get file notifications. Java 7 has the new api for that. On Wed, Dec 3, 2014 at 5:54 AM, salemi wrote: > Hi, > > is it possible to

ACK and NAK using MINA Component

2014-12-02 Thread madhuri@atrium
Hi, I am new to socket programming as well as camel. Here is the flow I want to implement. Please guide me to appropriate documentation. I am using MINA component to do InOut communication over TCPIP port. I am writing a client to send request to TCPIP port. Once the request is received, the se

Re: camel - xsd

2014-12-02 Thread smilevasu6
Hi Claus, i used this setBody(constant("load data local inpath '/sri/address.txt' OVERWRITE into table ${in.header.tablename}")) but still its not finding the table name. Please help -- View this message in context: http://camel.465427.n5.nabble.com/camel-xsd-tp576p5760009.html Sent

Re: camel - xsd

2014-12-02 Thread Claus Ibsen
setBody(simple("load data local inpath '/sri/address.txt' OVERWRITE into table ${in.header.tablename}")) On Wed, Dec 3, 2014 at 7:43 AM, smilevasu6 wrote: > Hi Claus, > > i used this > > setBody(constant("load data local inpath '/sri/address.txt' OVERWRITE into > table ${in.header.tablename}"))

Re: camel - xsd

2014-12-02 Thread smilevasu6
Claus, see the console, Dec 02, 2014 10:46:19 PM org.springframework.jdbc.datasource.DriverManagerDataSource setDriverClassName INFO: Loaded JDBC driver: org.apache.hive.jdbc.HiveDriver %%CamelContext(camel-1) %%Routes: [] 22:46:19.634 [main] DEBUG o.a.camel.impl.DefaultCamelConte

Re: Camel Websocket

2014-12-02 Thread Claus Ibsen
Hi I would assume atmosphere would support that JSR. You can check out its website. camel-websocket was the first websocket component and its using Jetty, and that was not JSR compliant back then. So for JBoss EAP or Tomcat or other containers I would use atomosphere. But there is also a new cam

Re: Getting over the Performance Hump with Camel @Ticketmaster

2014-12-02 Thread Claus Ibsen
Hi Thanks for sharing your findings. I have logged a ticket to look into if we can improve this in camel-core https://issues.apache.org/jira/browse/CAMEL-8113 And potential in camel-cxf as that MessageContextList is a "pain". On Wed, Dec 3, 2014 at 1:12 AM, rodneypbarlow wrote: > We've launche

Re: camel kafka - provider no partition key

2014-12-02 Thread Claus Ibsen
Hi You can try take a look in the unit tests of camel-kafka and see how the producer works there. But there may indeed be a mistake in the code or the documentation page. If that is the case, you are welcome to log a JIRA On Tue, Dec 2, 2014 at 6:26 PM, tapdur wrote: > Hi, > > i use the camel-ka

Re: camel - xsd

2014-12-02 Thread smilevasu6
i given that only claus setBody(simple("load data local inpath '/sri/address.txt' OVERWRITE into table ${in.header.tablename}")) its not loading into table -- View this message in context: http://camel.465427.n5.nabble.com/camel-xsd-tp576p5760015.html Sent from the Camel - Users mailing