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






footer




 

 

 

 

 Home | About Us | Network | Services | Support | FAQ | Control Panel | Order Online | Sitemap | Contact

java web hosting

 

Visionwebhosting.net Business web hosting division of Web Design Plus. All rights reserved