try
{
ORBInterface.initORB(args, null);
OAInterface.initOA();
CounterImpl0001 counterImpl = new CounterImpl0001();
CounterPOATie servant = new CounterPOATie(counterImpl);
OAInterface.objectIsReady(servant);
Counter counter = CounterHelper.narrow(OAInterface.corbaReference(servant));