Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

where to put xyz.exe file in ejb project  RSS feed

 
Ankita Bhargava
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to use some.exe file into my project which needs to be placed inside the EJB project. Which i want to execute using Process class.
 
Claude Moore
Ranch Hand
Posts: 862
8
IBM DB2 Java Netbeans IDE
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my opinion, the only answer would be : nowhere. You should not execute an external program from a Java EE application. Instead, you should rely to JCA to try and invoke it... to keep things simple,
what about encapsulating your exe program in a wrapper which exposes, in turn, an "execute" method via web service?
 
Ankita Bhargava
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for reply.. but i do not think so it works in my project because i do not have program of that exe file it was given by some one else for execution..
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!