🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: aus.computers.java
Article #266

Re: Interfacing Delphi with Java RMI?

#266
From: Stephan Eggermont
Date: Wed, 13 Mar 2002 13:18
38 lines
2599 bytes
In comp.lang.pascal.delphi.misc Anthony Lee <al012@energex.com.au> wrote:
> We have a delphi client program at work that is required
> to access a server machine. Currently it is using TCP/IP
> port and I thought this rather clumsy and not very extensible.

Well, there I am of a different opinion. 

> The server machine does have java installed although the
> server program itself is written in C. 

So you are coupling a C program to a delphi one. Then the
correct level to do this is TCP/IP. You might be able to
provide a higher level stack on both sides, but for simple
data transfer this is adequate.

> I was wondering
> whether it is possible for Delphi to talk a Java via RMI?

Of course it is possible. RMI just uses a TCP/IP port to
move serialized java objects. Does it make sense? Definitely
not. First of all you'd have to move the server from c to
java. This means a complete redesign. If you don't redesign,
you'll lose at least a factor of 10 in speed. Then you'd 
have to write a parser in delphi for RMI, and translate to
the equivalent delphi code. In the end, you'd have a very
clumsy and not very extensible system. Did I tell you about
the speed of RMI? 

> Or do I have to go to full CORBA? CORBA is problem for me
> as I believe we don't have ORB installed.

No, you don't. There is nothing clumsy and unextensible 
about TCP/IP ports. You should just standardise what you
send over them, and might want to introduce a (custom)
broker.

Stephan Eggermont
Sensus, systems that make sense 
Technical Details
Message-ID: <a6njio$g0v$1@news.tue.nl>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news.gv.tsc.tdk.com!news.iac.net!newsgate.cistron.nl!fr.clara.net!heighliner.fr.clara.net!proxad.net!newshub.bart.net!news.tue.nl!not-for-mail
References: <3C8C3DDB.8E5DBB68@energex.com.au>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10a146,a84b8175666db931
X-Google-Attributes: gid10a146,public
X-Google-Thread: 10baee,a84b8175666db931
X-Google-Attributes: gid10baee,public
X-Google-Thread: 10d6db,a84b8175666db931
X-Google-Attributes: gid10d6db,public
X-Google-ArrivalTime: 2002-03-13 05:27:59 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news.gv.tsc.tdk.com!news.iac.net!newsgate.cistron.nl!fr.clara.net!heighliner.fr.clara.net!proxad.net!newshub.bart.net!news.tue.nl!not-for-mail
From: Stephan Eggermont <stephan@stack.nl>
Newsgroups: aus.computers.java,comp.lang.java.programmer,comp.lang.pascal.delphi.misc
Subject: Re: Interfacing Delphi with Java RMI?
Date: 13 Mar 2002 13:18:16 GMT
Organization: Eindhoven University of Technology, The Netherlands
Lines: 38
Message-ID: <a6njio$g0v$1@news.tue.nl>
References: <3C8C3DDB.8E5DBB68@energex.com.au>
NNTP-Posting-Host: snail.stack.nl
User-Agent: tin/1.4.4-20000803 ("Vet for the Insane") (UNIX) (FreeBSD/4.5-STABLE (i386))