Re: camel cxfrs with swagger.

2014-12-22 Thread Sergey Beryozkin
Andriy Redko (CXF colleague of mine) and myself worked on getting CXF 
SwaggerFeature running as JAX_RS 2.0 filter - this should make sure it 
is effective with cxfrs too - you may want to experiment with updating 
the cxfrs dependencies to CXF 3.0.4-SNAPSHOT


Cheers, Sergey

On 11/12/14 21:53, Sergey Beryozkin wrote:

On 11/12/14 20:12, gquintana wrote:

I don't fully understand your proposal.

I thought the problem was /api-docs was not reaching the  endpoint at
all, so the idea was to make sure it is covered by a "/camel" URI
sub-space, part of the endpoint address but then redirect to the swagger
endpoint...


After digging bit, I came to the conclusion that it wasn't the server
declaration which was different, but the fact that the consumer was
installing the CxfRsInvoker in the server which changed everything. The
CxfRsInvoker swallows all requests to produce Camel exchanges and never
calls the registered service beans.


I think a cxf swagger feature may need to be updated for it to run as a
pre-matching filter so that it can directly invoke on the swagger
resource. Perhaps a Swagger resource itself should implement
ContainerRequestFilter optionally... That can be investigated further on
the cxf end.
The other long pending enhancement that needs to be implemented asap,
CXFRS should ship CXF interceptors which can let a regular CXF endpoint
seamlessly integrate into a route - I'll try to prioritize and create a
patch

Sergey


Gérald



--
View this message in context:
http://camel.465427.n5.nabble.com/camel-cxfrs-with-swagger-tp5757720p5760599.html

Sent from the Camel - Users mailing list archive at Nabble.com.








Re: Changes in Java 8 generics breaking Camel

2014-12-22 Thread andrewcelerity
I tested with the snapshot version and it works great.  Thanks for the 
quick fix!

What's the expected time for 2.14.2 to be a stable release?

On 12/21/14, 8:16 AM, Babak Vahdat [via Camel] wrote:
> Hi
>
> Thanks for raising the ticket and providing the "sample-app". The 
> ticket is now fixed and your provided sample-app works on Java 8 as well.
>
> You’re welcome to test it by your “real-app” as well (either using the 
> 2.14.2-SNAPSHOT or the master branch) and report us back if it would 
> now work by your “real-app” on Java 8 as well.
>
> BTW all this is the side effect of:
> https://bugs.openjdk.java.net/browse/JDK-6695379
>
> Babak
>
> andrewcelerity wrote
> I opened a Jira ticket and attached a sample app that replicates
> the problem.  Hopefully it's an easy fix.
>
> https://issues.apache.org/jira/browse/CAMEL-8160
>
>
>
> 
> If you reply to this email, your message will be added to the 
> discussion below:
> http://camel.465427.n5.nabble.com/Changes-in-Java-8-generics-breaking-Camel-tp5760638p5760975.html
>  
>
> To unsubscribe from Changes in Java 8 generics breaking Camel, click 
> here 
> .
> NAML 
> 
>  
>





--
View this message in context: 
http://camel.465427.n5.nabble.com/Changes-in-Java-8-generics-breaking-Camel-tp5760638p5760990.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Changes in Java 8 generics breaking Camel

2014-12-22 Thread Babak Vahdat


Am 22.12.14 15:49 schrieb "andrewcelerity" unter
:

>I tested with the snapshot version and it works great.  Thanks for the
>quick fix!
>
>What's the expected time for 2.14.2 to be a stable release?

The 2.14.1 release was just announced last week and the patch releases are
typically 3 months apart. So I guess the 2.14.2 release will be available
around March 2015.

Babak


>
>On 12/21/14, 8:16 AM, Babak Vahdat [via Camel] wrote:
>> Hi
>>
>> Thanks for raising the ticket and providing the "sample-app". The
>> ticket is now fixed and your provided sample-app works on Java 8 as
>>well.
>>
>> You¹re welcome to test it by your ³real-app² as well (either using the
>> 2.14.2-SNAPSHOT or the master branch) and report us back if it would
>> now work by your ³real-app² on Java 8 as well.
>>
>> BTW all this is the side effect of:
>> https://bugs.openjdk.java.net/browse/JDK-6695379
>>
>> Babak
>>
>> andrewcelerity wrote
>> I opened a Jira ticket and attached a sample app that replicates
>> the problem.  Hopefully it's an easy fix.
>>
>> https://issues.apache.org/jira/browse/CAMEL-8160
>>
>>
>>
>> 
>> If you reply to this email, your message will be added to the
>> discussion below:
>> 
>>http://camel.465427.n5.nabble.com/Changes-in-Java-8-generics-breaking-Cam
>>el-tp5760638p5760975.html
>>
>> To unsubscribe from Changes in Java 8 generics breaking Camel, click
>> here 
>> 
>>>ribe_by_code&node=5760638&code=YW5kcmV3QGNlbGVyaXR5Z2xvYmFsLmNvbXw1NzYwNj
>>M4fDE3MzQ0Njg1NDA=>.
>> NAML 
>> 
>>>iewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.B
>>asicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.te
>>mplate.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml
>>-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail
>>.naml> 
>>
>
>
>
>
>
>--
>View this message in context:
>http://camel.465427.n5.nabble.com/Changes-in-Java-8-generics-breaking-Came
>l-tp5760638p5760990.html
>Sent from the Camel - Users mailing list archive at Nabble.com.




Camel javaconfig context custom id

2014-12-22 Thread srinivas_vsk
H

In the XML configuration, it appears putting the id="myRoute" is easily set
as my camelcontext id when the application starts.
Trying to do the same with Javaconfig by overriding this below method from
CamelConfiguration, does not seem to update the context id- is there a
correct way to set the id?   Thanks

 @Override
protected void setupCamelContext(CamelContext camelContext) throws
Exception {
 // enable performance metrics
camelContext.addRoutePolicyFactory(getMetricsRoutePolicyFactory());
((SpringCamelContext)camelContext).setName("myRoute");
   
super.setupCamelContext(camelContext);
}



--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-javaconfig-context-custom-id-tp5760992.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: configuring Camel with XML DSL and Guice in tomcat

2014-12-22 Thread yogu13
Hello,

Any suggestions / pointers ?

Regards,
-Yogesh



--
View this message in context: 
http://camel.465427.n5.nabble.com/configuring-Camel-with-XML-DSL-and-Guice-in-tomcat-tp5760657p5760999.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Camel

2014-12-22 Thread smilevasu6
please, i am not able to find how can we split colon separated attributes in
camel.

Please any one help me on this?

And i dont want to hard code the attributes like as we do Xpath.



--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-tp5760986p5761000.html
Sent from the Camel - Users mailing list archive at Nabble.com.