Java Technology Home Page
A-Z Index

Java Developer Connection(SM)
Online Training

Downloads, APIs, Documentation
Java Developer Connection
Tutorials, Tech Articles, Training
Online Support
Community Discussion
News & Events from Everywhere
Products from Everywhere
How Java Technology is Used Worldwide
 

Introduction to CORBA
Magercises

By MageLang Institute

[Short Course| About This Short Course]

These Magercises will give you some initial experience in writing and running simple CORBA applications using the Java™ 2 ORB and VisiBroker for Java technology from Inprise. When you finish these Magercises, you will know the basic steps for designing, compiling, and running CORBA applications using the Java 2 ORB and VisiBroker.

Magercise Outline

About Magercises

A Magercise is a flexible exercise that provides varying levels of help according to the student's needs. Some students may complete the magercise using only the information and the task list in the Magercise body; some may want a few hints (Help); while others may want a step-by-step guide to successful completion (Solution). Since complete solutions are provided in addition to help, students can skip a Magercise (or several) and still be able to complete later Magercises that required the skipped one(s).

The Anatomy of a Magercise

Each Magercise includes a list of any prerequisite Magercises, a list of skeleton code for you to start with, links to necessary API pages, and a text description of the Magercise's educational goal. In addition, buttons link you to the following information:
  • Help: Gives you help or hints on the current Magercise (an annotated solution). For ease of use, the task information is duplicated on the help page with the actual help information indented beneath it.
  • Solution: The <applet> tag and Java™ source resulting in the expected behavior.
  • API Documentation: A link directly to any necessary online API documentation.

Magercise Design Goals

There are three fundamental magercise types that you may encounter:
"Blank screen"
You are confronted with a "blank screen" and you create the entire desired functionality yourself.
Extension
You extend the functionality of an existing, correctly-working program.
Repair
You repair undesirable behavior in an existing program.

To make learning easier, Magercises, where possible, address only the specific technique being taught in that Magercise. Irrelevant, unrelated, and overly complex materials are avoided.

Where possible, Magercises execute via the web. However, Magercises that must access Java features or library elements that could cause security violations are not executed on the web.

Magercises, Introduction to CORBA

Magercises

  1. Run the Simple Stock Example

    This simple Magercise takes you through the steps of running the simple stock server and a client. Basically it tests the installation of your ORB. This Magercise can be completed with either Sun's Java IDL ORB or Inprise's VisiBroker 3.x for the Java platform.

    Educational goal(s):

    • Run a simple CORBA application.
  2. Stock Example

    This Magercise reviews the order of tasks in developing a CORBA application using a minimal example.

    Educational goal(s):

    • Learn to modify, build and run a simple CORBA application.
  3. Dynamic Stock Example

    This Magercise adds dynamic creation of stock objects to the previous stock server.

    Educational goal(s):

    • Learn about factories in a simple CORBA application.
  4. A Message Box

    In this Magercise you will create the implementation class for an IDL interface.

    Educational goal(s):

    • Learn how to write interface implementation classes.
    • Call methods on a distributed object.
    • Throw and catch CORBA User Exceptions

    This Magercise is meant for use with the VisiBroker for Java ORB from Inprise.

  5. Writing Callbacks

    This Magercise shows how to create a pair of distributed objects that communicate with each other as peers.

    Educational goal(s):

    • Write code to instantiate ORB-aware objects.
    • Create callbacks from one distributed object to another.

Copyright © 1998-1999 MageLang Institute. All Rights Reserved.


[ This page was updated: 3-Dec-99 ]

Products & APIs | Developer Connection | Docs & Training | Online Support
Community Discussion | Industry News | Solutions Marketplace | Case Studies
Glossary - Applets - Tutorial - Employment - Business & Licensing - Java Store - Java in the Real World
FAQ | Feedback | Map | A-Z Index
For more information on Java technology
and other software from Sun Microsystems, call:
(800) 786-7638
Outside the U.S. and Canada, dial your country's AT&T Direct Access Number first.
Sun Microsystems, Inc.
Copyright © 1995-99 Sun Microsystems, Inc.
All Rights Reserved. Legal Terms. Privacy Policy.