JavaParty Logo

JavaParty

A distributed companion to Java
Current release 1.9.5

Bernhard Haumacher, Thomas Moschny and Michael Philippsen

Contents
General
 Features
 Requirements
 DownloadNew!
 Mailing ListsNew!
 Setup
 Quick Tour
 Command Reference
 API
Language
 Syntax
 Object Model
 Transparent Threads
 Distributed ThreadsCool!
 RMACool!
 Synchronization
 Object Location
 Migration
 Remote Threads
 Replicated ObjectsCool!
 Multi-Application
Tuning
 Debugging
 uka.transport
 KaRMICool!
 KaRMI API
 Myrinet/GM
 OpenPBS
Examples
displayed pageHello JavaParty
 ObjectModel
 BenchmarksNew!
Other info
 Papers
 Trouble Shooting
 History


See also
 CJ
 Generic Java


Powered by
Apache Ant
SourceForge
Subversion

Hello JavaParty

Source code

/* *************************************************************************** * JavaParty * * Copyright (C) 1996-2002 The JavaParty Team, University of Karlsruhe * * Permission is hereby granted to modify and use this software for research * and teaching purposes. Modification for commercial purposes requires * prior written permission by the author. * * The software, or modifications thereof, may be redistributed only * if this copyright notice stays attached. *****************************************************************************/ package examples; /** Distributed Hello World in JavaParty * * $Revision: 3190 $ * $Date: 2007-03-27 21:49:37 +0200 (Tue, 27 Mar 2007) $ * * @author Bernhard Haumacher <haui@haumacher.de> */ public remote class HelloJP { public void hello() { // Print on the console of the virtual machine where the // object lives System.out.println("Hello JavaParty!"); } public static void main(String[] args) { for (int n = 0; n < 10; n++) { // Create a remote object on some node HelloJP world = new HelloJP(); // Remotely invoke a method world.hello(); } } }


For comments and bug reports please use the JavaParty users mailing list.
Page design & maintenance: Bernhard Haumacher.
Last update: Fri Mar 30 18:46:00 GMT+01:00 2007
Java is a trademark of Sun Microsystems.