[GE users] Invoking a java class using DRMAA

templedf daniel.templeton at oracle.com
Mon Mar 22 21:29:03 GMT 2010

What do you expect the behavior to be for that operation?  How would 
that object be "executed?"

The most straight-forward approach is to set the remote command to 
"java" and set the args to include the name of the class to execute. 
Depending on exactly what you're trying to accomplish, there are other 


On 03/19/10 06:02, anand_jayaraman wrote:
> Hi,
> I understand there is a notion of DRMAA wherein you can run Grid jobs using Java API. I find the examples for only running some sh files. I am interested in an implementation like this, Please read the comments i have written in this code snippet:
>            JobTemplate jt = session.createJobTemplate();
>            /*
> I want a java class to become the content for JobTemplate. I am not interested in invoking this through a shell script file.
> Something like:
>         jt.setXXX(java class)
> Once the job executes it essentially executes the java class. Is this supported?
>            */
>            String id = session.runJob(jt);
>            System.out.println("Your job has been submitted with id " + id);
>            session.deleteJobTemplate(jt);
>            session.exit();
> ------------------------------------------------------
> http://gridengine.sunsource.net/ds/viewMessage.do?dsForumId=38&dsMessageId=249681
> To unsubscribe from this discussion, e-mail: [users-unsubscribe at gridengine.sunsource.net].


To unsubscribe from this discussion, e-mail: [users-unsubscribe at gridengine.sunsource.net].

More information about the gridengine-users mailing list