Frans
grab what you need from
https://resteasy.svn.sourceforge.net/svnroot/resteasy/trunk/jaxrs
cd jaxrs-api
mvn -e -X compile
mvn -e -X package
mvn -e -X install:install-file
mvn -e -X deploy:deploy-file
add the dependency to your dependencies list
<dependencies>
<dependency>
<groupId>org.jboss.resteasy</groupId>
<artifactId>jaxrs-api</artifactId>
<version>2.3.4.Final</version>
</dependency>
....
then annotate your code.. resteasy-jaxrs provides you these annotations
@Path("/") //javax.ws.rs.Path
@GET //javax.ws.rs.GET
@Produces("application/json") //javax.ws.rs.Produces
anything missing?
Martin
______________________________________________
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
Diese Nachricht ist vertraulich. Sie nicht der vorgesehene Empfaenger sein, so
bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder
Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung.
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est
interdite. Ce message sert à l'information seulement et n'aura pas n'importe
quel effet légalement obligatoire. Étant donné que les email peuvent facilement
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité
pour le contenu fourni.
> Date: Fri, 24 Aug 2012 03:17:05 +0700
> Subject: Re: Q: S2 REST vs JAXRS or S2-JAX-RS plugins
> From: [email protected]
> To: [email protected]
>
> any idea to use resteasy with s2?
>
> esp to use the url pattern of rest (blabla/blabla) with Action
> On Aug 23, 2012 12:53 PM, "Lukasz Lenart" <[email protected]> wrote:
>
> > But I think you can always use RESTeasy and get the same value without
> > needs for custom plugin. I don't see a point to have another JAX-RS
> > implementation on the market.
> >
> >
> > Regards
> > --
> > Łukasz
> > + 48 606 323 122 http://www.lenart.org.pl/
> >
> >
> > 2012/8/21 Frans Thamura <[email protected]>:
> > > yes
> > >
> > > righr now the syntax is @result and @action
> > >
> > > i think if we have more like @get etc
> > >
> > > that make it more powerfull
> > >
> > > On Aug 22, 2012 3:01 AM, "Łukasz Lenart" <[email protected]>
> > wrote:
> > >>
> > >> Hi,
> > >>
> > >> I'm not sure if I understand, you just want implement JAX-RS as a
> > >> Struts 2 plugin ?
> > >>
> > >>
> > >> Regards
> > >> --
> > >> Łukasz
> > >> mobile +48 606 323 122 http://www.lenart.org.pl/
> > >> Warszawa JUG conference - Confitura http://confitura.pl/
> > >>
> > >> ---------------------------------------------------------------------
> > >> To unsubscribe, e-mail: [email protected]
> > >> For additional commands, e-mail: [email protected]
> > >>
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [email protected]
> > For additional commands, e-mail: [email protected]
> >
> >