Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question about how to make a html/perl/cgi system available to web and app???

 
Eduardo Rodrigues
Ranch Hand
Posts: 199
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys!
I have the following scenario:
- A web system written in perl/cgi/html/RDBMS (lets call this WEBAPP X)
- A requirement to make this system available by web and application (java)...
- Can't rewrite the web system (WEBAPP X)...
What's the best way to complete this requirement???
I was thinking in something like that:
----------------------
| CLIENT WEB BROWSER |
----------------------
|
|
HTTP
|
|
-------------------
| J2EE WEB SERVER |
-------------------
|
|
------------------
|J2EE APP SERVER |----<SCREEN SCRAPPING>----HTTP----| WEBAPP X |
------------------
|
|
|
RMI
-----------| JAVA APP|

Explaining: It's like the J2EE APP Server will have a SCREEN SCRAPPING tool , that parse the HTML generated by the WEBAPP X for response, and make request to CGI.
The browser client request the J2EE web server that request the J2EE app server that parser the HTML generated by the CGI/PERL/RDBMS.
The same from the JAVA APP but the acess is made direct on the J2EE APP SERVER by RMI...
Is that correct??? Any options???
Many, many thanks for everyone...
Sorry for the long question....
Please, any help will be very appreciated...
[ April 22, 2004: Message edited by: Eduardo Rodrigues ]
 
Eduardo Rodrigues
Ranch Hand
Posts: 199
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe I'm thinking in use a EJB stateless to make the request to the web app (CGI/perl/HTML) and parse the response...
The APP will use this EJB directly while the the WEB BROWSER makes the request to the J2EE WEB SERVER (container for servlets) that makes the request to the same EJB in the J2EE APP SERVER...
Please, any help???
 
Eduardo Rodrigues
Ranch Hand
Posts: 199
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Come on people, help me in this issue!
Thanks
 
Dhanush Dharsh
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Eduardo,
I dont think this is a bad approach and cant think about a better approach. In fact I had suggested and implemented the same thing in one of my earlier assignemnts and till date there was no issues reported by the client regarding the basic service level requirements.
-Dhanush.
 
Eduardo Rodrigues
Ranch Hand
Posts: 199
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic