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

Is there any problem if we start an OS native process from a MDB?  RSS feed

 
raminaa niilian
Ranch Hand
Posts: 551
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Thank you for reading my post
Is there any problem if we start for example a shell script from an MDB?
for example we start another application when we recieve a special message?

Thanks.
 
Shailesh Kini
Ranch Hand
Posts: 153
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Raminaa,

If you really want you could do all that, however, you have play around a lot with the SecurityManager to be able to execute those tasks and it is definitely not recommended by the EJB Container spec. You should not do any IO related stuff in your EJB because IO cannot participate in a transaction context.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!