[Webinar] Streamline your web hosting managementRegister Today

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 388
  • Last Modified:

Question involving JAXB, POJOs and WebServices

I have a set of Java Classes that I have annotated to be Web Services using @WebService and @WebMethod annotations. I also have the requirement that they can also be called as POJOs. Is it possible to call them as POJOs after the classes have been annotated? Or do I need to do something?
1 Solution
Siva Prasanna KumarPrincipal Solutions ArchitectCommented:
Basically all of them are POJO's by annotating them explicitly they are made as web service and operations.

No nothing additional is required.
wbathursAuthor Commented:
thanks, going to validate I can use as a POJO as well. Then I will accept as solution

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now