Hi

I have a stateless session bean deployed in JBoss from which  I want to execute 
ceratin Unix Commands.For this I am writing inside my EJB the following code:

Runtime.getruntime().exec("mkdir directory",null,new File(workspace)); 
Runtime.getruntime().exec("tar -xvf filename",null,new File(workspace)); 

I have deployed this bean in JBoss.But erratically it gives error at runtime when the 
code gets called and exits in between.It gives either of the following exceptions:
IllegalThreadStateException()
InterruptedIOException()

Since it is not recommended to start process from EJB,pls suggest an alternate 
solution to it.

Regards,
Mamta


<a 
href="http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3827363#3827363";>View 
the original post</a>

<a 
href="http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3827363>Reply 
to the post</a>


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to