package example.corba; import org.omg.CosNaming.*; /** * This class implements the server side of the example. * * $Id: StockDispenserImpl.java,v 1.1 1999/01/25 21:22:03 scrappy Exp $ */ public class StockDispenserImpl extends stock._StockDispenserImplBase { private int maxObjects = 10; private int numObjects = 0; private StockItemStatus[] stock = new StockItemStatus[maxObjects]; public StockDispenserImpl(String[] args,String name,int num) { super(); try { // get reference to orb org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init(args,null); // prestart num objects if(num>=maxObjects) num=maxObjects; numObjects = num; for(int i=0;i