Hitachi Vantara Pentaho Community Forums
Results 1 to 3 of 3

Thread: How to use POJO (plain java objects) as input from Java application

  1. #1

    Default How to use POJO (plain java objects) as input from Java application

    Hi,
    We have Java based application where we convert the data model to object model (Java POJOs). We wanted to know if Java POJO can be provided as input to Kettle transformations. The Kettle transformation then can perform the transformation and provides the output again as transformed POJO.

    Is it possible to provide Java POJO as input to Kettle transformation and also get Java POJO as output of Kettle transformation.

    If we can do this then we want to call the Kettle transformation from our Java application where we give POJO as input and get POJO as output.

    Please let us know how this can be done.

    Regards,
    Kaustubh

  2. #2

    Default

    Could someone help to provide inputs on this

  3. #3
    Join Date
    Jan 2015
    Posts
    107

    Default

    I'm not sure, but I think JSON will be the closest you can get inside PDI unless you write your own Java steps, at which point you might as well transform them inside your application.

    Converting POJO to JSON can be done in various ways (http://stackoverflow.com/questions/9...and-vice-versa), so you'd have to investigate if it's worth the effort.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.