Java EE 5: Need to process a file by calling a native (long running) application


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 8 of 8

Thread: Java EE 5: Need to process a file by calling a native (long running) application

  1. #1
    Join Date
    Jan 2008
    Posts
    9

    Java EE 5: Need to process a file by calling a native (long running) application

    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?

  2. #2
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,666
    Well, lets start with why do you need to call it and what do you expect it to do after you have called it?
    I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    Modifications Required For VB6 Apps To Work On Vista

  3. #3
    Join Date
    Jan 2008
    Posts
    9
    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.

  4. #4
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,666
    Quote Originally Posted by tnektpb
    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.
    Ok, that sounds pretty straightforward. I'm curious about this statement.
    Quote Originally Posted by tnektpb
    I've heard it's bad to call such applications (or perhaps any native application?) directly using a Stateless SessionBean.
    What is bad about it?

    Finally, regardless of what you have heard, have you actually tried, and failed, to call the application directly using a Stateless SessionBean?
    I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    Modifications Required For VB6 Apps To Work On Vista

  5. #5
    Join Date
    Jan 2008
    Posts
    9
    Thank you for your continued help. We haven't tried it yet. :-) It might not only be an issue of whether it's possible without exceptions or not. There's also the question if this is a good approach or not? Perhaps stateless session beans are supposed to execute quickly so they're available to work for other sessions?

  6. #6
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,666
    Well, actually I've never had any issues with Stateless SessionBeans
    I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    Modifications Required For VB6 Apps To Work On Vista

  7. #7
    Join Date
    Jan 2008
    Posts
    9
    We'll do a trail and error. Thanks for your input!

  8. #8
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,666
    Yes, please do. If it is happening to you, then in all likelyhood it will happen to someone else so what you find out could be beneficial to a number of folks.
    I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    Modifications Required For VB6 Apps To Work On Vista

Similar Threads

  1. Problems with NetAddUser
    By Jeff Morgan in forum VB Classic
    Replies: 2
    Last Post: 02-13-2001, 10:49 AM
  2. Problems with NetAddUser
    By Jeff Morgan in forum VB Classic
    Replies: 0
    Last Post: 02-11-2001, 12:54 PM
  3. Replies: 2
    Last Post: 10-18-2000, 10:50 PM
  4. GetGlyphOutline
    By abeji in forum VB Classic
    Replies: 20
    Last Post: 10-13-2000, 12:22 PM
  5. Trying to print a PDF File from VB
    By Kunal Sharma in forum VB Classic
    Replies: 2
    Last Post: 04-25-2000, 03:45 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center