my dog learned polymorphism*
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes Question about  how to make a html/perl/cgi system available to web and app??? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "Question about  how to make a html/perl/cgi system available to web and app???" Watch "Question about  how to make a html/perl/cgi system available to web and app???" New topic
Author

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

Eduardo Rodrigues
Ranch Hand

Joined: Jul 01, 2003
Posts: 199
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<br />SCJP 1.4/5.0 SCWCD 1.3/1.4, SCBCD 1.3, SCMAD, SCEA<br />IBM 484 & 486<br />Belo Horizonte<br />Minas Gerais<br />Brasil
Eduardo Rodrigues
Ranch Hand

Joined: Jul 01, 2003
Posts: 199
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

Joined: Jul 01, 2003
Posts: 199
Come on people, help me in this issue!
Thanks
Dhanush Dharsh
Ranch Hand

Joined: Oct 30, 2000
Posts: 33
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

Joined: Jul 01, 2003
Posts: 199
Thank you very much...
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Question about how to make a html/perl/cgi system available to web and app???
 
Similar Threads
html screen scrapping
Screen Scrapping Problem!
Java Developer (Denver) Looking for Entry-Mid Level
Webpage Scrapping in Java
Part 2 and 3 91 %