GeeCON Prague 2014*
The moose likes EJB and other Java EE Technologies and the fly likes Need to process a file using a native long running application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Need to process a file using a native long running application" Watch "Need to process a file using a native long running application" New topic
Author

Need to process a file using a native long running application

Kenneth Gustafsson
Ranch Hand

Joined: Jan 10, 2008
Posts: 40
Hi,

I have a native application which I need to call when the user presses a button in my web application.

This application will take a while to finish and I've heard it's bad to call such applications (or perhaps any native application?) directly using a Stateless SessionBean.

How do you propose that I attack this problem?
Roger Chung-Wee
Ranch Hand

Joined: Sep 29, 2002
Posts: 1683
Is your web application reading a file?


SCJP 1.4, SCWCD 1.3, SCBCD 1.3
Kenneth Gustafsson
Ranch Hand

Joined: Jan 10, 2008
Posts: 40
The button is pushed when the user wants to download a series of MP3 files packaged into an ISO-file. We need to package the MP3-files into an ISO archive when the user wants the files. The packaging will take ca 2 minutes.

So it involves file reading as well as calling a native application.
Roger Chung-Wee
Ranch Hand

Joined: Sep 29, 2002
Posts: 1683
OK, so having processed the files, do you then invoke the EJB? And what are the parameter and return types of the EJB?
 
GeeCON Prague 2014
 
subject: Need to process a file using a native long running application