Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Visual Foxpro and Java

Status
Not open for further replies.

gol5

Programmer
Oct 15, 2004
1
CA
Hi all,

I just have a quick question. I have a stand alone Visual Foxpro project, which I am converting it to a web application and I am using java servlets to do that. I was wondering can I have a java class that after getting the info from the servlet class "passes the info to foxpro class" or "calls a method from a foxpro class"?

I appreciate your reply,
Thanks.
 
You can create a VFP COM server. See thread1253-927540

Brian
 
Way back when MS implemented a JVM for Windows (pre-lawsuit), they added a COM wrapper class so that COM objects (such as VFP) could interop with Java objects.

Then Sun sued and the MS JVM got pulled.

I'm sure there must be a way to do this, but I don't know what's currently out there. If nothing else, both languages are perfectly capable of http send/receive.
 
With DOM or Sax parsers you could send information back and forth between java and vfp in XML format. I've done it before with good results (java front end and VFP data server app as a backend). For that matter, depending on your needs, you could just come up with your own scheme for the data to be sent back and forth between the two and forego the overhead you'll get with XML. If VFP process receives "XYZ" on port 8089 then do this, if it receives "ABC" then do something else, then send "JKL" back to java as a response. I am talking about two seperate processes of course, not an in-process server.

As danfreeman said, MSJVM is on the way out and it's life will end on December 31, 2007 per MS's agreement with SUN.

boyd.gif

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top