ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Run Java Program In batch???

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Run Java Program In batch???

    I have a program that basically listens to an IFS directory and processes any objects that hit that directory. It runs fine in QSHELL but when I try to submit it to batch using RUNJVA, I get a message back that says the job completed normally. The job should not end and should run all day. I've tried submitting it with the classpath string in the command and *ENVVAR. I have a feeling it has something to do with the Current Directory used in the sbmjob. I thought when you submitted a job, it will use the current directory of the session you're in.

    Anyone have any ideas? I'm posting two links to the job logs below. The first is from the submitted job. The second is the QJVACMDSRV job log. Let me know if you need anymore information. I'm new to Java on the As400, iSeries, xServer, SystemI or whatever they're calling it this week.

    http://207.207.26.163/LogFromJobSubmitted.pdf

    http://207.207.26.163/QJVACMDSRV.PDF

  • #2
    Re: Run Java Program In batch???

    Well, your links are broken.

    This is interesting because I've wanted to do the same thing in the past and couldn't come up with a strategy. Is there some sort of IFS event you can listen for that indicates a new file is being created? If you could post a code snippet that would help... both with answering your question and mine.

    As far the directory that is used when the job is submitted, it will use the home directory in the user profile being used to run the job.

    Comment

    Working...
    X