users@jersey.java.net

[Jersey] Re: Exposing existing EJB as REST service on JBoss

From: Cyril Bouteille <cyril_at_RewardsPay.com>
Date: Fri, 08 Mar 2013 09:01:39 -0800

It's the same with Jersey.
Just declare the Jersey ServletContainer in your web.xml as example 2.13
@ http://jersey.java.net/nonav/documentation/1.17/user-guide.html#d4e188
Then annotate your @Stateless w/ @Path and voila!

On 03/07/2013 11:58 AM, Sandeep Jangra wrote:
> Hi,
>
> I have an existing project of Stateless EJBs and now I am trying to
> expose these as Restful services using Jersey.
> Is there any clean approach for doing that? I don't want to do
> lookups using initial context or write my own providers.
>
> In resteasy, I can just specify a parameter in web.xml and annotate
> my Remote interface with @Path and it works just fine.
>
> Please let me know the best known (or all known ways) of doing that
> using jersey.
>
> Thanks
>