27.04.2013 Views

330 Java Tips.pdf - FTP Server

330 Java Tips.pdf - FTP Server

330 Java Tips.pdf - FTP Server

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Distributed systems<br />

possible without a netscape package. Is that true? Is there a simple implementation<br />

of the same functionality (source code) which I could incorporate in my applet?<br />

Answer: Those Netscape packages are part of the current VM of both Microsoft IE 4+<br />

and Netscape 4+. So, by adding the MAYSCRIPT tag to your Applet declaration, in<br />

the <strong>Java</strong> code you can obtain a handle to the document and call functions in it.<br />

by Tom Hall<br />

Q: I'm researching methods by which one JVM can interact with another JVM,<br />

which is running on the same machine.<br />

I know that there are various network models, which can be applied if a JVM needs<br />

to talk to another one across a network, but in addition to these (which could I guess<br />

be applied to JVMs on the same machine) I wondered if you knew of a system of<br />

JVM communication that requires less system resources, where the JVMs are both<br />

running on the same system.<br />

Answer: CORBA, RMI, HTTP, sockets....<br />

But if you have no TCP/IP stack on your platform, so for Windows it could be<br />

clipboard...<br />

-by<br />

dmitry<br />

Q: I have a question about sending a reference to the object via the socket...<br />

I have a question about sending a reference to the object via the socket. Two threads<br />

are communicating via sockets running on the same machine. I don't need to send<br />

the whole object, but I need to send just<br />

a reference.<br />

Does anyone knows how to do that?<br />

Answer: Reference to an Object? A reference is only valid within the same memory<br />

space! If you want to be able to invoke methods on an object remotely, then you will<br />

need to use a remote technology like RMI, CORBA, or some such.<br />

-by<br />

Bret Hansen<br />

Pick your topics, and we'll send you great deals, free<br />

information, and special offers by email from Focalex.<br />

IT Professional General Computer Design and Graphics Linux Freeware/Shareware<br />

Games Intranet Computer Hardware Web Design Computer Software<br />

UNIX Web Software Windows Software Personal Finance Programming Software<br />

<strong>Server</strong>s C/C++ Powerbuilder Perl XML<br />

<strong>Java</strong> SQL Design/Graphics Utilities Handhelds<br />

Get FREE STUFF, special offers and information on the <strong>Java</strong>, C/C++,<br />

SQL, XML and another languages programming topics YOU want to hear<br />

about delivered to your inbox!<br />

Unix, Windows Software/HardWare, Handhelds - just pick YOUR<br />

interests and start getting the stuff you want today. The best<br />

free info and deals on computers, software and much more by email.<br />

SUBSCRIBE for FREE HERE<br />

file:///F|/350_t/350_tips/distributed_systems.htm (3 of 4) [2002-02-27 21:18:03]

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!