You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by cocorossello <co...@gmail.com> on 2018/11/15 08:43:01 UTC

CXF customize wadl generation without spring

Hi,

I would like to hide some endpoints in wadl generation, all examples I see
are spring based, just setting org.apache.cxf.endpoint.private property to
true, but I have no clue of how to do it in plain tomee. Is there any way to
inject the configuration and setting that property or similar?

What I would really like is to have two different wadl (public and private),
but I can live just hiding some endpoints. I guess that for this matter I
would have to write a servlet with a custom WadlGenerator, listing some
endpoints. Is it right? Is there any example out there (without spring)?

Thanks,
Vicente.



--
Sent from: http://tomee-openejb.979440.n4.nabble.com/TomEE-Users-f979441.html

Re: CXF customize wadl generation without spring

Posted by cocorossello <co...@gmail.com>.
I haven't found how to set org.apache.cxf.endpoint.private to an existing
endpoint, but anyway, I have split the web services into several and just
hide private wadls with a web filter.

@ApplicationPath("private-resources")
public class InternalApiRestServer extends Application {
...
}

@ApplicationPath("resources")
public class PublicApiRestServer extends Application {
...
}



--
Sent from: http://tomee-openejb.979440.n4.nabble.com/TomEE-Users-f979441.html

Re: CXF customize wadl generation without spring

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Hi Vicente,

don't think there is an example but cxf is configurable in tomee as in
spring (but without it):
http://tomee.apache.org/developer/configuration/cxf.html

Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<https://rmannibucau.metawerx.net/> | Old Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
<https://www.packtpub.com/application-development/java-ee-8-high-performance>


Le jeu. 15 nov. 2018 à 09:43, cocorossello <co...@gmail.com> a
écrit :

> Hi,
>
> I would like to hide some endpoints in wadl generation, all examples I see
> are spring based, just setting org.apache.cxf.endpoint.private property to
> true, but I have no clue of how to do it in plain tomee. Is there any way
> to
> inject the configuration and setting that property or similar?
>
> What I would really like is to have two different wadl (public and
> private),
> but I can live just hiding some endpoints. I guess that for this matter I
> would have to write a servlet with a custom WadlGenerator, listing some
> endpoints. Is it right? Is there any example out there (without spring)?
>
> Thanks,
> Vicente.
>
>
>
> --
> Sent from:
> http://tomee-openejb.979440.n4.nabble.com/TomEE-Users-f979441.html
>