Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jboss can't detect command prompt action

 
Nakataa Kokuyo
Ranch Hand
Posts: 189
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good day,

I have a program which running a batch file via cmd console and ProcessBuilder class being call to finish the task. the batch file path was hard coded as final String.(ie:c:/temp/myprocess.bat)

my question is, what could be the possibility that this program could run in Tomcat but not the case of jboss, both server are running the same war file in same machine.

Thanks ahead!!
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What version of JBoss AS?
How are you starting JBoss AS and how are you starting Tomcat?
Exactly how are you attempting to launch the batch file (show your code!).
And you do know that firing off a batch file from a web app is a very bad idea, right?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic