aspose file tools*
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes How Java Appl comunicate with CGI/Perl script Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "How Java Appl comunicate with CGI/Perl script" Watch "How Java Appl comunicate with CGI/Perl script" New topic
Author

How Java Appl comunicate with CGI/Perl script

shreyas patel
Greenhorn

Joined: Sep 02, 2004
Posts: 7
Frequent Flyer Subsystem is written in CGI/Perl. And FBN do not want to re-write it.
I understand that Web client can directly send request to CGI/Perl script.
But The question is how Java Application Client talk to CGI/Perl script?
calvin zhu
Ranch Hand

Joined: Mar 18, 2002
Posts: 54
java.net.HttpURLConnection


SCEA, SCJD, SCWCD, SCBCD, SCJP<br />IBM WebSphere Portal certification
shreyas patel
Greenhorn

Joined: Sep 02, 2004
Posts: 7
Can you please explain in detail.

Also I wanted to know whether to call CGI/Perl script from Java Application Client is a good practice?
If not what is the alternative?
calvin zhu
Ranch Hand

Joined: Mar 18, 2002
Posts: 54
Just do a google search u will find out how to use this class.
Ramon Gill
Ranch Hand

Joined: May 15, 2003
Posts: 344
Why not use connector's?

Ray
Parag Doshi
Ranch Hand

Joined: Jun 29, 2004
Posts: 317
Originally posted by Ramon Gill:
Why not use connector's?

Ray


Ray,
Can you elaborate on it? How can we use connectors if we are not able to change any part of the CGI system? Am I missing something?

Parag
Annie Zhang
Ranch Hand

Joined: Sep 08, 2004
Posts: 31
Even though we may have the source code of FFM, I am wondering if using screen scraper is also a good alternative. I assume the interface of FFM is quite stable.
H. Hafer
Ranch Hand

Joined: Aug 23, 2004
Posts: 108
Hi folks,

just for the records: why should i know the API for interfacing FFM? It should be enough to know the principle, and that's clear readible in the requirements. I don't believe, we're supposed to provide a detailed interaction with the FFM - that would be a job for the designer. Am I wrong here?

thanks,
Harbo
Annie Zhang
Ranch Hand

Joined: Sep 08, 2004
Posts: 31
I am sorry the "interface of FFM" is misunderstood to be the API. I meant GUI. That is why makes it a good candidate of screen scraper. I don't care about its API either.
calvin zhu
Ranch Hand

Joined: Mar 18, 2002
Posts: 54
Originally posted by Parag Doshi:


Ray,
Can you elaborate on it? How can we use connectors if we are not able to change any part of the CGI system? Am I missing something?

Parag


Screen scraper, just like Annie said. Passing 1st exam, I'm sure you know the way, right?
Parag Doshi
Ranch Hand

Joined: Jun 29, 2004
Posts: 317
Originally posted by calvin zhu:


Screen scraper, just like Annie said. Passing 1st exam, I'm sure you know the way, right?


I thought Ray was talking abt JCA (connector adapters) rather than screen scrapers. Screen scrapers don't sound like a good idea for the CGI app..its already web enabled, why would I need to circumvent it and go for the mainframe screens? HTTPConnection sounds like a simpler alternative.

Parag
calvin zhu
Ranch Hand

Joined: Mar 18, 2002
Posts: 54
Parag, I would think using here HTTPConnection is screen scrapers -- without changing any code on destination and form a http string to emulate the GUI's result. Right?
James Wang
Ranch Hand

Joined: Sep 04, 2003
Posts: 102
calvin,

I think you are right, I adopt this method too. if I am wrong, pls help me.


James<br /> <br />SCJP,SCWCD,SCBCD,SCDJWS,SCEA
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How Java Appl comunicate with CGI/Perl script