//Generated by the IDL-to-C#-compiler MiddCorIdl //Source: C:/Project/Beta_2_x/MinCorNET/DemoJ2EE/Hello/IDL/Hello.idl //Mittwoch, 9. März 2005, 11:36:44 using System; using System.Collections; using Middsol; //Types namespace Hello { namespace Greetings_HomePackage { } namespace Greetings_RemotePackage { } } //Interfaces and Value Factories namespace Hello { public interface Greetings_Home : Greetings_HomeOperations, Middsol.CORBA.Object, Middsol.CORBA.portable.IDLEntity, Middsol.javax.ejb.EJBHome { } public interface Greetings_Remote : Greetings_RemoteOperations, Middsol.CORBA.Object, Middsol.CORBA.portable.IDLEntity, Middsol.javax.ejb.EJBObject { } } //Interface Operations and Value Types namespace Hello { public interface Greetings_HomeOperations: Middsol.javax.ejb.EJBHomeOperations { Greetings_Remote create( ); } public interface Greetings_RemoteOperations: Middsol.javax.ejb.EJBObjectOperations { string hello( string a_arg0 ); } } //Helpers namespace Hello { public class Greetings_HomeHelper { private static string _id = "RMI:Hello.Greetings_Home:0000000000000000"; public static string id() { return _id; } private static Middsol.CORBA.TypeCode _typeCode = null; public static Middsol.CORBA.TypeCode type() { if ( _typeCode==null ) _typeCode = create_type(); return _typeCode; } public static Middsol.CORBA.TypeCode create_type() { Middsol.CORBA.TypeCode typeCode = Middsol.CORBA._ORB.ORB().create_interface_tc( id(), "Greetings_Home" ); return typeCode; } public static void insert( Middsol.CORBA.Any a, Greetings_Home s ) { a.type( type()); write( a.create_output_stream(), s ); } public static Greetings_Home extract( Middsol.CORBA.Any a ) { return read( a.create_input_stream() ); } public static void write( Middsol.CORBA.portable.OutputStream outpStream, Greetings_Home s ) { outpStream.write_Object ((Middsol.CORBA.Object) s); } public static Greetings_Home read( Middsol.CORBA.portable.InputStream inpStream ) { return narrow ( inpStream.read_Object() ); } public static Greetings_Home narrow( Middsol.CORBA.Object obj ) { if( obj == null ) { return null; } if ( obj is Greetings_Home ) { return (Greetings_Home) obj; } if( obj._is_a( id() ) ) { _Greetings_HomeStub stub = new _Greetings_HomeStub(); stub._set_delegate(((Middsol.CORBA.portable.ObjectImpl)obj)._get_delegate()); return stub; } throw new Middsol.CORBA.BAD_PARAM("Narrow failed"); } } namespace Greetings_HomePackage { } public class Greetings_RemoteHelper { private static string _id = "RMI:Hello.Greetings_Remote:0000000000000000"; public static string id() { return _id; } private static Middsol.CORBA.TypeCode _typeCode = null; public static Middsol.CORBA.TypeCode type() { if ( _typeCode==null ) _typeCode = create_type(); return _typeCode; } public static Middsol.CORBA.TypeCode create_type() { Middsol.CORBA.TypeCode typeCode = Middsol.CORBA._ORB.ORB().create_interface_tc( id(), "Greetings_Remote" ); return typeCode; } public static void insert( Middsol.CORBA.Any a, Greetings_Remote s ) { a.type( type()); write( a.create_output_stream(), s ); } public static Greetings_Remote extract( Middsol.CORBA.Any a ) { return read( a.create_input_stream() ); } public static void write( Middsol.CORBA.portable.OutputStream outpStream, Greetings_Remote s ) { outpStream.write_Object ((Middsol.CORBA.Object) s); } public static Greetings_Remote read( Middsol.CORBA.portable.InputStream inpStream ) { return narrow ( inpStream.read_Object() ); } public static Greetings_Remote narrow( Middsol.CORBA.Object obj ) { if( obj == null ) { return null; } if ( obj is Greetings_Remote ) { return (Greetings_Remote) obj; } if( obj._is_a( id() ) ) { _Greetings_RemoteStub stub = new _Greetings_RemoteStub(); stub._set_delegate(((Middsol.CORBA.portable.ObjectImpl)obj)._get_delegate()); return stub; } throw new Middsol.CORBA.BAD_PARAM("Narrow failed"); } } namespace Greetings_RemotePackage { } } //Stubs and Value Default Factories namespace Hello { public class _Greetings_HomeStub : Middsol.CORBA.portable.ObjectImpl, Greetings_Home { private string[] ids = {"RMI:Hello.Greetings_Home:0000000000000000","RMI:javax.ejb.EJBHome:0000000000000000"}; public override string[] _ids() { return ids; } public Greetings_Remote create( ) { Middsol.CORBA.portable.InputStream ins = null; while( true ) { try { Middsol.CORBA.portable.OutputStream outs = _request( "create", true ); ins = _invoke( outs ); Greetings_Remote result = Greetings_RemoteHelper.read( ins ); return result; } catch( Middsol.CORBA.portable.RemarshalException ) { } catch( Middsol.CORBA.portable.ApplicationException ax ) { String id = ax.getId(); throw new Middsol.CORBA.MARSHAL ( id ); } finally { this._releaseReply( ins ); } } } public Middsol.javax.ejb.EJBMetaData EJBMetaData { get { Middsol.CORBA.portable.InputStream ins = null; while( true ) { try { Middsol.CORBA.portable.OutputStream outs = _request( "_get_EJBMetaData", true ); ins = _invoke( outs ); return Middsol.javax.ejb.EJBMetaDataHelper.read( ins ); } catch( Middsol.CORBA.portable.RemarshalException ) { } catch( Middsol.CORBA.portable.ApplicationException ax ) { String id = ax.getId(); throw new Middsol.CORBA.MARSHAL ( id ); } finally { this._releaseReply( ins ); } } } } public Middsol.javax.ejb.HomeHandle homeHandle { get { Middsol.CORBA.portable.InputStream ins = null; while( true ) { try { Middsol.CORBA.portable.OutputStream outs = _request( "_get_homeHandle", true ); ins = _invoke( outs ); return Middsol.javax.ejb.HomeHandleHelper.read( ins ); } catch( Middsol.CORBA.portable.RemarshalException ) { } catch( Middsol.CORBA.portable.ApplicationException ax ) { String id = ax.getId(); throw new Middsol.CORBA.MARSHAL ( id ); } finally { this._releaseReply( ins ); } } } } public void remove__javax_ejb_Handle( Middsol.javax.ejb.Handle a_arg0 ) { Middsol.CORBA.portable.InputStream ins = null; while( true ) { try { Middsol.CORBA.portable.OutputStream outs = _request( "remove__javax_ejb_Handle", true ); Middsol.javax.ejb.HandleHelper.write( outs, a_arg0 ); ins = _invoke( outs ); return; } catch( Middsol.CORBA.portable.RemarshalException ) { } catch( Middsol.CORBA.portable.ApplicationException ax ) { String id = ax.getId(); throw new Middsol.CORBA.MARSHAL ( id ); } finally { this._releaseReply( ins ); } } } public void remove__java_lang_Object( Middsol.CORBA.Any a_arg0 ) { Middsol.CORBA.portable.InputStream ins = null; while( true ) { try { Middsol.CORBA.portable.OutputStream outs = _request( "remove__java_lang_Object", true ); Middsol.java.lang._ObjectHelper.write( outs, a_arg0 ); ins = _invoke( outs ); return; } catch( Middsol.CORBA.portable.RemarshalException ) { } catch( Middsol.CORBA.portable.ApplicationException ax ) { String id = ax.getId(); throw new Middsol.CORBA.MARSHAL ( id ); } finally { this._releaseReply( ins ); } } } } public class _Greetings_RemoteStub : Middsol.CORBA.portable.ObjectImpl, Greetings_Remote { private string[] ids = {"RMI:Hello.Greetings_Remote:0000000000000000","RMI:javax.ejb.EJBObject:0000000000000000"}; public override string[] _ids() { return ids; } public string hello( string a_arg0 ) { Middsol.CORBA.portable.InputStream ins = null; while( true ) { try { Middsol.CORBA.portable.OutputStream outs = _request( "hello", true ); Middsol.CORBA.WStringValueHelper.write( outs, a_arg0 ); ins = _invoke( outs ); string result = Middsol.CORBA.WStringValueHelper.read( ins ); return result; } catch( Middsol.CORBA.portable.RemarshalException ) { } catch( Middsol.CORBA.portable.ApplicationException ax ) { String id = ax.getId(); throw new Middsol.CORBA.MARSHAL ( id ); } finally { this._releaseReply( ins ); } } } public Middsol.javax.ejb.EJBHome EJBHome { get { Middsol.CORBA.portable.InputStream ins = null; while( true ) { try { Middsol.CORBA.portable.OutputStream outs = _request( "_get_EJBHome", true ); ins = _invoke( outs ); return Middsol.javax.ejb.EJBHomeHelper.read( ins ); } catch( Middsol.CORBA.portable.RemarshalException ) { } catch( Middsol.CORBA.portable.ApplicationException ax ) { String id = ax.getId(); throw new Middsol.CORBA.MARSHAL ( id ); } finally { this._releaseReply( ins ); } } } } public Middsol.javax.ejb.Handle handle { get { Middsol.CORBA.portable.InputStream ins = null; while( true ) { try { Middsol.CORBA.portable.OutputStream outs = _request( "_get_handle", true ); ins = _invoke( outs ); return Middsol.javax.ejb.HandleHelper.read( ins ); } catch( Middsol.CORBA.portable.RemarshalException ) { } catch( Middsol.CORBA.portable.ApplicationException ax ) { String id = ax.getId(); throw new Middsol.CORBA.MARSHAL ( id ); } finally { this._releaseReply( ins ); } } } } public Middsol.CORBA.Any primaryKey { get { Middsol.CORBA.portable.InputStream ins = null; while( true ) { try { Middsol.CORBA.portable.OutputStream outs = _request( "_get_primaryKey", true ); ins = _invoke( outs ); return Middsol.java.lang._ObjectHelper.read( ins ); } catch( Middsol.CORBA.portable.RemarshalException ) { } catch( Middsol.CORBA.portable.ApplicationException ax ) { String id = ax.getId(); throw new Middsol.CORBA.MARSHAL ( id ); } finally { this._releaseReply( ins ); } } } } public void remove( ) { Middsol.CORBA.portable.InputStream ins = null; while( true ) { try { Middsol.CORBA.portable.OutputStream outs = _request( "remove", true ); ins = _invoke( outs ); return; } catch( Middsol.CORBA.portable.RemarshalException ) { } catch( Middsol.CORBA.portable.ApplicationException ax ) { String id = ax.getId(); throw new Middsol.CORBA.MARSHAL ( id ); } finally { this._releaseReply( ins ); } } } public bool isIdentical( Middsol.javax.ejb.EJBObject a_arg0 ) { Middsol.CORBA.portable.InputStream ins = null; while( true ) { try { Middsol.CORBA.portable.OutputStream outs = _request( "isIdentical", true ); Middsol.javax.ejb.EJBObjectHelper.write( outs, a_arg0 ); ins = _invoke( outs ); bool result = ins.read_boolean(); return result; } catch( Middsol.CORBA.portable.RemarshalException ) { } catch( Middsol.CORBA.portable.ApplicationException ax ) { String id = ax.getId(); throw new Middsol.CORBA.MARSHAL ( id ); } finally { this._releaseReply( ins ); } } } } } //POA namespace Hello { public abstract class Greetings_HomePOA : Middsol.PortableServer.Servant, Greetings_HomeOperations, Middsol.CORBA.portable.InvokeHandler { private string[] ids = {"RMI:Hello.Greetings_Home:0000000000000000","RMI:javax.ejb.EJBHome:0000000000000000"}; public override string[] _all_interfaces(Middsol.PortableServer.POA poa, byte[] objectId) { return ids; } public Greetings_Home _this() { return Greetings_HomeHelper.narrow( base._this_object( ) ); } public Greetings_Home _this( Middsol.CORBA.ORB orb ) { return Greetings_HomeHelper.narrow( base._this_object( orb ) ); } virtual public Greetings_Remote create( ){ return (Greetings_Remote)(System.Object) null ;} virtual public Middsol.javax.ejb.EJBMetaData EJBMetaData { get{return (Middsol.javax.ejb.EJBMetaData)(System.Object) null;} } virtual public Middsol.javax.ejb.HomeHandle homeHandle { get{return (Middsol.javax.ejb.HomeHandle)(System.Object) null;} } virtual public void remove__javax_ejb_Handle( Middsol.javax.ejb.Handle a_arg0 ){ ;} virtual public void remove__java_lang_Object( Middsol.CORBA.Any a_arg0 ){ ;} public Middsol.CORBA.portable.OutputStream _invoke( string method, Middsol.CORBA.portable.InputStream ins, Middsol.CORBA.portable.ResponseHandler resh ) { Middsol.CORBA.portable.OutputStream outs = null; switch( method ) { case "create": { Greetings_Remote result = this.create( ); outs = resh.createReply(); Greetings_RemoteHelper.write( outs, result ); break; } case "_get_EJBMetaData": { Middsol.javax.ejb.EJBMetaData value = this.EJBMetaData; outs = resh.createReply(); Middsol.javax.ejb.EJBMetaDataHelper.write( outs, value ); break; } case "_get_homeHandle": { Middsol.javax.ejb.HomeHandle value = this.homeHandle; outs = resh.createReply(); Middsol.javax.ejb.HomeHandleHelper.write( outs, value ); break; } case "remove__javax_ejb_Handle": { Middsol.javax.ejb.Handle a_arg0 = Middsol.javax.ejb.HandleHelper.read( ins ); this.remove__javax_ejb_Handle( a_arg0 ); outs = resh.createReply(); break; } case "remove__java_lang_Object": { Middsol.CORBA.Any a_arg0 = Middsol.java.lang._ObjectHelper.read( ins ); this.remove__java_lang_Object( a_arg0 ); outs = resh.createReply(); break; } default: throw new Middsol.CORBA.BAD_OPERATION(); } return outs; } } public abstract class Greetings_RemotePOA : Middsol.PortableServer.Servant, Greetings_RemoteOperations, Middsol.CORBA.portable.InvokeHandler { private string[] ids = {"RMI:Hello.Greetings_Remote:0000000000000000","RMI:javax.ejb.EJBObject:0000000000000000"}; public override string[] _all_interfaces(Middsol.PortableServer.POA poa, byte[] objectId) { return ids; } public Greetings_Remote _this() { return Greetings_RemoteHelper.narrow( base._this_object( ) ); } public Greetings_Remote _this( Middsol.CORBA.ORB orb ) { return Greetings_RemoteHelper.narrow( base._this_object( orb ) ); } virtual public string hello( string a_arg0 ){ return (string)(System.Object) null ;} virtual public Middsol.javax.ejb.EJBHome EJBHome { get{return (Middsol.javax.ejb.EJBHome)(System.Object) null;} } virtual public Middsol.javax.ejb.Handle handle { get{return (Middsol.javax.ejb.Handle)(System.Object) null;} } virtual public Middsol.CORBA.Any primaryKey { get{return (Middsol.CORBA.Any)(System.Object) null;} } virtual public void remove( ){ ;} virtual public bool isIdentical( Middsol.javax.ejb.EJBObject a_arg0 ){ return (bool)(System.Object) null ;} public Middsol.CORBA.portable.OutputStream _invoke( string method, Middsol.CORBA.portable.InputStream ins, Middsol.CORBA.portable.ResponseHandler resh ) { Middsol.CORBA.portable.OutputStream outs = null; switch( method ) { case "hello": { string a_arg0 = Middsol.CORBA.WStringValueHelper.read( ins ); string result = this.hello( a_arg0 ); outs = resh.createReply(); Middsol.CORBA.WStringValueHelper.write( outs, result ); break; } case "_get_EJBHome": { Middsol.javax.ejb.EJBHome value = this.EJBHome; outs = resh.createReply(); Middsol.javax.ejb.EJBHomeHelper.write( outs, value ); break; } case "_get_handle": { Middsol.javax.ejb.Handle value = this.handle; outs = resh.createReply(); Middsol.javax.ejb.HandleHelper.write( outs, value ); break; } case "_get_primaryKey": { Middsol.CORBA.Any value = this.primaryKey; outs = resh.createReply(); Middsol.java.lang._ObjectHelper.write( outs, value ); break; } case "remove": { this.remove( ); outs = resh.createReply(); break; } case "isIdentical": { Middsol.javax.ejb.EJBObject a_arg0 = Middsol.javax.ejb.EJBObjectHelper.read( ins ); bool result = this.isIdentical( a_arg0 ); outs = resh.createReply(); outs.write_boolean( result ); break; } default: throw new Middsol.CORBA.BAD_OPERATION(); } return outs; } } } //POATie namespace Hello { public class Greetings_HomePOATie : Greetings_HomePOA { public Greetings_HomePOATie( Greetings_HomeOperations impl ) { this._impl = impl; } public Greetings_HomePOATie( Greetings_HomeOperations impl, Middsol.PortableServer.POA poa ) { this._impl = impl; this._poa_tie = poa; } public Greetings_HomeOperations _delegate { set { this._impl = value; } get { return this._impl; } } override public Middsol.PortableServer.POA _default_POA() { if(_poa_tie != null) { return _poa_tie; } else { return base._default_POA(); } } override public Greetings_Remote create( ) { return ((Greetings_HomeOperations)_impl).create( ); } override public Middsol.javax.ejb.EJBMetaData EJBMetaData { get { return ((Middsol.javax.ejb.EJBHomeOperations)_impl).EJBMetaData; } } override public Middsol.javax.ejb.HomeHandle homeHandle { get { return ((Middsol.javax.ejb.EJBHomeOperations)_impl).homeHandle; } } override public void remove__javax_ejb_Handle( Middsol.javax.ejb.Handle a_arg0 ) { ((Middsol.javax.ejb.EJBHomeOperations)_impl).remove__javax_ejb_Handle( a_arg0 ); } override public void remove__java_lang_Object( Middsol.CORBA.Any a_arg0 ) { ((Middsol.javax.ejb.EJBHomeOperations)_impl).remove__java_lang_Object( a_arg0 ); } private Greetings_HomeOperations _impl = null; private Middsol.PortableServer.POA _poa_tie = null; } public class Greetings_RemotePOATie : Greetings_RemotePOA { public Greetings_RemotePOATie( Greetings_RemoteOperations impl ) { this._impl = impl; } public Greetings_RemotePOATie( Greetings_RemoteOperations impl, Middsol.PortableServer.POA poa ) { this._impl = impl; this._poa_tie = poa; } public Greetings_RemoteOperations _delegate { set { this._impl = value; } get { return this._impl; } } override public Middsol.PortableServer.POA _default_POA() { if(_poa_tie != null) { return _poa_tie; } else { return base._default_POA(); } } override public string hello( string a_arg0 ) { return ((Greetings_RemoteOperations)_impl).hello( a_arg0 ); } override public Middsol.javax.ejb.EJBHome EJBHome { get { return ((Middsol.javax.ejb.EJBObjectOperations)_impl).EJBHome; } } override public Middsol.javax.ejb.Handle handle { get { return ((Middsol.javax.ejb.EJBObjectOperations)_impl).handle; } } override public Middsol.CORBA.Any primaryKey { get { return ((Middsol.javax.ejb.EJBObjectOperations)_impl).primaryKey; } } override public void remove( ) { ((Middsol.javax.ejb.EJBObjectOperations)_impl).remove( ); } override public bool isIdentical( Middsol.javax.ejb.EJBObject a_arg0 ) { return ((Middsol.javax.ejb.EJBObjectOperations)_impl).isIdentical( a_arg0 ); } private Greetings_RemoteOperations _impl = null; private Middsol.PortableServer.POA _poa_tie = null; } }