当前位置: 代码迷 >> Java相关 >> 最不会转弯Java Corba的有关问题
  详细解决方案

最不会转弯Java Corba的有关问题

热度:6236   发布时间:2013-02-25 21:49:33.0
最不会转弯Java Corba的问题
题目如下:

这里提供了三个文件:jacorb.properties、Ref.IOR 、Server.idl
1、属性文件jacorb.properties内容为:
Java code
ORBInitRef.NameService=http\://61.144.253.112/szsb/orb81/orb.iorjacorb.ProxyServer.URL=http\://61.144.253.112/szsb/orb81/proxy.iorjacorb.orb.print_version=onjacorb.verbosity=1jacorb.debug.dump_outgoing_messages=offjacorb.debug.dump_incoming_messages=offjacorb.giop_minor_version=2jacorb.retries=5jacorb.retry_interval=500jacorb.outbuf_size=2048jacorb.maxManagedBufSize=18jacorb.hashtable_class=java.util.Hashtablejacorb.use_bom=offjacorb.giop.add_1_0_profiles=offorg.omg.PortableInterceptor.ORBInitializerClass.standard_init=org.jacorb.orb.standardInterceptors.IORInterceptorInitializerjacorb.use_imr=offjacorb.use_imr_endpoint=onjacorb.imr.allow_auto_register=offjacorb.imr.check_object_liveness=offORBInitRef.ImplementationRepository=http://www.x.y.z/~user/ImR_Refjacorb.imr.table_file=Z\:\table.datjacorb.imr.backup_file=z\:backup.datjacorb.imr.ior_file=/home/bwana/brose/public_html/ImR_Refjacorb.imr.connection_timeout=2000jacorb.implname=StandardImplNamejacorb.java_exec=java -Dorg.omg.CORBA.ORBClass=org.jacorb.orb.ORB -Dorg.omg.CORBA.ORBSingletonClass=org.jacorb.orb.ORBSingletonjacorb.security.access_decision=org.jacorb.security.level2.AccessDecisionImpljacorb.security.principal_authenticator=org.jacorb.security.level2.PrincipalAuthenticatorImpljacorb.ssl.socket_factory=org.jacorb.security.ssl.iaik.SSLSocketFactoryjacorb.ssl.server_socket_factory=org.jacorb.security.ssl.iaik.SSLServerSocketFactoryjacorb.security.change_ssl_roles=offjacorb.security.support_ssl=offjacorb.security.ssl.client.supported_options=0jacorb.security.ssl.client.required_options=0jacorb.security.ssl.server.supported_options=0jacorb.security.ssl.server.required_options=0jacorb.security.iaik_debug=offjacorb.security.jsse.trustees_from_ks=offjacorb.poa.monitoring=offjacorb.poa.thread_pool_max=20jacorb.poa.thread_pool_min=5jacorb.poa.queue_max=100jacorb.naming.purge=onjtrader.util.max_threads=10jtrader.util.min_threads=1jtrader.util.query_timeout=5000jtrader.impl.cache_max=100jtrader.debug=falsejtrader.debug_verbosity=3


2、要使用Corba实现远程的调用,Ref.IOR文件不是在本机的,而是在外网的一个计算机上要通过如下格式:htttp://www.xxxx.com/Ref.IOR来访问,该文件主要存储的是IOR信息。

3、文件Server.idl的内容为:
Java code
  module modTest    {        interface intTest        {            string  getAnsiString();            string  setAnsiString(in string str);            unshortArray getUnshortArray();            string setUnshortArray(in unshortArray array);        };    };

要实现如上接口内容。

求教高手如何实现Corba的数据交换?

------解决方案--------------------------------------------------------
没弄过,帮顶。祝楼主好运
------解决方案--------------------------------------------------------
RMI???

Corba应该有相应的api可供查阅的吧
------解决方案--------------------------------------------------------
帮lz找了个例子http://download.csdn.net/detail/czzzz961526497/3151934
  相关解决方案