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: use @alternative in jax-rs end-point
Date Tue, 01 Oct 2013 12:37:06 GMT
Hi

I think it should be possible to get the expected behavior using a jaxrs
Application (understand it this way: don't use auto discovery of rest
services in this case).

Maybe @Specialized is more adapted since JAXRS is linked to the class and
not the API types.

*Romain Manni-Bucau*
*Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
*Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*



2013/10/1 ZhongGuan <guanzh.email@gmail.com>

> Hi,
>
> can I use @alternative to change the jax-rs service?
>
> I tested it in TomEE1.5.1 and GlassFish3.1.2.
>
> in TomEE, there is no exception when I accessed the url.
> but the @alternative does not work.
>
> in GlassFish, when I accessed the url, I got the "Conflicting URI
> templates"
> error.
>
> Here is the question, Is it possible to use @alternative(CDI) to change the
> jax-rs service?
>
> such as
> @Alternative
> @Path("/HelloWorldService")
> public class HelloWorldServiceImpl implements HelloWorldService {
>
> @Alternative
> @Path("/HelloWorldService")
> public class HelloWorldBServiceImpl implements HelloWorldService {
>
> thanks.
>
>
>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/use-alternative-in-jax-rs-end-point-tp4665380.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>

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