Re: cxf transformation feature - could code be ported and used in Camel?

2014-07-28 Thread Lowry
I added a custom bean processor (see below) to my camel route where i want to use the CXF InTransformReader to do some transformation as prescribed. There seems to be a problem though. No type convertor in camel to convert the underlying 'ValidatingStreamReader' into type understood by Camel. Doe

Re: Upgraded to 3.0.0, now Rest service receiving xml give 400 Bad request

2014-07-28 Thread javaworkinggirl
Sergey, I solved my problems. What is needed is an abstract pojo class with no @XmlRootElement, that my 2 concrete classes then inherit from both with the same @XmlRootElement(name="Order"). Probably this way the JAXB can figure out which class to instantiate. Thanks for your help! Tara -- V

Re: Upgraded to 3.0.0, now Rest service receiving xml give 400 Bad request

2014-07-28 Thread javaworkinggirl
Here is the whole stack trace. So this is with 2 pojo java beans that have the same @XmlRootElement 2014-07-28 14:38:53,564 DEBUG [RemoveTimeBasedEntitlementsExpiredService RUNNING] com.twc.ctg.ecp.service.app.metric.MetricsTimers - registered new timer in metrics registry 2014-07-28 14:38:53,566

Re: jax rs features in CXF

2014-07-28 Thread Sergey Beryozkin
Hi On 28/07/14 13:30, Stan Ioan Eugen wrote: Hello, I'm working on a Hypermedia driven service using CXF JAX-RS 2.0 and CDI and I can't figure out how or if it's possible to use [1] in CXF 3.0.1 No, the annotation based approach is not supported in CXF. There was discussion about some if it be

Re: Upgraded to 3.0.0, now Rest service receiving xml give 400 Bad request

2014-07-28 Thread Sergey Beryozkin
Hi On 27/07/14 22:44, javaworkinggirl wrote: Yes this error has to do with the changes I made to use jsr-303 bean validation. ERROR: java.lang.ClassCastException: Cannot cast com.twc.ctg.ecp.model.csg.CsgEntitlementBase to com.twc.ctg.ecp.model.csg.CsgEntitlement Where is this exception comin

Use Validation Groups with Bean Validation?

2014-07-28 Thread javaworkinggirl
Hi. Is there a way to use validation groups with bean validation (jsr-303) in cxf? Passing in the group as an parameter to @Valid doesn't work. Other suggestions? @POST @Path("/entitlement") @Consumes({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML}) @CsgHeaderValidation @Valid

Configuring jaxws clients for performance

2014-07-28 Thread Giriraj Bhojak
Hello, Could anyone recommend settings/properties (for e.g., number of client connections/connection pool) that would impact the performance of clients configured for calling an endpoint? I need to ensure that if large number of endpoints invocation happen for a given "jaxws:client", there are no

MapEventLogger not honoring logStacktrace?

2014-07-28 Thread Stephen.CTR.Chappell
I'm using org.apache.cxf.sts.event.map.MapEventLogger (from CXF 2.7.13-SNAPSHOT) to support auditing in my STS. I don't want it to log stack traces in the audit log, so I've set the property logStacktrace to false in my CXF bean config. But I'm getting stack traces anyway. I don't see where the

Re: Message.INBOUND_MESSAGE in PREPARE_SEND_ENDING Interceptor

2014-07-28 Thread Daniel Kulp
For this use case, I’d suggest using the MessageUtils.isRequestor(msg) call. Dan On Jul 27, 2014, at 4:56 PM, zsolt.szloboda wrote: > I have a CXF service, which is also a WS client of other services > > I have a PREPARE_SEND_ENDING Interceptor configured in my service > (which is invoked b

Re: How to retrieve return value in out interceptor?

2014-07-28 Thread Daniel Kulp
Move your interceptor up into the PRE_LOGICAL with a addBefore(WrapperClassOutInterceptor.class.getName()). The list should then just have the return value (and any holders for other outs). The WrapperClassOutInterceptor combines those into the asm generate object. Dan On Jul 27, 2014, at

jax rs features in CXF

2014-07-28 Thread Stan Ioan Eugen
Hello, I'm working on a Hypermedia driven service using CXF JAX-RS 2.0 and CDI and I can't figure out how or if it's possible to use [1] in CXF 3.0.1 I wish to be able to declare links between my resources. Can I use javax.ws.rs.core.Feature implementations inside CXF and how ? Thanks, [1] htt