XFire
  1. XFire
  2. XFIRE-761

Sharing domains objects results in ObjectFactory being overwritten by WSGEN

    Details

    • Type: Improvement Improvement
    • Status: Open Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.2.2
    • Fix Version/s: None
    • Component/s: Generator
    • Labels:
      None
    • Environment:
      Java 1.5, ant 1.6.5, maven 2.0.4
    • Number of attachments :
      0

      Description

      I have several webservices on different WSDLs, served up using the JSR181 annotations.

      I would like to have the different services use and share the common domain objects, that is, objects in the same package.

      Using wsgen to generate code, it all works fine, except that when I try to use common domain objects the ObjectFactory class gets overwritten by the last wsgen task that run.

      This means that I cannot use common objects in different services, every service must use its own, private objects.

      Can this be changed so that the ObjectFactory is added to rather than overwritten? Or is there something else I can do?

      Thanks again,
      James

        Activity

        Hide
        Brian Topping added a comment -

        Dan, this is the problem you and I were noodling when it wasn't clear why things weren't working for me while you were at TSS and so graciously took the time to look at the issue. Many thanks for your time!

        The <wsdls> list in the plugin seems very very handy, but this is a rather obscure problem to a XFire n00b like myself and probably others if they were to hit it.

        Show
        Brian Topping added a comment - Dan, this is the problem you and I were noodling when it wasn't clear why things weren't working for me while you were at TSS and so graciously took the time to look at the issue. Many thanks for your time! The <wsdls> list in the plugin seems very very handy, but this is a rather obscure problem to a XFire n00b like myself and probably others if they were to hit it.
        Hide
        James Burton added a comment -

        I had a brief email conversation with someone about this and they said that their solution was to create an extra web service that contains get methods for ALL the shared domain objects and generate it last. They said that doing this produces a working object factory with everything in it.

        Not ideal, but I might soon have to try it.

        Show
        James Burton added a comment - I had a brief email conversation with someone about this and they said that their solution was to create an extra web service that contains get methods for ALL the shared domain objects and generate it last. They said that doing this produces a working object factory with everything in it. Not ideal, but I might soon have to try it.
        Hide
        Ash Hornbeck added a comment -

        This problem seams to come up quite often for me.

        Also, I believe it is related to http://jira.codehaus.org/browse/XFIRE-584.

        Show
        Ash Hornbeck added a comment - This problem seams to come up quite often for me. Also, I believe it is related to http://jira.codehaus.org/browse/XFIRE-584 .
        Hide
        Curtis Taylor added a comment -

        This is proving to be an issue more often than not. Is there any other workaround aside from James' suggestion?

        Show
        Curtis Taylor added a comment - This is proving to be an issue more often than not. Is there any other workaround aside from James' suggestion?

          People

          • Assignee:
            Dan Diephouse
            Reporter:
            James Burton
          • Votes:
            4 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated: