001: package test.crispy.example.service.corba;
002:
003: /**
004: * test/crispy/example/service/corba/_EchoStub.java .
005: * Generated by the IDL-to-Java compiler (portable), version "3.2"
006: * from Echo.idl
007: * Donnerstag, 13. April 2006 19.25 Uhr CEST
008: */
009:
010: public class _EchoStub extends org.omg.CORBA.portable.ObjectImpl
011: implements test.crispy.example.service.corba.Echo {
012:
013: private static final long serialVersionUID = -8307817167993101438L;
014:
015: public String ping() {
016: org.omg.CORBA.portable.InputStream $in = null;
017: try {
018: org.omg.CORBA.portable.OutputStream $out = _request("ping",
019: true);
020: $in = _invoke($out);
021: String $result = $in.read_string();
022: return $result;
023: } catch (org.omg.CORBA.portable.ApplicationException $ex) {
024: $in = $ex.getInputStream();
025: String _id = $ex.getId();
026: throw new org.omg.CORBA.MARSHAL(_id);
027: } catch (org.omg.CORBA.portable.RemarshalException $rm) {
028: return ping();
029: } finally {
030: _releaseReply($in);
031: }
032: } // ping
033:
034: public String echo(String pvEchoStr) {
035: org.omg.CORBA.portable.InputStream $in = null;
036: try {
037: org.omg.CORBA.portable.OutputStream $out = _request("echo",
038: true);
039: $out.write_string(pvEchoStr);
040: $in = _invoke($out);
041: String $result = $in.read_string();
042: return $result;
043: } catch (org.omg.CORBA.portable.ApplicationException $ex) {
044: $in = $ex.getInputStream();
045: String _id = $ex.getId();
046: throw new org.omg.CORBA.MARSHAL(_id);
047: } catch (org.omg.CORBA.portable.RemarshalException $rm) {
048: return echo(pvEchoStr);
049: } finally {
050: _releaseReply($in);
051: }
052: } // echo
053:
054: public test.crispy.example.service.corba.Customer rename(
055: test.crispy.example.service.corba.Customer customer,
056: String newLastName) {
057: org.omg.CORBA.portable.InputStream $in = null;
058: try {
059: org.omg.CORBA.portable.OutputStream $out = _request(
060: "rename", true);
061: test.crispy.example.service.corba.CustomerHelper.write(
062: $out, customer);
063: $out.write_string(newLastName);
064: $in = _invoke($out);
065: test.crispy.example.service.corba.Customer $result = test.crispy.example.service.corba.CustomerHelper
066: .read($in);
067: return $result;
068: } catch (org.omg.CORBA.portable.ApplicationException $ex) {
069: $in = $ex.getInputStream();
070: String _id = $ex.getId();
071: throw new org.omg.CORBA.MARSHAL(_id);
072: } catch (org.omg.CORBA.portable.RemarshalException $rm) {
073: return rename(customer, newLastName);
074: } finally {
075: _releaseReply($in);
076: }
077: } // rename
078:
079: // Type-specific CORBA::Object operations
080: private static String[] __ids = { "IDL:test/crispy/example/service/corba/Echo:1.0" };
081:
082: public String[] _ids() {
083: return (String[]) __ids.clone();
084: }
085:
086: private void readObject(java.io.ObjectInputStream s)
087: throws java.io.IOException {
088: String str = s.readUTF();
089: String[] args = null;
090: java.util.Properties props = null;
091: org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init(args, props)
092: .string_to_object(str);
093: org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)
094: ._get_delegate();
095: _set_delegate(delegate);
096: }
097:
098: private void writeObject(java.io.ObjectOutputStream s)
099: throws java.io.IOException {
100: String[] args = null;
101: java.util.Properties props = null;
102: String str = org.omg.CORBA.ORB.init(args, props)
103: .object_to_string(this );
104: s.writeUTF(str);
105: }
106: } // class _EchoStub
|