Hi Muse
Thanks for starting experimenting with it.
It is fair to say that this feature requires more work - it is being
planned.
I'll add a missing @Provider annotation and that alone will let this
provider be auto discovered too with CXF 3.1.8 (with a
cxf.jaxrs.classes-scan -
http://cxf.apache.org/docs/springboot.html#SpringBoot-AdditionalConfiguration.1).
I haven't tried yet Observable.just where a list is implicit - will take
a look at it
Cheers, Sergey
On 29/08/16 16:09, Muse Mekuria wrote:
Hi Sergey,
I am working with Spring Boot & CXF and trying to implement our APIs
with RxJava Observables. I used the ObservableWriter I found here
<https://github.com/apache/cxf/commit/447f2dac6e160b5cd495558ca8855ed481396c63>
and
added some Spring annotations so it gets picked up like so...
@Provider@Component@Produces(MediaType.APPLICATION_JSON)
public class ObservableWriter<T> implements
MessageBodyWriter<Observable<T>> {...
My api returns an empty list when I try to return the type Observable<T>
(where I am expecting a list of T) but if I wrap the whole list into
Observable<List<T>> I get my response.
So my question is
* Is there any documentation on how to use these extensions properly
or is it still not ready for use
* I was hoping to find something like this
<https://github.com/jmnarloch/rxjava-spring-boot-starter> where the
produced results are wrapped into a list, am I missing something or
is this not available yet?
Thank you!
Muse