1 Reply Latest reply on Aug 2, 2008 7:18 AM by tfennelly

    POJO2POJO transformation. Conceptual question

    aeternitas

      Hi all,

      I'm new to JBossESB (and ESB in general) and that's why I have a question :)
      The problem is:
      I have an application Application1, which uses among other object Home:

      class Home {
      private String address;
      ..
      }
      

      Another application (Application2) has a web service with web method "createResource(Resource resource)" - so as you see, the type used in this application is Resource:
      class Resource {
      private String name;
      private String description;
      ..
      }
      


      These application should communicate with help of ESB. So first application should create resource Home in the second application (something like " createResource(home)' ". First application does not know anything about Resource object type, as well as the second application have no idea what is object Home. As I understand ESB should make this transformation...

      Now the question:
      Should I provide my ESB projects with definitions of Resource and Home objects? (to make some library where I deploy all objects used to transform them)? Maybe I should use SmooksAction, but unfortunately I don't see a quickstart example with POJO2POJO transformation and I don't know which information about these objects should my ESB application know.

      Can anybody help me?
      Thanks in advance,
      Maxym

        • 1. Re: POJO2POJO transformation. Conceptual question
          tfennelly

           

          "Aeternitas" wrote:
          Should I provide my ESB projects with definitions of Resource and Home objects? (to make some library where I deploy all objects used to transform them)?

          Sure, all classes will need to be available on the cp.

          "Aeternitas" wrote:
          Maybe I should use SmooksAction, but unfortunately I don't see a quickstart example with POJO2POJO transformation and I don't know which information about these objects should my ESB application know.


          Look at the tutorials on the smooks website (milyn.codehaus.org/smooks).