HAPPY NEW YEAR 2017

Identity And Access Management - Rajiv Dewan

Upload Jar Through Eclipse JDeveloper

Upload Jar Through Eclipse/Jdeveloper:

No need to run the UploadJar Utility through command line



public void uploadJar(PlatformUtilsService platformUtilsService) throws PlatformServiceException{
        String METHODNAME = "uploadJar() :: ";
        System.out.println( METHODNAME +"ENTERING");
        JarElement jarElement = new JarElement();
        jarElement.setName("CustomScheduleTasks.jar");
        jarElement.setPath("/tmp/CustomScheduleTasks.jar");
        jarElement.setType("ScheduleTask");
       
        Set jarElementSet = new HashSet();
        jarElementSet.add(jarElement);
       
        platformUtilsService.uploadJars(jarElementSet );
        System.out.println(METHODNAME + "EXITING" );
    }

    


Note: /tmp/ is the directory on OIM Server with read permissions on the file

No comments:

Post a Comment