Re: Swagger not working

2016-02-04 Thread Claus Ibsen
Can you try calling the api-doc with an ending slash? And what version of Camel and ServiceMix are you using? And have you installed camel-swagger-java in ServiceMix, you would need to install that also? On Fri, Feb 5, 2016 at 8:42 AM, Gohand wrote: > Hi all > > I'm an absolute newbie to Camel,

Swagger not working

2016-02-04 Thread Gohand
Hi all I'm an absolute newbie to Camel, so please forgive me, if I'm not seeing an obvious solution. I tried using the Swagger component in combination with the Camel REST DSL in ServiceMix. My Spring XML looks as follows: A REST service looks like this: Issues rest service

Re: Transaction problem with Camel, ActiveMQ and Spring JMS

2016-02-04 Thread Stephan Burkard
Hi Quinn I just tested the POM changes you posted and the second run failed (without failover-URL). I then tested with the failover-URL and the third attempt failed. The latter is no big surprise since I discovered the problem during failover tests in a master-slave-config. I then reduced the set

Re: Leak of Memory using JdbcMessageIdRepository

2016-02-04 Thread Claus Ibsen
How have you configure the idempotent consumer and the jdbc repository? On Thu, Feb 4, 2016 at 10:29 PM, fss.coc wrote: > I have an application that performs the Routes management Camel. Basically we > add / remove routes on the basis of a specific logic. > > One of these routes possesses one ide

Re: Route shudtdown using Route Policy not working

2016-02-04 Thread Claus Ibsen
You should only call stop when the header is true for batch complete. http://camel.apache.org/maven/current/camel-core/apidocs/org/apache/camel/Exchange.html#BATCH_COMPLETE On Thu, Feb 4, 2016 at 8:57 PM, fxthomas wrote: > hello, > > Tried that too, same issue. > I used a oncompletion with a proc

Leak of Memory using JdbcMessageIdRepository

2016-02-04 Thread fss.coc
I have an application that performs the Routes management Camel. Basically we add / remove routes on the basis of a specific logic. One of these routes possesses one idempotentConsumer. If I add and remove this route JdbcMessageIdRepository the service remains in context. So if I repeat the additi

Re: CamelContext stop with SJMS consumer does not stop consuming messages from broker

2016-02-04 Thread d1x
Thank you for your reply. I thought that it may be bug but I wanted to be sure before I report it. Reported under: https://issues.apache.org/jira/browse/CAMEL-9567 -- View this message in context: http://camel.465427.n5.nabble.com/CamelContext-stop-with-SJMS-consumer-does-not-stop-consuming-mes

Invalid "Content-Type" Header is configured

2016-02-04 Thread sogabe
Hi, I'm testing REST DSL like this. {code} {/code} and I've invoked the following command. {code} $ curl 'http://localhost:/books/' --include --request POST \ --header 'Accept: application/xml' \ --header 'Conte

Re: Dear Santa Claus

2016-02-04 Thread Brad Johnson
I'll just have to tell the kids the Santa Claus won't be coming this year. Heh. I'm looking forward to the new book whenever it gets here. On Thu, Feb 4, 2016 at 12:51 PM, Claus Ibsen wrote: > On Thu, Feb 4, 2016 at 4:08 PM, Ranx wrote: > > My Camel in Action book pages are worn, torn and the

Re: CamelBlueprintTestSupport No bean could be found in the registry

2016-02-04 Thread Ranx
How are you setting up the service in the first bundle? How are you referring to it in the second bundle? If you are actually using the bundle during your test then as Quinn pointed out you needn't use the override method. I suspect it is the service declaration in the first bundle that is off o

Re: CamelBlueprintTestSupport No bean could be found in the registry

2016-02-04 Thread Quinn Stevenson
Normally the service interface and the service implementation are in separate bundles. This gives you a lot more flexibility in deployment and testing. That said - here’s a set of projects that demonstrate all three ways - the service implementation embedded with the service interface, the serv

Re: CamelBlueprintTestSupport No bean could be found in the registry

2016-02-04 Thread enigma
I do have interface and implementation in bundle 1 which is exposed as service. Bundle 2 is where I am having reference to the interface only. I do have dependency on the B1 captured in B2. If not for it then it'd result in compilation problem. On the other hand, if I add a test dependency then com

Re: CamelBlueprintTestSupport No bean could be found in the registry

2016-02-04 Thread enigma
After debugging the Junit test, the object references were null and hence the exception - "IllegalStateException: The service registration is no longer valid." was thrown. I did get the camel-archetype-blueprint v2.16.2. I see that the following of adding service method call is invoked. The impl

Re: CamelBlueprintTestSupport No bean could be found in the registry

2016-02-04 Thread Quinn Stevenson
I would assume that MyServiceInterface is in one bundle, and you have another bundle with a private class implementing the interface and exposing that implementation as a service. If that is correct, then I normally create a stub for the service in my src/test/java/…../TestStubServiceImpl.java

Re: CamelBlueprintTestSupport No bean could be found in the registry

2016-02-04 Thread enigma
I have to register OSGI reference present in the blueprint xml file. It is an interface class. So, in the following statement MySerivceInterface is the OSGI reference which is present in a different OSGI bundle. In the above reply it is metioned as TestStubServiceImpl need to be passed to asService

Re: CamelBlueprintTestSupport No bean could be found in the registry

2016-02-04 Thread Quinn Stevenson
The syntax of this looks correct. As Brad pointed out, the object references need to be valid when this method is called. There is and example of registering test services in the sample generated by the camel-archetype-blueprint as well. My PR for this is in 2.17-SNAPSHOT version and 2.16.2.

Re: CamelBlueprintTestSupport No bean could be found in the registry

2016-02-04 Thread Brad Johnson
What is your serviceObjectRef1? protected void addServicesOnStartup(Map> services) { services.put(MySerivceInterface.class.getName(), asService(new TestStubServiceImpl(), null)); } On Thu, Feb 4, 2016 at 3:11 PM, enigma wrote: > Thank you for the prompt response. I used the second

Re: CamelBlueprintTestSupport No bean could be found in the registry

2016-02-04 Thread enigma
Thank you for the prompt response. I used the second option of using blueprint xml and invoking getBlueprintDescriptor() method. The test method is dependent on few OSGI services. I have few OSGI service references which needs to be added during startup as follows- @Override protected void addSe

Re: Route shudtdown using Route Policy not working

2016-02-04 Thread fxthomas
hello, Tried that too, same issue. I used a oncompletion with a processor it worked then But the now the issue is the route gets stopped after the processing of 1 Exchange message. Since I am using the Split stream , camel sends 1 row at a time in exch

Re: Route shudtdown using Route Policy not working

2016-02-04 Thread Quinn Stevenson
It looks like the route is shutting down - it’s just waiting for the timeout for the active exchange. You can change the shutdown timeout if you like with the DefaultShutdownStrategy > On Feb 4, 2016, at 9:03 AM, fxthomas wrote: > > hello, > > > I have defined a route & route P

Re: CamelBlueprintTestSupport No bean could be found in the registry

2016-02-04 Thread Quinn Stevenson
I usually use one of two ways. The first is to override createRegistry and add your bean implementation there: @Override protected JndiRegistry createRegistry() throws Exception { JndiRegistry registry = super.createRegistry(); registry.bind( "bean-id", new BeanClass() ); return r

Re: Dear Santa Claus

2016-02-04 Thread Claus Ibsen
On Thu, Feb 4, 2016 at 4:08 PM, Ranx wrote: > My Camel in Action book pages are worn, torn and the the edges of the pages > are blackened from the many times the book has been thumbed through. Sticky > notes and bookmarks adorn the book in answer to long forgotten questions. > > But my children a

Re: CAMEL-8983: Question regarding Camel Simple Random()

2016-02-04 Thread Claus Ibsen
On Thu, Feb 4, 2016 at 7:42 PM, Walzer, Thomas wrote: > As you are already using the java dsl: use a bean or write a processor that > does exactly what you want. Then use that. > As body could be anything (Object) I would find it challenging to implement > this in simple language (what´s a rando

Re: CAMEL-8983: Question regarding Camel Simple Random()

2016-02-04 Thread Walzer, Thomas
As you are already using the java dsl: use a bean or write a processor that does exactly what you want. Then use that. As body could be anything (Object) I would find it challenging to implement this in simple language (what´s a random object?).You probably only want this for numbers (most proba

CamelBlueprintTestSupport No bean could be found in the registry

2016-02-04 Thread enigma
Hi, I have a Junit test class extending CamelBlueprintTestSupport. The route has reference to a POJO bean. When I execute the test method, I see the following message - Caused by: org.apache.camel.NoSuchBeanException: No bean could be found in the registry for: requestBean How do I add the POJO

Re: CamelContext stop with SJMS consumer does not stop consuming messages from broker

2016-02-04 Thread Claus Ibsen
On Thu, Feb 4, 2016 at 6:13 PM, jnk wrote: > We are using camel-sjms 2.15.2 but it can be reproduced with 2.16.2, too. > Okay sounds like the suspend opertation on the consumer does not stop the jms listener. You are welcome to log a JIRA so we get this looked into and fixed. http://camel.apache.

Re: CamelContext stop with SJMS consumer does not stop consuming messages from broker

2016-02-04 Thread jnk
We are using camel-sjms 2.15.2 but it can be reproduced with 2.16.2, too. Claus Ibsen-2 wrote > What version of Camel do you use? > > On Thu, Feb 4, 2016 at 11:03 AM, d1x < > zdenek.obst@ > > wrote: >> I'm using SJMS (simple JMS) component for consuming messages from JMS >> broker >> (e.g. Act

Re: soTimeout ignored by camel http component

2016-02-04 Thread yuktisinghal
In my application camel version is 2.14, i tried using EIN BU ut i am not getting how ti use it for setting timeout fir each request.could you please explain it with an example?? -- View this message in context: http://camel.465427.n5.nabble.com/soTimeout-ignored-by-camel-http-component-tp5746

Re: Transaction problem with Camel, ActiveMQ and Spring JMS

2016-02-04 Thread Quinn Stevenson
I tested this with a 5.9.0 broker and I am seeing messages dropped with the TxText, but I still have to use the failover URL or the test just stops after the broker is restarted. I don’t have a 5.9.1 broker to test with, so I don’t know if that would help, but the next oldest broker I have is 5

Re: Transaction problem with Camel, ActiveMQ and Spring JMS

2016-02-04 Thread Quinn Stevenson
I still can’t make either test drop messages between the input and the output queue with the POM changes I sent, but I did find one difference between what you’ve done and what I normally do that changes the output I’m seeing - I always use a failover URL My test broker is v 5.10.1 as well -

Re: Transaction problem with Camel, ActiveMQ and Spring JMS

2016-02-04 Thread Quinn Stevenson
It is strange - I’m trying to compare what you have in the “standard” version to what I did before. We tested our configs pretty heavily under all sorts of strange conditions to verify we weren’t looking messages, but we were using newer versions of Camel and ActiveMQ. So we’re on the same pag

Re: Transaction problem with Camel, ActiveMQ and Spring JMS

2016-02-04 Thread Stephan Burkard
Hi Quinn The "standard" version is the big mystery. As I stated in my first post, a Redhat engineer analysed a similar project (with less book-keeping and logging stuff) and his conclusion was that as soon as a transaction manager is explicitly defined, Spring JMS Template (that is used by Camel u

Route shudtdown using Route Policy not working

2016-02-04 Thread fxthomas
hello, I have defined a route & route Policy class 1000 DS ${body} != null

Re: Transaction problem with Camel, ActiveMQ and Spring JMS

2016-02-04 Thread Quinn Stevenson
I’m still going through the project, but the first couple of things that jump out at me are you have two Spring versions - the one you explicitly put in your POM (3.2.8.RELEASE) and the one pulled in by camel-spring (3.2.11.RELEASE). Also, camel-spring should be included in the POM since you’re

Dear Santa Claus

2016-02-04 Thread Ranx
My Camel in Action book pages are worn, torn and the the edges of the pages are blackened from the many times the book has been thumbed through. Sticky notes and bookmarks adorn the book in answer to long forgotten questions. But my children are starting to complain that when we curl up by the fi

Re: camel-jsonpath gives error when you add the dependency to the pom file

2016-02-04 Thread Claus Ibsen
See the mvn dependency:tree of camel-jsonpath and you can see its part of json-smart and it should be on the classpath. On Wed, Feb 3, 2016 at 12:31 PM, souciance wrote: > Hello, > > I have added the following dependency to my pom.xml. > > > org.apache.camel > camel-jsonpath >

Re: request reply

2016-02-04 Thread Claus Ibsen
You should not have a route that consumes from the replyTo queue as you will consume the message that was intended for the reply. On Thu, Feb 4, 2016 at 9:57 AM, Laci Gaspar wrote: > Hi > I was playing around with request / reply a bit and found something I can't > understand. > When I run the

Re: Duplicate http Content-Length header

2016-02-04 Thread Claus Ibsen
What version of Camel do you use? And yeah it looks like a little bug, you are welcome to log a JIRA ticket. http://camel.apache.org/support.html On Thu, Feb 4, 2016 at 11:55 AM, glenner003 wrote: > Hi all, > > We are having an issue with the restlet producer. > In the class HttpMethodCall, the

Re: CamelContext stop with SJMS consumer does not stop consuming messages from broker

2016-02-04 Thread Claus Ibsen
What version of Camel do you use? On Thu, Feb 4, 2016 at 11:03 AM, d1x wrote: > I'm using SJMS (simple JMS) component for consuming messages from JMS broker > (e.g. ActiveMQ). > When I'm stopping Camel Context, I'm used to that consumers will stop > accepting new messages (in case JMS I would exp

Re: Exception while using to configure camel with spring

2016-02-04 Thread Claus Ibsen
Sounds like you are trying to use camel-spring-integration. And if so you need to include all the dependency JARs that spring integration requires. If you do not use spring-integration then remove the JAR from your classpath. And mind spring integration is not the same as using Camel with spring.

Component OutOnly

2016-02-04 Thread scupper
Hi guys,I tried to make a custom component in an *outonly* /ExchangePattern/ but it did not workout so well for me.The component always gets to the consumer but the producer is never called.Can anybody help please.Thanks in Advance. -- View this message in context: http://camel.465427.n5.nabble

Exception while using to configure camel with spring

2016-02-04 Thread Ramakrishna
Ignoring converter type: org.apache.camel.component.spring.integration.converter.SpringIntegrationConverter as a dependent class cound not be found java.lang.noclassdeffounderror: org/springframework/integration/Message -- View this message in context: http://camel.465427.n5.nabble.com/Exceptio

camel-spring-boot's autoload problem

2016-02-04 Thread Wolfram Huesken
Hello together, I use camel-spring-boot and its @Component annotation to automatically include my routes. This works perfectly until version 2.15.4. With 2.15.5 there was a change (https://github.com/apache/camel/blob/camel-2.15.5/components/camel-spring-boot/src/main/java/org/apache/camel/spring/

Duplicate http Content-Length header

2016-02-04 Thread glenner003
Hi all, We are having an issue with the restlet producer. In the class HttpMethodCall, the headers are copied to the request headers, except for the Content-Length header. However, in some cases we end up with two of these headers:

Re: CamelContext stop with SJMS consumer does not stop consuming messages from broker

2016-02-04 Thread d1x
One more thing to mention, I forgot that timeout for shutdown strategy is in seconds (not millis). So when timeout occurs, it stops reading new messages. Anyway I would still expect the consumer to stop reading NEW messages from broker instantly after context stop - not after timeout. -- View t

CamelContext stop with SJMS consumer does not stop consuming messages from broker

2016-02-04 Thread d1x
I'm using SJMS (simple JMS) component for consuming messages from JMS broker (e.g. ActiveMQ). When I'm stopping Camel Context, I'm used to that consumers will stop accepting new messages (in case JMS I would expect consumer will stop reading new messages from broker and will finish only processing

Fwd: camel-spring-boot's autoload problem

2016-02-04 Thread Wolfram Huesken
Hello together, I use camel-spring-boot and its @Component annotation to automatically include my routes. This works perfectly until version 2.15.4. With 2.15.5 there was a change (https://github.com/apache/camel/blob/camel-2.15.5/components/camel-spring-boot/src/main/java/org/apache/camel/spring/

request reply

2016-02-04 Thread Laci Gaspar
Hi I was playing around with request / reply a bit and found something I can't understand. When I run the followin snippet: @Produce(uri = "direct:start") protected ProducerTemplate start; @EndpointInject(uri = "mock:end") protected MockEndpoint mockEnd; @Test public v