tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Romain Manni-Bucau <rmannibu...@gmail.com>
Subject Re: JAX-RS Arraylist RequestDispatcherProvider
Date Thu, 02 Feb 2017 14:27:55 GMT
Hi

did you try something like

<Service id="dispatcher"
class-name="org.apache.cxf.jaxrs.provider.RequestDispatcherProvider">
classResources = \
     a=b\
     c=d
</Service>




Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<https://blog-rmannibucau.rhcloud.com> | Old Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | JavaEE Factory
<https://javaeefactory-rmannibucau.rhcloud.com>

2017-02-02 5:34 GMT+01:00 Bart van Leeuwen <bart_van_leeuwen@netage.nl>:

> Hi,
>
> I've played around with using RequestDispatcherProvider through
> resources.xml to map @GET to a JSP
> all works fine for single object, but when returing a
> java.util.ArrayList<MyClass> I can only map the java.utilArrayList which
> means I can only use one arraylist
>
> I now have the following snippet in my resources.xml
> <Service id="classResources" class-name="org.apache.
> openejb.config.sys.MapFactory">
>   java.util.ArrayList=/test.jsp
>    </Service>
>
> I resulted in extending java.util.ArrayList to have a unique classname, is
> that the way to solve this ?
>
> Met Vriendelijke Groet / With Kind Regards
> Bart van Leeuwen
>
>
> twitter: @semanticfire
> tel. +31(0)6-53182997
> Netage B.V.
> http://netage.nl
> Esdoornstraat 3
> 3461ER Linschoten
> The Netherlands
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message