discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can we use Jigs


From: Nicola Pero
Subject: Re: Can we use Jigs
Date: Mon, 10 Sep 2001 12:30:26 +0100 (BST)

Hi,

> Hi,
> 
> Can jigs be used as a communication medium between two ObjectiveC
> components?
> To be Precise can jigs replace the existing DO communication between two
> ObjectiveC components?

I'm not sure I understood what you want to do... :-)

DO (distributed objects) is mainly used to have objects in different
processes/machines talk as if they were in the same process. (also useful
with different threads).

JIGS allows you to talk to Java objects from Objective-C and viceversa,
but all in the same process.

Perhaps you mean you want to use Java's RMI instead of DO to talk between
objects in different processes, and you want to access Java's RMI from
Objective-C by using JIGS.

GNUstep DO are more dynamical and flexible than Java's RMI - you don't
have to generate stubs or stuff like that - everything just works out of
the box at runtime - it's because Objective-C is more flexible than Java.

But, if you want to interface a GNUstep ObjC app with a Java's RMI app, it
might be useful and interesting to try using Java's RMI from ObjC.

I never experimented with that, please let me know if you do :-)

I suppose it might work to access a remote Java's RMI server from
Objective-C using JIGS by simply getting the java object in ObjC, and
accessing it as if it were a local java object - Java's RMI should do the
rest.  NB: `easily' should not be taken too literally as using Java from
Objective-C works quite well but it's quite cumbersome and not well
documented yet - anyway accessing a remote Java RMI server should not be
any more difficult than accessing a local Java object.

Perhaps you might want to declare manually an Objective-C protocol which
mirrors the Java interface implemented by the remote server to make sure
it's compiled right ...

Exposing ObjC stuff to remote Java processes using Java RMI is going to be
less attractive, you probably want to write manually a Java RMI server
which internally calls methods of ObjC objects exposed to Java - that will
certainly work.

There might be ways to add better support in JIGS for these games but I've
never experimented with them.  If you have suggestions, they are welcome.

> If yes , Is there any information on this is avialable on the Net???

no




reply via email to

[Prev in Thread] Current Thread [Next in Thread]