Java PrimerRMI Over IIOPWhen the Java and CORBA Worlds Collide

Java Primer
RMI Over IIOP
When the Java and CORBA Worlds Collide

Salih Ergül
Listing 3. Implementation of an InternetFax server.

package fax.iiop;

import javax.naming.*;
import fax.*;

public class InternetFaxServer {
  public static void main(String[] args) {
    try {
    InternetFax faxObj = new CanonInternetFax();

    // Get the root naming context
    Context context = new InitialContext ();

    // Bind the fax object using JNDI
    context.rebind ("CanonInternetFaxServer", faxObj);

    } catch (Exception e) {
                    e.printStackTrace();
    }
  }
}

Featured

Upcoming Events

AppTrends

Sign up for our newsletter.

I agree to this site's Privacy Policy.