synchronized public static org.omg.CORBA.TypeCode type () { if (__typeCode == null) { __typeCode = org.omg.CORBA.ORB.init ().create_interface_tc (org.omg.CosTransactions.TransactionFactoryHelper.id (), "TransactionFactory"); } return __typeCode; }
synchronized public static org.omg.CORBA.TypeCode type () { if (__typeCode == null) { __typeCode = org.omg.CORBA.ORB.init ().create_interface_tc (org.omg.CosTransactions.TransactionFactoryHelper.id (), "TransactionFactory"); } return __typeCode; }
public static org.omg.CosTransactions.TransactionFactory narrow (org.omg.CORBA.Object obj) { if (obj == null) return null; else if (obj instanceof org.omg.CosTransactions.TransactionFactory) return (org.omg.CosTransactions.TransactionFactory)obj; else if (!obj._is_a (id ())) throw new org.omg.CORBA.BAD_PARAM (); else { org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate (); org.omg.CosTransactions._TransactionFactoryStub stub = new org.omg.CosTransactions._TransactionFactoryStub (); stub._set_delegate(delegate); return stub; } }
public static org.omg.CosTransactions.TransactionFactory narrow (org.omg.CORBA.Object obj) { if (obj == null) return null; else if (obj instanceof org.omg.CosTransactions.TransactionFactory) return (org.omg.CosTransactions.TransactionFactory)obj; else if (!obj._is_a (id ())) throw new org.omg.CORBA.BAD_PARAM (); else { org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate (); org.omg.CosTransactions._TransactionFactoryStub stub = new org.omg.CosTransactions._TransactionFactoryStub (); stub._set_delegate(delegate); return stub; } }
/**Request the transaction service to stop any further transactional activity. * * @param immediate Indicates whether to ignore running transactions. * * @return * * @see */ public static void shutdown( boolean immediate ) { // Remove the admin and factory objects from the naming service. if( namingContext != null ) try { NameComponent nc = new NameComponent(TransactionFactoryHelper.id(),""); NameComponent path[] = {nc}; namingContext.unbind(path); namingContext = null; } catch( Exception exc ) {} // Inform the local TransactionFactory and CurrentImpl classes that no more // transactional activity may occur. TransactionFactoryImpl.deactivate(); CurrentImpl.deactivate(); // Shut down the basic transaction services. currentInstance.shutdown(immediate); // Discard the factory and current instances. currentInstance = null; factoryInstance = null; //adminInstance = null; active = false; }
NameComponent nc = new NameComponent(TransactionFactoryHelper.id(), ""); NameComponent path[] = { nc }; namingContext.rebind(path, thisRef);
NameComponent nc = new NameComponent(TransactionFactoryHelper.id(),""); NameComponent path[] = {nc}; namingContext.rebind(path,factory);