首页 新闻 会员 周边 捐助

请问从客户端怎么判断corba的服务端是开启的?

0
[待解决问题]

  public static void main(String[] args) throws ProcessingFailureException {
       
        //创建一个ORB实例
        ORB orb = ORB.init(args,null);
       
        //通过idlj自动生成的帮助类CorbaDHelper,
        //传入server实现类的的字符串(在这里直接把字符串粘贴进来了,没有再读取ior文件),从而拿到实现类
        equipmentInventory = EquipmentInventoryMgr_IHelper.narrow(orb.string_to_object("IOR:000000000000003b49444c3a6d746e6d2e746d666f72756d2e6f72672f65717569706d656e742f45717569706d656e74496e76656e746f72794d67725f493a312e300000000000010000000000000086000102000000000d31302e33352e31372e3233350000063200000031afabcb0000000020f3ed75ed00000001000000000000000100000008526f6f74504f410000000008000000010000000014000000000000020000000100000020000000000001000100000002050100010001002000010109000000010001010000000026000000020002"));
       
        System.out.println(equipmentInventory);
        System.out.println("connect success");
 }

灬Hello-World的主页 灬Hello-World | 菜鸟二级 | 园豆:204
提问于:2014-11-28 12:11
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册