camel cxf more than one path param error

2017-07-24 Thread Kasim Sert (Ibtech-Software Infrastructure)
Hi, I am using camel cxfrs component to expose rest webservices. the interface below work fine with one @PathParam parameter. public interface Service2 { @GET @Path("/world2/{id}") @Produces(MediaType.APPLICATION_XML) public Response hello2(@PathParam("id") String id) ;

Camel cxf with Spring boot manual starting route

2017-07-18 Thread Kasim Sert (Ibtech-Software Infrastructure)
Hi, I am using spring boot with camel cxf to expose rest/soap web services. However since I have many services and some of them are not well defined, I want to register each of them one by one, catch if any exception occurs and continue with remaining valid services. But when I set

Polling consumer poll period

2016-11-01 Thread Kasim Sert (Ibtech-Software Infrastructure)
Hi, Although timer period is 10 seconds , when i check the logs I can see this polling occurs every 1 minute. I changed the polling consumer timeout but same result. Why is this behaviour ? Note : Using camel 2.18.0 with Spring Boot. from("timer://mytimer?period=1")

creating spring beans in routes

2016-10-19 Thread Kasim Sert (Ibtech-Software Infrastructure)
Hi, Can I define new spring beans in xml route. If yes, how can I do that ? Thank you. http://camel.apache.org/schema/spring;> [Facebook] [Twitter]

Designing many service routes

2016-09-23 Thread Kasim Sert (Ibtech-Software Infrastructure)
Hi, I have more than 2 thousands web services(SOAP/REST) and want to move them to camel cxf. My question is about designing routes. Should I be designing at least one route for each service or I should try to find a way one generic route for all services. If both possible what are the pros and

CXFRS swagger integration

2016-08-31 Thread Kasim Sert (Ibtech-Software Infrastructure)
Hi, I have defined cxfrs route and its working fine. However when I integrate swagger2feature of cxf I can not see api docs. When i hit swagger.json path to get swagger response the request again hits my route which produces wrong response. I think requests for swagger api should not hit my

CXFRS vs New Rest DSL

2016-08-31 Thread Kasim Sert (Ibtech-Software Infrastructure)
Hi, As company we have many soap and rest services and we want to rewrite our framework and move these services to camel-cxf. I like the idea of having one interface definition and being able to expose it as soap and rest at the same time, I think we can do this with cxfrs. However as far as I

RE: Printing message history during root debug

2016-06-09 Thread Kasim Sert (Ibtech-Software Infrastructure)
ou can use simple language to get it, and then log it easily .log("${messageHistory}") On Thu, Jun 9, 2016 at 10:55 AM, Kasim Sert (Ibtech-Software Infrastructure) <kasim.s...@ibtech.com.tr> wrote: > Hi, > > Is it possible to print Message history (which is printed in c

Printing message history during root debug

2016-06-09 Thread Kasim Sert (Ibtech-Software Infrastructure)
Hi, Is it possible to print Message history (which is printed in case of errors like below) during a route debug without error conditions. I just want to learn how did I reach at that bean currently I am debugging. Is that possible ? Message History

ConcurrentModificationException during route listing

2016-05-13 Thread Kasim Sert (Ibtech-Software Infrastructure)
Hi, I am using camel version 2.15.1. Sometimes I see ConcurrentModificationException in logs with following trace. With test case of adding and listing routes concurrently I could not regenerate exception. Any idea about reason ? Trace : java.util.ConcurrentModificationException at

RE: Changing header value

2016-04-13 Thread Kasim Sert (Ibtech-Software Infrastructure)
expression). In the processor you are incrementing the value and are then setting the header to the current value of the variable a, so the route behaves as one would expect. Best regards Stephan -Original Message- From: Kasim Sert (Ibtech-Software Infrastructure) [mailto:kasim.s

Changing header value

2016-04-13 Thread Kasim Sert (Ibtech-Software Infrastructure)
Hi, Can somebody please explain, why header value for starting always remains same although its changed in processor ? Route: İnt a=1 from("timer://myTimer2?period=1000") .setHeader("myheader", constant(a))

RE: Camel reading file periodically

2016-03-25 Thread Kasim Sert (Ibtech-Software Infrastructure)
consuming the same files over and over again. So just set idempotent to false. http://camel.apache.org/file2.html Regards, Benjamin Girstl > Am 25.03.2016 um 13:53 schrieb Kasim Sert (Ibtech-Software Infrastructure) > <kasim.s...@ibtech.com.tr>: > > Hi, > > Why this r

Camel reading file periodically

2016-03-25 Thread Kasim Sert (Ibtech-Software Infrastructure)
Hi, Why this route reads file for only one time, and what should I do to make it work like excpected ? from("timer://myTimer?period=1000") .log("starting...")

FTP and SFTP connect method difference

2016-01-11 Thread Kasim Sert (Ibtech-Software Infrastructure)
Hi, I have a camel application which polls thousands of folders in both ftp and sftp modes. Because of too many connection overhead, I am trying to pool connections. I have tried to pool RemoteFileOperations objects using DefaultServicePool utility and it seem to be working good for sftp case.

FTP Connection Pooling in camel

2015-12-14 Thread Kasim Sert (Ibtech-Software Infrastructure)
Hi, I want to limit the total number of connections to a ftp server. For this I want to implement a connection pool for the ftp component which will be used in both consumer and producer mode by camel. My question is should I write it on my own, or is it possible with configurations ? I

RE: Using BeanInvocation in camel cxf

2015-11-18 Thread Kasim Sert (Ibtech-Software Infrastructure)
have this excerpt from a Camel route in blueprint XML: > > > > > > >... > > > > -Original Message- > > From: Kasim Sert (Ibtech-Software Infrastructure) > > [mailto:kasim.s...@ibtech.com.tr] > > Sent: Tuesday, No

Using BeanInvocation in camel cxf

2015-11-17 Thread Kasim Sert (Ibtech-Software Infrastructure)
Hi, I am trying to develop a framework to invoke different web services based on their db definitions of SEI names and web method names and parameters etc. To make this I found how to generate and BeanInvocation object from current web service definition. However I could not find any example

Dynamic reloading of spring xml

2015-11-16 Thread Kasim Sert (Ibtech-Software Infrastructure)
Hi, When I was searching dynamic reloading of spring xml in camel, I came accros with the following question in camel forum. http://camel.465427.n5.nabble.com/Dynamic-reloading-of-routes-with-SpringXML-td3396990.html I have basically the same question, I want to be able to reload spring xml

Binding ws parameters to method in cxf

2015-11-16 Thread Kasim Sert (Ibtech-Software Infrastructure)
Hi, I have a web service proxy which has the signature below. public interface CustomerService { Customer[] listCustomers(BasicWebRequest bwr,CustomerInfo in); } When I route this service call to a bean in camel I can see only BasicWebRequest(first parameter) is bind and other

SimpleBuilder usage in camel

2015-11-12 Thread Kasim Sert (Ibtech-Software Infrastructure)
Hi, I have following processor, when I run it from my route I get the following error. I know exchange body is not null and you can see it in logs below. What is wrong with my usage of SimpleBuilder here ? public class UpdateCustomerProcessor implements Processor { public static final

RE: SimpleBuilder usage in camel

2015-11-12 Thread Kasim Sert (Ibtech-Software Infrastructure)
getFirstName() is not a method on the Object[] in body. Try: System.out.println(SimpleBuilder.simple("Hello ${body[0].getFirstName()}").evaluate(exchng, String.class)); On Thu, Nov 12, 2015 at 1:11 PM, Kasim Sert (Ibtech-Software Infrastructure) <kasim.s...@ibtech.com.tr> wrote:

camel cxf web service returning empty response

2015-11-04 Thread Kasim Sert (Ibtech-Software Infrastructure)
Hi, I am new to camel and cxf. Trying to expose a basic web service from java interface. Everything seem to be fine except returning response. Here is my route public void configure() {

stackoverflow question

2015-11-04 Thread Kasim Sert (Ibtech-Software Infrastructure)
Hi, I have a basic question about ws in camel. Can anybody please help me ? Here is the link to stackoverflow. Thank you. http://stackoverflow.com/questions/33517246/empty-response-from-camel-in-cxf-pojo-mode [Facebook] [Twitter]