Win a copy of Penetration Testing Basics this week in the Security forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Regarding using Session beans to make CGI Call for doing IO operation

Mohammed Ajmal
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

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("" + "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.

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic