<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.zcubes.com/index.php?action=history&amp;feed=atom&amp;title=Yurttas%2FPL%2FOOL%2FJava%2FF%2F08%2F01%2F01%2F00%2FPhoneBookRMIServer00.java</id>
	<title>Yurttas/PL/OOL/Java/F/08/01/01/00/PhoneBookRMIServer00.java - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.zcubes.com/index.php?action=history&amp;feed=atom&amp;title=Yurttas%2FPL%2FOOL%2FJava%2FF%2F08%2F01%2F01%2F00%2FPhoneBookRMIServer00.java"/>
	<link rel="alternate" type="text/html" href="http://wiki.zcubes.com/index.php?title=Yurttas/PL/OOL/Java/F/08/01/01/00/PhoneBookRMIServer00.java&amp;action=history"/>
	<updated>2026-05-18T18:07:17Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.2</generator>
	<entry>
		<id>http://wiki.zcubes.com/index.php?title=Yurttas/PL/OOL/Java/F/08/01/01/00/PhoneBookRMIServer00.java&amp;diff=178723&amp;oldid=prev</id>
		<title>MassBot1: Created page with &quot;&lt;syntaxhighlight lang=&quot;java&quot; line start=&quot;1&quot; enclose=&quot;div&quot;&gt;/**  *  Copyright(C) 1999  *  All Rights Reserved. Salih Yurttas, ZCubes, BitsOfCode Software Systems, Inc..  *  *  P...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.zcubes.com/index.php?title=Yurttas/PL/OOL/Java/F/08/01/01/00/PhoneBookRMIServer00.java&amp;diff=178723&amp;oldid=prev"/>
		<updated>2013-11-07T21:04:02Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;syntaxhighlight lang=&amp;quot;java&amp;quot; line start=&amp;quot;1&amp;quot; enclose=&amp;quot;div&amp;quot;&amp;gt;/**  *  Copyright(C) 1999  *  All Rights Reserved. Salih Yurttas, ZCubes, BitsOfCode Software Systems, Inc..  *  *  P...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&amp;quot;java&amp;quot; line start=&amp;quot;1&amp;quot; enclose=&amp;quot;div&amp;quot;&amp;gt;/**&lt;br /&gt;
 *  Copyright(C) 1999&lt;br /&gt;
 *  All Rights Reserved. Salih Yurttas, ZCubes, BitsOfCode Software Systems, Inc..&lt;br /&gt;
 *&lt;br /&gt;
 *  Permission to use, copy, modify, and distribute this&lt;br /&gt;
 *  software and its documentation for EDUCATIONAL purposes&lt;br /&gt;
 *  and without fee is hereby granted provided that this&lt;br /&gt;
 *  copyright notice appears in all copies.&lt;br /&gt;
 *&lt;br /&gt;
 *  @date   : July 1, 1999.&lt;br /&gt;
 *  @author : Salih Yurttas.&lt;br /&gt;
 */&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
import java.rmi.*;&lt;br /&gt;
import java.rmi.server.*;&lt;br /&gt;
&lt;br /&gt;
import java.net.*;&lt;br /&gt;
&lt;br /&gt;
public class PhoneBookRMIServer00 extends UnicastRemoteObject&lt;br /&gt;
                                  implements PhoneBookRMIServerInterface00 {&lt;br /&gt;
&lt;br /&gt;
  private static final int N = 256;&lt;br /&gt;
&lt;br /&gt;
  private static String[] name = new String[N];&lt;br /&gt;
  private static String[] phone = new String[N];&lt;br /&gt;
  private int count = 0;&lt;br /&gt;
&lt;br /&gt;
  public PhoneBookRMIServer00(final String filename)&lt;br /&gt;
    throws Exception&lt;br /&gt;
  {&lt;br /&gt;
    super();&lt;br /&gt;
    PhoneBookFileIO pBFIO = new PhoneBookFileIO();&lt;br /&gt;
    count = pBFIO.namePhoneFileInput(filename,&lt;br /&gt;
                                     name,&lt;br /&gt;
                                     phone);&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
  public String[] getNames() {&lt;br /&gt;
    return name;&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
  public String[] getPhones() {&lt;br /&gt;
    return phone;&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
  public static void main(String args[]) {&lt;br /&gt;
    System.out.println(&amp;quot;\nInstalling security manager . . . &amp;quot;);&lt;br /&gt;
&lt;br /&gt;
    if(System.getSecurityManager()==null)&lt;br /&gt;
      System.setSecurityManager(new RMISecurityManager());&lt;br /&gt;
&lt;br /&gt;
    try {&lt;br /&gt;
      System.out.println(&amp;quot;\nBinding server . . . &amp;quot;);&lt;br /&gt;
&lt;br /&gt;
      PhoneBookRMIServer00 server = new PhoneBookRMIServer00(args[0]);&lt;br /&gt;
&lt;br /&gt;
      String hostname = InetAddress.getLocalHost().getHostName();&lt;br /&gt;
&lt;br /&gt;
      System.out.println(&amp;quot;Hostname is &amp;quot;+hostname+&amp;quot;\n&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
      Naming.rebind(&amp;quot;//localhost/PhoneBookRMIServer00&amp;quot;,server);&lt;br /&gt;
    }&lt;br /&gt;
    catch(Exception e) {&lt;br /&gt;
      e.printStackTrace(); &lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    System.out.println(&amp;quot;\nReady!&amp;quot;);&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>MassBot1</name></author>
	</entry>
</feed>