This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic