Discussion:
CXF customize wadl generation without spring
cocorossello
2018-11-15 08:43:01 UTC
Permalink
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
Romain Manni-Bucau
2018-11-15 09:13:22 UTC
Permalink
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>
Post by cocorossello
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.
--
http://tomee-openejb.979440.n4.nabble.com/TomEE-Users-f979441.html
cocorossello
2018-11-15 14:20:26 UTC
Permalink
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
Loading...