2 Replies Latest reply on May 29, 2008 9:50 AM by awfulnice

    Seam + Tomcat + Web service


      Hi there.
      Is there any way I could expose a class as a Web service?
      My projects is directly based on jpa Seam 2.0.0.GA example deployed on tomcat 2.2.

      Thanks a lot

        • 1. Re: Seam + Tomcat + Web service

          Well, you need some Web Service stack first since tomcat doesn't come with any.

          After that it should be pretty straightforward to deploy them with annotations, web.xml servlet mappings and seam in the handler chain (guessing here).

          • 2. Re: Seam + Tomcat + Web service

            Fist of all thank you for the reply. I have solved the problem by chance.
            Well, I think I´ve resolved it just including this filter  in web.xml: org.jboss.seam.web.ContextFilter. Then a service request can access Seam Context.

            I suggest it could be a good thing  to extend jpa example (I mean no JBossAS, no EJB3) with some  web service functionality.