Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

cronss job

 
charmy jain
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how i set ejb client which is simple java class is call a ejb method from
jboss server into cronstab script shall ?

thanks
 
Stefan Wagner
Ranch Hand
Posts: 1923
Linux Postgres Database Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you show what you like to do without crontab from the shell?

I don't have JBoss, but calling a script from shell or from crontab is pretty similar, but:

- most environment variables don't exist in the crontab; even $PATH is usually unknown, so you have to use full pathnames or set the PATH inside the crontab.

A second popular pitfall with cron: The crontab needs a newline at the end of the file.
[ May 15, 2006: Message edited by: Stefan Wagner ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic