7 Replies Latest reply on Apr 8, 2011 6:23 AM by lvdberg

    Seam compatible version for RESTEasy

    valatharv

      Hi,


      Need your valuable inputs for the compatible versions of seam and webservices.


      We need to implement web service (which will return JSON-encoded list) into existing seam application.


      a) Currently we are using jboss-seam-2.0.2.SP1, jboss-4.2.3.
      b) So, is Restful webservice using RESTEasy compatible with the above version of seam/ jboss.


      Please suggest.


      While exploring I found that support for JAX-RS web services has been evolving since 2.1.0..
      http://seamframework.org/Community/FacingProblemInRESTfulWebserviceUsingRESTEasy


      Regards

        • 1. Re: Seam compatible version for RESTEasy
          lvdberg

          Hi,


          I changed to a newer version of Seam because of its better RestEasy support.


          Leo

          • 2. Re: Seam compatible version for RESTEasy
            valatharv

            Thanks a lot for the quick reply.


            I don't have much experience on this...
            a) To handle JSON-encoded list best option would be to with Restful webservice using RESTEasy ?


            b) Do we need to upgrade  jboss-4.2.3 version also if we are upgrading seam.


            Regards
            Vishal


            • 3. Re: Seam compatible version for RESTEasy
              lvdberg

              Hi,


              I am using a newer version of Seam (we have experience now with 2.1.2 and 2.2), which both should work with JBoss 4.2.3.. I knw there are some issues with the JAXB implementation (used for RestEsay), but that depends also on the java vesrion (we use 6 now).


              To be honest, although not necessary, we've found that JBoss 5 is a huge improvement, so if you have some time you coudl do some parallel research work to see if such a switch is feasible.


              Leo

              • 4. Re: Seam compatible version for RESTEasy
                valatharv

                Great thanks for the feedback.. I will explore on this.

                • 5. Re: Seam compatible version for RESTEasy
                  valatharv
                  Hi,

                  I had a discussion with other team who is responsible for service...

                  Here is the client requirement :
                  They have a service (not in our control) example URL http://<host>/suggest/sample-id?term=abc

                  Here, I need to send a GET request to "/suggest/sample-id" with a "term" parameter which will return either
                  (1) a 404 indicating that the service doesn't have any suggestions for you, OR
                  (2) a JSON-encoded list of suggested terms.

                  Please guide what will be best way to implement this in already developed Seam application (jboss-seam-2.0.2.SP1, jboss-4.2.3 GA, richfaces 3.3.1.GA).
                  We plan to use richfaces suggestionBox component.

                  Thanks a lot in advance.

                  Regards
                  • 6. Re: Seam compatible version for RESTEasy
                    valatharv

                    Hi,


                    Is it must to upgrade seam version in order to achieve client requirement as in last post.


                    Please suggest.


                    Regards

                    • 7. Re: Seam compatible version for RESTEasy
                      lvdberg

                      Hi,


                      you really should upgrade to a newer version of Seam to get Rest working as it should be.
                      However, be aware that this will impact the existing application also. If you're Webservice is VERY simple, consider implementing it as a simple service in JBoss.


                      Leo