Regarding using Session beans to make CGI Call for doing IO operation
posted 11 years ago
I have an use where EJB will be running on one server and CGI running on some other server. The client requests EJB which services the request by making a call to other server which uses CGI to do file Operation.
I need help regarding the feasibilty of using session beans to make CGI calls and do some file IO operation.
I have to write a session bean which calls a CGI script running on other server. So, I'm planning to use URL class[URL fileCopy = new URL("http://www.nitk.edu/" + "cgi-instruct/test/fileInfo"); URLConnection connection = fileCopy.openConnection();] and open a connection to server ( Apache webserver) and execute the file IO operation.
The file operation is to copy Files whose size range is 50-400 MB. I need information about its disadvantages if any any other alternative of doing this.
So, please let me know your suggestions/comments on the same.