- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi: i developed an program (fuzzy search string) thas work fine (it is a stand-alone application) . I need to conver it in system tht will be able to run in a multiuser enviromen i mean on de web). I wonder How can I do It in fortran or iwill berequired to migrate to other language?
1 Solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - cruzdelsur
I understand that JSP create one thread by each requirement. The .exe will get a string from the user and display the result, I dont know how and who manage the transaction each thread need an own copy of the .exe? Must I lock and unlock the records of the file that is read to give the answers?
That's correct, as far as threads go. The Servlet (JSP stands for Java Server Pages and is used for presentation layer, creating HTML tags, and is, in fact compiled to Servlet behind the scenes) creates a new thread for each request (as opposite to stone age CGI, where new process was created instead). It means that you can share data between servlets (you have a request, session, or application (Servlet Context) sharing options to choose from). This lets you create a (shared, accessed by synchronized method) job queue, keeping track of submitted jobs, and executing single exe, locking access etc.
This, however, has nothing to do with your Fortran application, except that it will run at the end of "chain" and you will face the choice whether you should turn it into dll, or try to run as exe and use pipes (or any other approach) to communicate with it.
I have to admit I don't know how ASP. NET is dealing with such stuff, but others can comment on that.
A.
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - cruzdelsur
I need to conver it in system tht will be able to run in a multiuser enviromen i mean on de web). I wonder How can I do It in fortran or iwill berequired to migrate to other language?
what kind of multi-user environment you have in mind? A web application, something else? More info is needed, I'm afraid, to be able to suggest something reasonable.
If you're thinking about a web application (data submitted and displayed via web browser) you need a web server (Tomcat, for instance, IIS if you want to stay with MS) and, say, Servlet-based web application (many other technologies available). If JSP/Servlet, it means Java, and calling Fortran from it is a typical mixed-language programming issue (if you need to call your exe, ProcessBuilder is your friend), you have some examples provided in your install directory. As far as I can remember, I saw not so long ago some fuzzy string search libraries in Java (but you most probably require some special algorithm).
A.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - ArturGuzik
Hi,
what kind of multi-user environment you have in mind? A web application, something else? More info is needed, I'm afraid, to be able to suggest something reasonable.
If you're thinking about a web application (data submitted and displayed via web browser) you need a web server (Tomcat, for instance, IIS if you want to stay with MS) and, say, Servlet-based web application (many other technologies available). If JSP/Servlet, it means Java, and calling Fortran from it is a typical mixed-language programming issue (if you need to call your exe, ProcessBuilder is your friend), you have some examples provided in your install directory. As far as I can remember, I saw not so long ago some fuzzy string search libraries in Java (but you most probably require some special algorithm).
A.
Hi: Ok as you said Let us suppose I need a web application (data submitted and displayed via web browser, but due to the high memory requirements my .exe have to run in a server maybe other than the web/server). Under this condition could be JSP the best option? I understand that JSP create one thread by each requirement. The .exe will get a string from the user and display the result, I dont know how and who manage the transaction each thread need an own copy of the .exe? Must I lock and unlock the records of the file that is read to give the answers?
what kind of multi-user environment you have in mind? A web application, something else? More info is needed, I'm afraid, to be able to suggest something reasonable.
If you're thinking about a web application (data submitted and displayed via web browser) you need a web server (Tomcat, for instance, IIS if you want to stay with MS) and, say, Servlet-based web application (many other technologies available). If JSP/Servlet, it means Java, and calling Fortran from it is a typical mixed-language programming issue (if you need to call your exe, ProcessBuilder is your friend), you have some examples provided in your install directory. As far as I can remember, I saw not so long ago some fuzzy string search libraries in Java (but you most probably require some special algorithm).
A.
Hi: Ok as you said Let us suppose I need a web application (data submitted and displayed via web browser, but due to the high memory requirements my .exe have to run in a server maybe other than the web/server). Under this condition could be JSP the best option? I understand that JSP create one thread by each requirement. The .exe will get a string from the user and display the result, I dont know how and who manage the transaction each thread need an own copy of the .exe? Must I lock and unlock the records of the file that is read to give the answers?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - cruzdelsur
I understand that JSP create one thread by each requirement. The .exe will get a string from the user and display the result, I dont know how and who manage the transaction each thread need an own copy of the .exe? Must I lock and unlock the records of the file that is read to give the answers?
That's correct, as far as threads go. The Servlet (JSP stands for Java Server Pages and is used for presentation layer, creating HTML tags, and is, in fact compiled to Servlet behind the scenes) creates a new thread for each request (as opposite to stone age CGI, where new process was created instead). It means that you can share data between servlets (you have a request, session, or application (Servlet Context) sharing options to choose from). This lets you create a (shared, accessed by synchronized method) job queue, keeping track of submitted jobs, and executing single exe, locking access etc.
This, however, has nothing to do with your Fortran application, except that it will run at the end of "chain" and you will face the choice whether you should turn it into dll, or try to run as exe and use pipes (or any other approach) to communicate with it.
I have to admit I don't know how ASP. NET is dealing with such stuff, but others can comment on that.
A.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page