1. package com.sun.corba.se.PortableActivationIDL;
  2. /**
  3. * com/sun/corba/se/PortableActivationIDL/_ServerManagerStub.java .
  4. * Generated by the IDL-to-Java compiler (portable), version "3.2"
  5. * from ../../../../src/share/classes/com/sun/corba/se/PortableActivationIDL/activation.idl
  6. * Wednesday, September 15, 2004 3:50:44 AM PDT
  7. */
  8. /** Interface used to combine the Activator and Locator when both are
  9. * implemented together in the same process, as is currently the case
  10. * for our implementation.
  11. */
  12. public class _ServerManagerStub extends org.omg.CORBA.portable.ObjectImpl implements com.sun.corba.se.PortableActivationIDL.ServerManager
  13. {
  14. /** A new ORB started server registers itself with the Activator
  15. */
  16. public void registerServer (String serverId, com.sun.corba.se.PortableActivationIDL.ServerProxy serverObj) throws com.sun.corba.se.PortableActivationIDL.ServerNotRegistered
  17. {
  18. org.omg.CORBA.portable.InputStream $in = null;
  19. try {
  20. org.omg.CORBA.portable.OutputStream $out = _request ("registerServer", true);
  21. org.omg.PortableInterceptor.ServerIdHelper.write ($out, serverId);
  22. com.sun.corba.se.PortableActivationIDL.ServerProxyHelper.write ($out, serverObj);
  23. $in = _invoke ($out);
  24. return;
  25. } catch (org.omg.CORBA.portable.ApplicationException $ex) {
  26. $in = $ex.getInputStream ();
  27. String _id = $ex.getId ();
  28. if (_id.equals ("IDL:PortableActivationIDL/ServerNotRegistered:1.0"))
  29. throw com.sun.corba.se.PortableActivationIDL.ServerNotRegisteredHelper.read ($in);
  30. else
  31. throw new org.omg.CORBA.MARSHAL (_id);
  32. } catch (org.omg.CORBA.portable.RemarshalException $rm) {
  33. registerServer (serverId, serverObj );
  34. } finally {
  35. _releaseReply ($in);
  36. }
  37. } // registerServer
  38. /** A server is shutting down that was started by this activator.
  39. * Complete termination of the server is detected by the death of the
  40. * process implementing the server.
  41. */
  42. public void serverGoingDown (String serverId)
  43. {
  44. org.omg.CORBA.portable.InputStream $in = null;
  45. try {
  46. org.omg.CORBA.portable.OutputStream $out = _request ("serverGoingDown", true);
  47. org.omg.PortableInterceptor.ServerIdHelper.write ($out, serverId);
  48. $in = _invoke ($out);
  49. return;
  50. } catch (org.omg.CORBA.portable.ApplicationException $ex) {
  51. $in = $ex.getInputStream ();
  52. String _id = $ex.getId ();
  53. throw new org.omg.CORBA.MARSHAL (_id);
  54. } catch (org.omg.CORBA.portable.RemarshalException $rm) {
  55. serverGoingDown (serverId );
  56. } finally {
  57. _releaseReply ($in);
  58. }
  59. } // serverGoingDown
  60. /** Called whenever an ORB instance is created. This registers
  61. * the transport endpoints and the ORB proxy callback object.
  62. * Note that we cannot detect when an ORB shuts down, although
  63. * all of the POA shutdowns should still be reported.
  64. */
  65. public void registerORB (String serverId, String orbId, com.sun.corba.se.PortableActivationIDL.ORBProxy orb, com.sun.corba.se.PortableActivationIDL.EndPointInfo[] endPointInfo) throws com.sun.corba.se.PortableActivationIDL.ServerNotRegistered, com.sun.corba.se.PortableActivationIDL.NoSuchEndPoint, com.sun.corba.se.PortableActivationIDL.ORBAlreadyRegistered
  66. {
  67. org.omg.CORBA.portable.InputStream $in = null;
  68. try {
  69. org.omg.CORBA.portable.OutputStream $out = _request ("registerORB", true);
  70. org.omg.PortableInterceptor.ServerIdHelper.write ($out, serverId);
  71. org.omg.PortableInterceptor.ORBIdHelper.write ($out, orbId);
  72. com.sun.corba.se.PortableActivationIDL.ORBProxyHelper.write ($out, orb);
  73. com.sun.corba.se.PortableActivationIDL.EndpointInfoListHelper.write ($out, endPointInfo);
  74. $in = _invoke ($out);
  75. return;
  76. } catch (org.omg.CORBA.portable.ApplicationException $ex) {
  77. $in = $ex.getInputStream ();
  78. String _id = $ex.getId ();
  79. if (_id.equals ("IDL:PortableActivationIDL/ServerNotRegistered:1.0"))
  80. throw com.sun.corba.se.PortableActivationIDL.ServerNotRegisteredHelper.read ($in);
  81. else if (_id.equals ("IDL:PortableActivationIDL/NoSuchEndPoint:1.0"))
  82. throw com.sun.corba.se.PortableActivationIDL.NoSuchEndPointHelper.read ($in);
  83. else if (_id.equals ("IDL:PortableActivationIDL/ORBAlreadyRegistered:1.0"))
  84. throw com.sun.corba.se.PortableActivationIDL.ORBAlreadyRegisteredHelper.read ($in);
  85. else
  86. throw new org.omg.CORBA.MARSHAL (_id);
  87. } catch (org.omg.CORBA.portable.RemarshalException $rm) {
  88. registerORB (serverId, orbId, orb, endPointInfo );
  89. } finally {
  90. _releaseReply ($in);
  91. }
  92. } // registerORB
  93. /** Construct or find an ORBD object template corresponding to the
  94. * server's object template and return it. Called whenever a
  95. * persistent POA is created.
  96. */
  97. public org.omg.PortableInterceptor.ObjectReferenceTemplate registerPOA (String serverId, String orbId, org.omg.PortableInterceptor.ObjectReferenceTemplate poaTemplate)
  98. {
  99. org.omg.CORBA.portable.InputStream $in = null;
  100. try {
  101. org.omg.CORBA.portable.OutputStream $out = _request ("registerPOA", true);
  102. org.omg.PortableInterceptor.ServerIdHelper.write ($out, serverId);
  103. org.omg.PortableInterceptor.ORBIdHelper.write ($out, orbId);
  104. org.omg.PortableInterceptor.ObjectReferenceTemplateHelper.write ($out, poaTemplate);
  105. $in = _invoke ($out);
  106. org.omg.PortableInterceptor.ObjectReferenceTemplate $result = org.omg.PortableInterceptor.ObjectReferenceTemplateHelper.read ($in);
  107. return $result;
  108. } catch (org.omg.CORBA.portable.ApplicationException $ex) {
  109. $in = $ex.getInputStream ();
  110. String _id = $ex.getId ();
  111. throw new org.omg.CORBA.MARSHAL (_id);
  112. } catch (org.omg.CORBA.portable.RemarshalException $rm) {
  113. return registerPOA (serverId, orbId, poaTemplate );
  114. } finally {
  115. _releaseReply ($in);
  116. }
  117. } // registerPOA
  118. /** Called whenever a POA is destroyed.
  119. */
  120. public void poaDestroyed (String serverId, String orbId, org.omg.PortableInterceptor.ObjectReferenceTemplate poaTemplate)
  121. {
  122. org.omg.CORBA.portable.InputStream $in = null;
  123. try {
  124. org.omg.CORBA.portable.OutputStream $out = _request ("poaDestroyed", true);
  125. org.omg.PortableInterceptor.ServerIdHelper.write ($out, serverId);
  126. org.omg.PortableInterceptor.ORBIdHelper.write ($out, orbId);
  127. org.omg.PortableInterceptor.ObjectReferenceTemplateHelper.write ($out, poaTemplate);
  128. $in = _invoke ($out);
  129. return;
  130. } catch (org.omg.CORBA.portable.ApplicationException $ex) {
  131. $in = $ex.getInputStream ();
  132. String _id = $ex.getId ();
  133. throw new org.omg.CORBA.MARSHAL (_id);
  134. } catch (org.omg.CORBA.portable.RemarshalException $rm) {
  135. poaDestroyed (serverId, orbId, poaTemplate );
  136. } finally {
  137. _releaseReply ($in);
  138. }
  139. } // poaDestroyed
  140. /** If the server is not running, start it up. This is allowed
  141. * whether or not the server has been installed.
  142. */
  143. public void activate (String serverId) throws com.sun.corba.se.PortableActivationIDL.ServerAlreadyActive, com.sun.corba.se.PortableActivationIDL.ServerNotRegistered, com.sun.corba.se.PortableActivationIDL.ServerHeldDown
  144. {
  145. org.omg.CORBA.portable.InputStream $in = null;
  146. try {
  147. org.omg.CORBA.portable.OutputStream $out = _request ("activate", true);
  148. org.omg.PortableInterceptor.ServerIdHelper.write ($out, serverId);
  149. $in = _invoke ($out);
  150. return;
  151. } catch (org.omg.CORBA.portable.ApplicationException $ex) {
  152. $in = $ex.getInputStream ();
  153. String _id = $ex.getId ();
  154. if (_id.equals ("IDL:PortableActivationIDL/ServerAlreadyActive:1.0"))
  155. throw com.sun.corba.se.PortableActivationIDL.ServerAlreadyActiveHelper.read ($in);
  156. else if (_id.equals ("IDL:PortableActivationIDL/ServerNotRegistered:1.0"))
  157. throw com.sun.corba.se.PortableActivationIDL.ServerNotRegisteredHelper.read ($in);
  158. else if (_id.equals ("IDL:PortableActivationIDL/ServerHeldDown:1.0"))
  159. throw com.sun.corba.se.PortableActivationIDL.ServerHeldDownHelper.read ($in);
  160. else
  161. throw new org.omg.CORBA.MARSHAL (_id);
  162. } catch (org.omg.CORBA.portable.RemarshalException $rm) {
  163. activate (serverId );
  164. } finally {
  165. _releaseReply ($in);
  166. }
  167. } // activate
  168. /** If the server is running, shut it down
  169. */
  170. public void shutdown (String serverId) throws com.sun.corba.se.PortableActivationIDL.ServerNotActive, com.sun.corba.se.PortableActivationIDL.ServerNotRegistered
  171. {
  172. org.omg.CORBA.portable.InputStream $in = null;
  173. try {
  174. org.omg.CORBA.portable.OutputStream $out = _request ("shutdown", true);
  175. org.omg.PortableInterceptor.ServerIdHelper.write ($out, serverId);
  176. $in = _invoke ($out);
  177. return;
  178. } catch (org.omg.CORBA.portable.ApplicationException $ex) {
  179. $in = $ex.getInputStream ();
  180. String _id = $ex.getId ();
  181. if (_id.equals ("IDL:PortableActivationIDL/ServerNotActive:1.0"))
  182. throw com.sun.corba.se.PortableActivationIDL.ServerNotActiveHelper.read ($in);
  183. else if (_id.equals ("IDL:PortableActivationIDL/ServerNotRegistered:1.0"))
  184. throw com.sun.corba.se.PortableActivationIDL.ServerNotRegisteredHelper.read ($in);
  185. else
  186. throw new org.omg.CORBA.MARSHAL (_id);
  187. } catch (org.omg.CORBA.portable.RemarshalException $rm) {
  188. shutdown (serverId );
  189. } finally {
  190. _releaseReply ($in);
  191. }
  192. } // shutdown
  193. /** Invoke the server install hook. If the server is not
  194. * currently running, this method will activate it.
  195. */
  196. public void install (String serverId) throws com.sun.corba.se.PortableActivationIDL.ServerNotRegistered, com.sun.corba.se.PortableActivationIDL.ServerHeldDown, com.sun.corba.se.PortableActivationIDL.ServerAlreadyInstalled
  197. {
  198. org.omg.CORBA.portable.InputStream $in = null;
  199. try {
  200. org.omg.CORBA.portable.OutputStream $out = _request ("install", true);
  201. org.omg.PortableInterceptor.ServerIdHelper.write ($out, serverId);
  202. $in = _invoke ($out);
  203. return;
  204. } catch (org.omg.CORBA.portable.ApplicationException $ex) {
  205. $in = $ex.getInputStream ();
  206. String _id = $ex.getId ();
  207. if (_id.equals ("IDL:PortableActivationIDL/ServerNotRegistered:1.0"))
  208. throw com.sun.corba.se.PortableActivationIDL.ServerNotRegisteredHelper.read ($in);
  209. else if (_id.equals ("IDL:PortableActivationIDL/ServerHeldDown:1.0"))
  210. throw com.sun.corba.se.PortableActivationIDL.ServerHeldDownHelper.read ($in);
  211. else if (_id.equals ("IDL:PortableActivationIDL/ServerAlreadyInstalled:1.0"))
  212. throw com.sun.corba.se.PortableActivationIDL.ServerAlreadyInstalledHelper.read ($in);
  213. else
  214. throw new org.omg.CORBA.MARSHAL (_id);
  215. } catch (org.omg.CORBA.portable.RemarshalException $rm) {
  216. install (serverId );
  217. } finally {
  218. _releaseReply ($in);
  219. }
  220. } // install
  221. /** Invoke the server uninstall hook. If the server is not
  222. * currently running, this method will activate it.
  223. * After this hook completes, the server may still be running.
  224. */
  225. public void uninstall (String serverId) throws com.sun.corba.se.PortableActivationIDL.ServerNotRegistered, com.sun.corba.se.PortableActivationIDL.ServerHeldDown, com.sun.corba.se.PortableActivationIDL.ServerAlreadyUninstalled
  226. {
  227. org.omg.CORBA.portable.InputStream $in = null;
  228. try {
  229. org.omg.CORBA.portable.OutputStream $out = _request ("uninstall", true);
  230. org.omg.PortableInterceptor.ServerIdHelper.write ($out, serverId);
  231. $in = _invoke ($out);
  232. return;
  233. } catch (org.omg.CORBA.portable.ApplicationException $ex) {
  234. $in = $ex.getInputStream ();
  235. String _id = $ex.getId ();
  236. if (_id.equals ("IDL:PortableActivationIDL/ServerNotRegistered:1.0"))
  237. throw com.sun.corba.se.PortableActivationIDL.ServerNotRegisteredHelper.read ($in);
  238. else if (_id.equals ("IDL:PortableActivationIDL/ServerHeldDown:1.0"))
  239. throw com.sun.corba.se.PortableActivationIDL.ServerHeldDownHelper.read ($in);
  240. else if (_id.equals ("IDL:PortableActivationIDL/ServerAlreadyUninstalled:1.0"))
  241. throw com.sun.corba.se.PortableActivationIDL.ServerAlreadyUninstalledHelper.read ($in);
  242. else
  243. throw new org.omg.CORBA.MARSHAL (_id);
  244. } catch (org.omg.CORBA.portable.RemarshalException $rm) {
  245. uninstall (serverId );
  246. } finally {
  247. _releaseReply ($in);
  248. }
  249. } // uninstall
  250. /** list active servers
  251. */
  252. public String[] getActiveServers ()
  253. {
  254. org.omg.CORBA.portable.InputStream $in = null;
  255. try {
  256. org.omg.CORBA.portable.OutputStream $out = _request ("getActiveServers", true);
  257. $in = _invoke ($out);
  258. String $result[] = com.sun.corba.se.PortableActivationIDL.ServerIdsHelper.read ($in);
  259. return $result;
  260. } catch (org.omg.CORBA.portable.ApplicationException $ex) {
  261. $in = $ex.getInputStream ();
  262. String _id = $ex.getId ();
  263. throw new org.omg.CORBA.MARSHAL (_id);
  264. } catch (org.omg.CORBA.portable.RemarshalException $rm) {
  265. return getActiveServers ( );
  266. } finally {
  267. _releaseReply ($in);
  268. }
  269. } // getActiveServers
  270. /** list all registered ORBs for a server
  271. */
  272. public String[] getORBNames (String serverId) throws com.sun.corba.se.PortableActivationIDL.ServerNotRegistered
  273. {
  274. org.omg.CORBA.portable.InputStream $in = null;
  275. try {
  276. org.omg.CORBA.portable.OutputStream $out = _request ("getORBNames", true);
  277. org.omg.PortableInterceptor.ServerIdHelper.write ($out, serverId);
  278. $in = _invoke ($out);
  279. String $result[] = com.sun.corba.se.PortableActivationIDL.ORBidListHelper.read ($in);
  280. return $result;
  281. } catch (org.omg.CORBA.portable.ApplicationException $ex) {
  282. $in = $ex.getInputStream ();
  283. String _id = $ex.getId ();
  284. if (_id.equals ("IDL:PortableActivationIDL/ServerNotRegistered:1.0"))
  285. throw com.sun.corba.se.PortableActivationIDL.ServerNotRegisteredHelper.read ($in);
  286. else
  287. throw new org.omg.CORBA.MARSHAL (_id);
  288. } catch (org.omg.CORBA.portable.RemarshalException $rm) {
  289. return getORBNames (serverId );
  290. } finally {
  291. _releaseReply ($in);
  292. }
  293. } // getORBNames
  294. /** Find the server template that corresponds to the ORBD's
  295. * adapter id.
  296. */
  297. public org.omg.PortableInterceptor.ObjectReferenceTemplate lookupPOATemplate (String serverId, String orbId, String[] orbAdapterName)
  298. {
  299. org.omg.CORBA.portable.InputStream $in = null;
  300. try {
  301. org.omg.CORBA.portable.OutputStream $out = _request ("lookupPOATemplate", true);
  302. org.omg.PortableInterceptor.ServerIdHelper.write ($out, serverId);
  303. org.omg.PortableInterceptor.ORBIdHelper.write ($out, orbId);
  304. org.omg.PortableInterceptor.AdapterNameHelper.write ($out, orbAdapterName);
  305. $in = _invoke ($out);
  306. org.omg.PortableInterceptor.ObjectReferenceTemplate $result = org.omg.PortableInterceptor.ObjectReferenceTemplateHelper.read ($in);
  307. return $result;
  308. } catch (org.omg.CORBA.portable.ApplicationException $ex) {
  309. $in = $ex.getInputStream ();
  310. String _id = $ex.getId ();
  311. throw new org.omg.CORBA.MARSHAL (_id);
  312. } catch (org.omg.CORBA.portable.RemarshalException $rm) {
  313. return lookupPOATemplate (serverId, orbId, orbAdapterName );
  314. } finally {
  315. _releaseReply ($in);
  316. }
  317. } // lookupPOATemplate
  318. /** locate server - returns the port with a specific type for all registered
  319. * ORBs of an active server.
  320. * Starts the server if it is not already running.
  321. */
  322. public com.sun.corba.se.PortableActivationIDL.LocatorPackage.ServerLocationPerType locateServer (String serverId, String endPoint) throws com.sun.corba.se.PortableActivationIDL.NoSuchEndPoint, com.sun.corba.se.PortableActivationIDL.ServerNotRegistered, com.sun.corba.se.PortableActivationIDL.ServerHeldDown
  323. {
  324. org.omg.CORBA.portable.InputStream $in = null;
  325. try {
  326. org.omg.CORBA.portable.OutputStream $out = _request ("locateServer", true);
  327. org.omg.PortableInterceptor.ServerIdHelper.write ($out, serverId);
  328. $out.write_string (endPoint);
  329. $in = _invoke ($out);
  330. com.sun.corba.se.PortableActivationIDL.LocatorPackage.ServerLocationPerType $result = com.sun.corba.se.PortableActivationIDL.LocatorPackage.ServerLocationPerTypeHelper.read ($in);
  331. return $result;
  332. } catch (org.omg.CORBA.portable.ApplicationException $ex) {
  333. $in = $ex.getInputStream ();
  334. String _id = $ex.getId ();
  335. if (_id.equals ("IDL:PortableActivationIDL/NoSuchEndPoint:1.0"))
  336. throw com.sun.corba.se.PortableActivationIDL.NoSuchEndPointHelper.read ($in);
  337. else if (_id.equals ("IDL:PortableActivationIDL/ServerNotRegistered:1.0"))
  338. throw com.sun.corba.se.PortableActivationIDL.ServerNotRegisteredHelper.read ($in);
  339. else if (_id.equals ("IDL:PortableActivationIDL/ServerHeldDown:1.0"))
  340. throw com.sun.corba.se.PortableActivationIDL.ServerHeldDownHelper.read ($in);
  341. else
  342. throw new org.omg.CORBA.MARSHAL (_id);
  343. } catch (org.omg.CORBA.portable.RemarshalException $rm) {
  344. return locateServer (serverId, endPoint );
  345. } finally {
  346. _releaseReply ($in);
  347. }
  348. } // locateServer
  349. /** locate server - returns all ports registered with a specified ORB for
  350. * an active server
  351. * Starts the server if it is not already running.
  352. */
  353. public com.sun.corba.se.PortableActivationIDL.LocatorPackage.ServerLocationPerORB locateServerForORB (String serverId, String orbId) throws com.sun.corba.se.PortableActivationIDL.InvalidORBid, com.sun.corba.se.PortableActivationIDL.ServerNotRegistered, com.sun.corba.se.PortableActivationIDL.ServerHeldDown
  354. {
  355. org.omg.CORBA.portable.InputStream $in = null;
  356. try {
  357. org.omg.CORBA.portable.OutputStream $out = _request ("locateServerForORB", true);
  358. org.omg.PortableInterceptor.ServerIdHelper.write ($out, serverId);
  359. org.omg.PortableInterceptor.ORBIdHelper.write ($out, orbId);
  360. $in = _invoke ($out);
  361. com.sun.corba.se.PortableActivationIDL.LocatorPackage.ServerLocationPerORB $result = com.sun.corba.se.PortableActivationIDL.LocatorPackage.ServerLocationPerORBHelper.read ($in);
  362. return $result;
  363. } catch (org.omg.CORBA.portable.ApplicationException $ex) {
  364. $in = $ex.getInputStream ();
  365. String _id = $ex.getId ();
  366. if (_id.equals ("IDL:PortableActivationIDL/InvalidORBid:1.0"))
  367. throw com.sun.corba.se.PortableActivationIDL.InvalidORBidHelper.read ($in);
  368. else if (_id.equals ("IDL:PortableActivationIDL/ServerNotRegistered:1.0"))
  369. throw com.sun.corba.se.PortableActivationIDL.ServerNotRegisteredHelper.read ($in);
  370. else if (_id.equals ("IDL:PortableActivationIDL/ServerHeldDown:1.0"))
  371. throw com.sun.corba.se.PortableActivationIDL.ServerHeldDownHelper.read ($in);
  372. else
  373. throw new org.omg.CORBA.MARSHAL (_id);
  374. } catch (org.omg.CORBA.portable.RemarshalException $rm) {
  375. return locateServerForORB (serverId, orbId );
  376. } finally {
  377. _releaseReply ($in);
  378. }
  379. } // locateServerForORB
  380. /** get the port for the endpoint of the locator
  381. */
  382. public int getEndpoint (String endPointType) throws com.sun.corba.se.PortableActivationIDL.NoSuchEndPoint
  383. {
  384. org.omg.CORBA.portable.InputStream $in = null;
  385. try {
  386. org.omg.CORBA.portable.OutputStream $out = _request ("getEndpoint", true);
  387. $out.write_string (endPointType);
  388. $in = _invoke ($out);
  389. int $result = com.sun.corba.se.PortableActivationIDL.TCPPortHelper.read ($in);
  390. return $result;
  391. } catch (org.omg.CORBA.portable.ApplicationException $ex) {
  392. $in = $ex.getInputStream ();
  393. String _id = $ex.getId ();
  394. if (_id.equals ("IDL:PortableActivationIDL/NoSuchEndPoint:1.0"))
  395. throw com.sun.corba.se.PortableActivationIDL.NoSuchEndPointHelper.read ($in);
  396. else
  397. throw new org.omg.CORBA.MARSHAL (_id);
  398. } catch (org.omg.CORBA.portable.RemarshalException $rm) {
  399. return getEndpoint (endPointType );
  400. } finally {
  401. _releaseReply ($in);
  402. }
  403. } // getEndpoint
  404. /** Useful from external BadServerIdHandlers which need
  405. * to pick a particular port type.
  406. */
  407. public int getServerPortForType (com.sun.corba.se.PortableActivationIDL.LocatorPackage.ServerLocationPerORB location, String endPointType) throws com.sun.corba.se.PortableActivationIDL.NoSuchEndPoint
  408. {
  409. org.omg.CORBA.portable.InputStream $in = null;
  410. try {
  411. org.omg.CORBA.portable.OutputStream $out = _request ("getServerPortForType", true);
  412. com.sun.corba.se.PortableActivationIDL.LocatorPackage.ServerLocationPerORBHelper.write ($out, location);
  413. $out.write_string (endPointType);
  414. $in = _invoke ($out);
  415. int $result = com.sun.corba.se.PortableActivationIDL.TCPPortHelper.read ($in);
  416. return $result;
  417. } catch (org.omg.CORBA.portable.ApplicationException $ex) {
  418. $in = $ex.getInputStream ();
  419. String _id = $ex.getId ();
  420. if (_id.equals ("IDL:PortableActivationIDL/NoSuchEndPoint:1.0"))
  421. throw com.sun.corba.se.PortableActivationIDL.NoSuchEndPointHelper.read ($in);
  422. else
  423. throw new org.omg.CORBA.MARSHAL (_id);
  424. } catch (org.omg.CORBA.portable.RemarshalException $rm) {
  425. return getServerPortForType (location, endPointType );
  426. } finally {
  427. _releaseReply ($in);
  428. }
  429. } // getServerPortForType
  430. // Type-specific CORBA::Object operations
  431. private static String[] __ids = {
  432. "IDL:PortableActivationIDL/ServerManager:1.0",
  433. "IDL:PortableActivationIDL/Activator:1.0",
  434. "IDL:PortableActivationIDL/Locator:1.0"};
  435. public String[] _ids ()
  436. {
  437. return (String[])__ids.clone ();
  438. }
  439. private void readObject (java.io.ObjectInputStream s) throws java.io.IOException
  440. {
  441. String str = s.readUTF ();
  442. String[] args = null;
  443. java.util.Properties props = null;
  444. org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str);
  445. org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate ();
  446. _set_delegate (delegate);
  447. }
  448. private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException
  449. {
  450. String[] args = null;
  451. java.util.Properties props = null;
  452. String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this);
  453. s.writeUTF (str);
  454. }
  455. } // class _ServerManagerStub