Re: How to forward another JSP or servlet. Camel-jetty or Camel-servlet

2016-02-02 Thread tko429
Mr.Claus Ibsen Thank you for replying. I will try another way. Thanks. -- View this message in context: http://camel.465427.n5.nabble.com/How-to-forward-another-JSP-or-servlet-Camel-jetty-or-Camel-servlet-tp5777129p5777173.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Problem using JmsCompoment with Tibco implementation

2016-02-02 Thread jacobnebu
It is working for me with JMS 2.0. update pom.xml file with exclude for jms 1.1 in camel-jms and add dependency for jms 2.o -- View this message in context: http://camel.465427.n5.nabble.com/Problem-using-JmsCompoment-with-Tibco-implementation-tp5059096p5777169.html Sent from the Camel - User

Re: Camel route for connecting to TIBCO EMS throgh JNDI (connectionFactory have username and password)

2016-02-02 Thread jacobnebu
This code is good. My password was wrong. -- View this message in context: http://camel.465427.n5.nabble.com/Camel-route-for-connecting-to-TIBCO-EMS-throgh-JNDI-connectionFactory-have-username-and-password-tp5776633p5777167.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Invoking Dynamic OSGi Blueprint services from a Java RouteBuilder

2016-02-02 Thread Christian Schneider
I would use a new issue that just explains what happens without trying to interpret. We do not yet know what really happens but I hope we can find out. Christian 2016-02-03 3:40 GMT+01:00 Quinn Stevenson : > I would expect the CamelContext to keep trying to run as well, but I > expected it to hi

Re: Invoking Dynamic OSGi Blueprint services from a Java RouteBuilder

2016-02-02 Thread Quinn Stevenson
I would expect the CamelContext to keep trying to run as well, but I expected it to hit the call to the OSGi service, block, and then timeout and throw a ServiceUnavailableException. But what I’m seeing is the call to the OSGi service is completing (it’s basically and echo service right now), a

Re: Invoking Dynamic OSGi Blueprint services from a Java RouteBuilder

2016-02-02 Thread Quinn Stevenson
> On Feb 2, 2016, at 3:15 PM, Christian Schneider > wrote: > > On 02.02.2016 23:08, Quinn Stevenson wrote: >> Christian - >> >> I don’t know about a class loader issue, but I do know when I run the route >> configured as you have it below, I’m not getting a proxy to the service. I >> know t

Camle-Swagger-Java- documenting optional param for REST Service

2016-02-02 Thread urwithsumit
Hi, Currently while documenting the REST Service we are giving param name as below: This marks the param as mandatory and when we are testing it with swagger-ui we are forced to give value for this param. I want to document this param as an optional param. How can this be achieved? Note: We

Re: Invoking Dynamic OSGi Blueprint services from a Java RouteBuilder

2016-02-02 Thread Christian Schneider
On 02.02.2016 23:08, Quinn Stevenson wrote: Christian - I don’t know about a class loader issue, but I do know when I run the route configured as you have it below, I’m not getting a proxy to the service. I know this because if I stop the bundle containing the OSGi service, the Camel context

Re: Invoking Dynamic OSGi Blueprint services from a Java RouteBuilder

2016-02-02 Thread Quinn Stevenson
Christian - I don’t know about a class loader issue, but I do know when I run the route configured as you have it below, I’m not getting a proxy to the service. I know this because if I stop the bundle containing the OSGi service, the Camel context keeps running - I don’t get a ServiceUnavaila

Re: Invoking Dynamic OSGi Blueprint services from a Java RouteBuilder

2016-02-02 Thread Christian Schneider
I am actually not sure if you have a classloader problem here. In your original route you use: .bean(blueprintServiceReference,false) public void setBlueprintServiceReference(Echo blueprintServiceReference) { this.blueprintServiceReference = blueprintServiceReference; } This will simpl

Re: Invoking Dynamic OSGi Blueprint services from a Java RouteBuilder

2016-02-02 Thread Quinn Stevenson
Do you have an idea of how to fix this? If you can point me in the right direction, I’d be happy to get a PR going for it. Quinn Stevenson qu...@pronoia-solutions.com (801) 244-7758 > On Feb 2, 2016, at 10:05 AM, Brad Johnson > wrote: > > And if we get enough up votes maybe it'll get put i

Re: onException block in camel 2.16.1

2016-02-02 Thread lw
Awesome! Your solution works much cleaner! Thank you! -- View this message in context: http://camel.465427.n5.nabble.com/onException-block-in-camel-2-16-1-tp5777019p5777165.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Invoking Dynamic OSGi Blueprint services from a Java RouteBuilder

2016-02-02 Thread Brad Johnson
And if we get enough up votes maybe it'll get put in. It shouldn't be too difficult technically and can be put in without breaking anyone. Now, what happens when the flag gets turned on will be interesting. On Tue, Feb 2, 2016 at 11:02 AM, Brad Johnson wrote: > Tack the examples on to the issu

Re: Invoking Dynamic OSGi Blueprint services from a Java RouteBuilder

2016-02-02 Thread Quinn Stevenson
Will do - I’ll pull them from this thread. Thanks Again - this one is killing me right now > On Feb 2, 2016, at 10:02 AM, Brad Johnson > wrote: > > Tack the examples on to the issue to give it context.. That'll help folks > replicate it. > > On Tue, Feb 2, 2016 at 11:01 AM, Quinn Stevenson

Re: Invoking Dynamic OSGi Blueprint services from a Java RouteBuilder

2016-02-02 Thread Brad Johnson
Tack the examples on to the issue to give it context.. That'll help folks replicate it. On Tue, Feb 2, 2016 at 11:01 AM, Quinn Stevenson < qu...@pronoia-solutions.com> wrote: > Thank You for opening the issue Brad - > > You beat me to it, but you’re explanation of the issue was much better > tha

Re: Invoking Dynamic OSGi Blueprint services from a Java RouteBuilder

2016-02-02 Thread Quinn Stevenson
Thank You for opening the issue Brad - You beat me to it, but you’re explanation of the issue was much better than I could come up with - all I have are samples of what’s going on and no real explanation as to why :-) Thanks Again > On Feb 2, 2016, at 9:51 AM, Brad Johnson wrote: > > https

Re: Invoking Dynamic OSGi Blueprint services from a Java RouteBuilder

2016-02-02 Thread Brad Johnson
https://issues.apache.org/jira/browse/CAMEL-9562 I've opened an issue. I think it is a relatively easy thing to add a strict mode flag without breaking anyone. You're right that it is easy enough to make it work right. But if I haven't set something up to work correctly I don't want the classlo

Re: Invoking Dynamic OSGi Blueprint services from a Java RouteBuilder

2016-02-02 Thread Quinn Stevenson
Thank You Christian - Yes - I pointed out that if I used the Bean Component, everything seemed to work as I expected. The problem I have is I use beans in filter blocks as well, and there I can’t use the 'to( “bean://” ) with an aggregation strategy to get around this, but it worked the same

Re: Invoking Dynamic OSGi Blueprint services from a Java RouteBuilder

2016-02-02 Thread Christian Schneider
I agree about the classloader hacks ... though I am not sure if they are needed anywhere. The approach I showed will not suffer from this problem as you directly tell it to get a bean with an id. Christian On 02.02.2016 17:24, Brad Johnson wrote: Christian, Thanks for the constructive though

Re: Shared Camel Context.

2016-02-02 Thread jgoggins
It seems this was incorrect; I removed @Endpoint public class HeartbeatEndpoint. My router is setup as @Component public class MyRouter extends SpringRouteBuilder { @Override public void configure() throws Exception { from("spring-ws:rootqname:{http://myeve

Re: Invoking Dynamic OSGi Blueprint services from a Java RouteBuilder

2016-02-02 Thread Brad Johnson
Christian, Thanks for the constructive thoughts. Theoretically if everything is set up correctly then it will find everything in the OSGi registry. Unfortunately, when it can't find things in the registry it will look for it with the global class loader. That was happening to me. It shouldn't ha

Handling of parsing errors in camel bindy

2016-02-02 Thread Alberto Brosich
Hi, is there a way to intercept parsing exception in camel bindy? I have to continue the processing of the remaining fields/records and, for example, put an empty value in the field where the value is not correctly parsed. Regards Alberto

Re: Looking for a Good CAMEL - WEBSHPERE MQ Integration Example

2016-02-02 Thread ajeets1978
I am new to apache camel and spring framework, Can i get some full working example somehow. Regards, -- View this message in context: http://camel.465427.n5.nabble.com/Looking-for-a-Good-CAMEL-WEBSHPERE-MQ-Integration-Example-tp5777086p5777148.html Sent from the Camel - Users mailing list arch

Re: Camel file component URI dynamic options & Filter query

2016-02-02 Thread fxthomas
hello Claus, Thanks for the Tip. I had tried for the point 2) using a eventnotifer class, but the results are quiet confusing or maybe I am handling some other event . But i see the Exchange completed is fired for each message sent. So ite becomes diffcult to know which is the exact exchaneg co

Re: Invoking Dynamic OSGi Blueprint services from a Java RouteBuilder

2016-02-02 Thread Christian Schneider
There is a much simpler way to use an OSGi service with blueprint. Simply use the bean component of camel. It resolves beans against the camel registry. When you define your camel context using blueprint then the camel registry automatically includes all blueprint beans. So you can do this in

Re: onException block in camel 2.16.1

2016-02-02 Thread Andreas Siepert
Opened an issue https://issues.apache.org/jira/browse/CAMEL-9558 Regards Andi 2016-02-02 7:51 GMT+01:00 TygerC : > Setting the logging level off works fine: > > logName="LoggingErrorHandler" level="OFF"/> > > And also doTry/doCatch work: the exception won't go the the error handler > from the c

Re: Content-Length and CamelFileLength suddenly 0

2016-02-02 Thread rwijngaa
Note, the FtpChangedRenameReadLockStrategy combines the 'changed' and the 'rename' read lock strategy. It first calls acquire on GenericFileRenameExclusiveReadLockStrategy, followed by a acquire call on FtpChangedExclusiveReadLockStrategy. This is because the @#$%^&* SAP system first creates an em

Re: Content-Length and CamelFileLength suddenly 0

2016-02-02 Thread rwijngaa
Example: Body class: class org.apache.camel.component.file.remote.RemoteFile Endpoint key=ftp://xxx/Acceptance/SAP/I0019/Outbox?antFilterCaseSensitive=false&antInclude=NID*&binary=true&delay=3&delete=true&disconnect=true&exclusiveReadLockStrategy=%23ftpChangedRenameReadLockStrategy&maxMes

Re: Extend FileComponent and create Custom componenet

2016-02-02 Thread Claus Ibsen
Any component can be extended, its just java code. Though you have 3rd party components / code to maintain yourself. On Tue, Feb 2, 2016 at 9:28 AM, fxthomas wrote: > hello, > > Is it possible to extend a existing component and create a new > component . > I have some specific business

Re: Camel file component URI dynamic options & Filter query

2016-02-02 Thread Claus Ibsen
On Mon, Feb 1, 2016 at 6:08 PM, fxthomas wrote: > I tried with a new approach it works atleast for basic condition . But the > problem is if there is any file left in the folder which did not match in > the Run , the route keeps on polling and the filter is called everytime . > > 1) Is there any

Extend FileComponent and create Custom componenet

2016-02-02 Thread fxthomas
hello, Is it possible to extend a existing component and create a new component . I have some specific business logic for file consuimg and in current component I find it difficult to make all scenarios work. Or the only option is to current your own custom component ?