public class MojCons extends CosEventComm.PushConsumerPOA { public org.omg.CORBA.ORB orb; public org.omg.DynamicAny.DynAnyFactory daf; public void push (org.omg.CORBA.Any data) throws CosEventComm.Disconnected { System.out.println("push, "+data.toString()+", "+data.type().toString()); try { // ten kod zaklada ze any to "sekwencja long-ow" ... org.omg.DynamicAny.DynAny da1= daf.create_dyn_any(data); System.out.println("push2, "+da1.get_long()); while(da1.next()) System.out.println("push2, "+da1.get_long()); } catch (Exception e) {} } public void disconnect_push_consumer () { System.out.println("disconnect_push_consumer"); } }