Hitachi Vantara Pentaho Community Forums
Results 1 to 6 of 6

Thread: Get list jobs of repository - java!

  1. #1

    Default Get list jobs of repository - java!

    Hello Matt!
    How i can list jobs of repository correctly?
    Name of job i get:
    try {
    for (int i = 0; i < rep.getJobNames().length; i++) {
    log.info("Job name - >"+rep.getJobNames()[i]);

    }
    } catch (KettleDatabaseException ex) {
    ex.printStackTrace();
    }
    But i'm not found the method allowing to get job on the name....

  2. #2
    Join Date
    May 2006
    Posts
    4,882

    Default

    What do you mean with "get job on the name"?

    Regards,
    Sven

  3. #3

    Default

    Name - parametrs, for search in repository !
    When i try
    JobEntryLoader jobEntryLoader = JobEntryLoader.getInstance();
    jobEntryLoader.setInitialized(true);
    if (!jobEntryLoader.read())
    {
    log.info("kosyak!");
    return;
    }
    I have exception
    Exception in thread "main" java.lang.NoClassDefFoundError: javax/mail/MessagingException
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:169)
    at be.ibridge.kettle.job.entry.JobEntryInterface$1.class$(JobEntryInterface.java:228)
    at be.ibridge.kettle.job.entry.JobEntryInterface.<clinit>(JobEntryInterface.java:225)
    at be.ibridge.kettle.job.JobEntryLoader.readNatives(JobEntryLoader.java:97)
    at be.ibridge.kettle.job.JobEntryLoader.read(JobEntryLoader.java:84)

  4. #4
    Join Date
    May 2006
    Posts
    4,882

    Default

    You need to put all of the jars that are needed by your transformation in your classpath of course.

    Regards,
    Sven

  5. #5

    Default

    How i'm get list job from repository and execute?

  6. #6
    Join Date
    May 2006
    Posts
    4,882

    Default

    Same answer as before... look at pan.

    Regards,
    Sven

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.