facebook

JAX-WS and multiple services

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #297917 Reply

    prismmed
    Member

    Maybe I am confused on how to name / partition my web services.

    I initially thought I could write a POJO for each service type, where I have a service per domain object (Dog, Cat) and that POJO will have CRUD methods on it. So I created a package called foo.services, and added a Dog class with an add method. I generated a JAX-WS service and I see the servlet was mapped in web.xml and also I see Add.java and AddResult.java added to .apt_generated under the services package.

    The problem is, now, what happens if I want to add the same CRUD methods to the Cat POJO inside the foo.services package, I assume there will be a conflict?

    Should I create a separate package for each service? Is this correct? This seems counterintuitive, as I am used to Spring services with many POJO classes inside one package, etc.

    #297930 Reply

    Loyal Water
    Member

    Moving to Off Topic >> Software Development.

    #297934 Reply

    prismmed
    Member

    How is this off topic? I’m using MyEclipse 7.1 Web Service wizard.

    I need to know how to name my services so the wizard / annotation processor generated code works properly.

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: JAX-WS and multiple services

You must be logged in to post in the forum log in