tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ZhongGuan <guanzh.em...@gmail.com>
Subject use @alternative in jax-rs end-point
Date Tue, 01 Oct 2013 12:20:21 GMT
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
View raw message