正在加载图片...
//The code is used to create the client application used by the HelloApp application Import java. rm import Javax. naming 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 System. out. printIn( Remote exception occurred: exception catch gavax, ejb. CreateException exception System. out. printIn( Create exception occurred: exception atry模块 catch (avax ejb. Remove Exception exception) a实现了客户应用 System. out. printIn( Remove exception occurred: exception) 的功能 catch (avax naming. NamingException exception System. out. println( Naming exception occurred: + exception)客户应用 ◼try模块 ◼实现了客户应用 的功能
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有