2 Replies Latest reply on Feb 26, 2008 8:04 AM by nickarls

    POJO as WebService?

    nickarls

      Hi,

      I made a simple stateless EJB, annotated the class with @WebService and the web with @WebMethod, it deployed fine and showed up in /jbossws/services.

      So I removed the EJB:ness from it and retried, but this time the WS doesn't get deployed. I got the impression from the JBoss WS wiki that POJOs would also be supported, am I missing something fundamental?

      I'm on AS 4.2.2.GA

      Thanks in advance,
      -Nik

        • 1. Re: POJO as WebService?
          heiko.braun

          It requires different packaging. It needs to go into a .war and have a proper web.xml with it.

          • 2. Re: POJO as WebService?
            nickarls

            Excellent! So it should work just like a EJB with the different packaging/conf?

            BTW. I looked quickly at the web.xml and it looks sort of like a servlet mapping, should it still be visible under jbossws/services or is it just standalone?