private void submitJob(String scriptFile)
{
try {
//Get the service from lookup cache
QueueInterface q = getQueueService(queueList.getSelectedIndex());
//Prepare an application Object
StringTokenizer pList = new StringTokenizer(param.getText());
String[] p = new String[pList.countTokens()];
for(int i = 0; i < p.length; i ++)
p[i] = pList.nextToken();
String script = getScriptContent(scriptFile);
UserProperties user = new UserProperties("Real Name",
userID);
Entry entry [] = { new JobUserKey(appName,
user,
"localhost",
new Date()),
new Name(appName),
new Name(userID) };
q.submit(new AppParams(appName, null, script, p, true), entry,
user);
//Start a service listener waiting for the Job service
JAMServiceUILauncher launcher = new
JAMServiceUILauncher(lookupManager, entry,
"com.sun.grid.jam.job.JobInterface");