正在加载图片...
//The code is used to create the client application used by the HelloApp application Import java. rm public class Client ublic static void main(String args) InitialContext Init=new InitialContext 0: HelloHome Home=(HelloHome) Init lookup(HelloJ") Hello HelloObjHome createD String RetValHelloObj. say Hello(Ron Floyd) System. out. println( Returned: Retval Helloobj remove catch (ava. rmi RemoteException exception) System. out. printIn( Remote exception occurred: exception catch gavax, ejb. CreateException exception System. out. printIn( Create exception occurred: exception CLient是客户应用类 catch (avax ejb. Remove Exception exception) m仅包含一个man System. out. printIn( Remove exception occurred: exception) 方法 catch (avax naming. NamingException exception System. out. println( Naming exception occurred: + exception)客户应用 ◼HClient是客户应用类 ◼仅包含一个main 方法
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有