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 />
Visit us here and you will find<br />
much more tips!<br />
Receive our newsletter with new tips! Almost 6,000 subscribers (by June 2001) can not be<br />
wrong! They read our tips every week! To subscribe to The <strong>Java</strong> FAQ Daily send empty e-mail to:<br />
javafaq-tips-subscribe@topica.com or visit at:<br />
http://www.topica.com/lists/javafaq-tips/<br />
Distributed systems<br />
Q: Has anyone ever tried anything like this or am I asking for trouble trying to<br />
write a program like this?....<br />
I plan to use JBuilder to create a <strong>Java</strong> GUI that will use Perl to invoke system calls.<br />
The GUI will be run in Windows(NT) while the system calls will be invoked in Unix.<br />
Answer: Sure, why not? Seems to me it should be quite doable. Use <strong>Java</strong> code to<br />
build the GUI and<br />
cross the network (for instance using RMI), then invoke the Perl interpreter as an<br />
external process, or possibly use JPerl (see<br />
http://www.perl.com/CPAN-local/authors/id/S/SB/SBALA/ ) from there. Or use a<br />
different distributed objects architecture to connect <strong>Java</strong> and Perl objects over the<br />
network...<br />
About serialization...<br />
If I have a class that implements the Serializable interface, but it has member<br />
variables which reference objects that do not implement the Serializable interface, it<br />
appears that I can't serialize an instance of the class. I keep getting:<br />
java.io.NotSerializableException<br />
for one of the objects referenced by a member variable.<br />
Am I correct, or am I just missing something. Also, if anyone knows a work-around to<br />
serialize non-serializable objects, I'd like to hear about it. Unfortunately, I have no<br />
control over the classes I'm trying to serialize, so I tried putting a serializable wrapper<br />
around them , but that didn't work.<br />
Answer: Do you really need to serialize those members of your class which aren't<br />
file:///F|/350_t/350_tips/distributed_systems.htm (1 of 4) [2002-02-27 21:18:03]