1 28 29 package com.caucho.iiop.client; 30 31 import javax.ejb.EJBMetaData ; 32 import javax.ejb.Handle ; 33 import javax.ejb.HomeHandle ; 34 import javax.rmi.CORBA.Stub ; 35 36 abstract public class IiopHomeStub extends Stub { 37 private transient EJBMetaData _md; 38 39 public EJBMetaData getEJBMetaData() 40 { 41 if (_md == null) { 42 org.omg.CORBA_2_3.portable.OutputStream os = null; 43 try { 44 os = (org.omg.CORBA_2_3.portable.OutputStream ) _request("getEJBMetaData", true); 45 org.omg.CORBA_2_3.portable.InputStream is; 46 is = (org.omg.CORBA_2_3.portable.InputStream ) _invoke(os); 47 _md = (EJBMetaData ) is.read_value(); 48 } catch (org.omg.CORBA.portable.ApplicationException e) { 49 throw new RuntimeException ((String ) ((org.omg.CORBA_2_3.portable.InputStream ) e.getInputStream()).read_string()); 50 } catch (Exception e) { 51 e.printStackTrace(); 52 throw new RuntimeException (e); 53 } 54 } 55 56 return _md; 57 } 58 59 public HomeHandle getHomeHandle() 60 { 61 return null; 62 } 63 64 public void remove(Object obj) 65 { 66 } 67 68 public void remove(Handle h) 69 { 70 } 71 } 72 | Popular Tags |