• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

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

 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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("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.

Thanks.
reply
    Bookmark Topic Watch Topic
  • New Topic