日期:2014-05-20  浏览次数:20673 次

最不会转弯Java Corba的问题
题目如下:

这里提供了三个文件:jacorb.properties、Ref.IOR 、Server.idl
1、属性文件jacorb.properties内容为:
Java code

ORBInitRef.NameService=http\://61.144.253.112/szsb/orb81/orb.ior
jacorb.ProxyServer.URL=http\://61.144.253.112/szsb/orb81/proxy.ior
jacorb.orb.print_version=on
jacorb.verbosity=1
jacorb.debug.dump_outgoing_messages=off
jacorb.debug.dump_incoming_messages=off
jacorb.giop_minor_version=2
jacorb.retries=5
jacorb.retry_interval=500
jacorb.outbuf_size=2048
jacorb.maxManagedBufSize=18
jacorb.hashtable_class=java.util.Hashtable
jacorb.use_bom=off
jacorb.giop.add_1_0_profiles=off
org.omg.PortableInterceptor.ORBInitializerClass.standard_init=org.jacorb.orb.standardInterceptors.IORInterceptorInitializer
jacorb.use_imr=off
jacorb.use_imr_endpoint=on
jacorb.imr.allow_auto_register=off
jacorb.imr.check_object_liveness=off
ORBInitRef.ImplementationRepository=http://www.x.y.z/~user/ImR_Ref
jacorb.imr.table_file=Z\:\table.dat
jacorb.imr.backup_file=z\:backup.dat
jacorb.imr.ior_file=/home/bwana/brose/public_html/ImR_Ref
jacorb.imr.connection_timeout=2000
jacorb.implname=StandardImplName
jacorb.java_exec=java -Dorg.omg.CORBA.ORBClass=org.jacorb.orb.ORB -Dorg.omg.CORBA.ORBSingletonClass=org.jacorb.orb.ORBSingleton
jacorb.security.access_decision=org.jacorb.security.level2.AccessDecisionImpl
jacorb.security.principal_authenticator=org.jacorb.security.level2.PrincipalAuthenticatorImpl
jacorb.ssl.socket_factory=org.jacorb.security.ssl.iaik.SSLSocketFactory
jacorb.ssl.server_socket_factory=org.jacorb.security.ssl.iaik.SSLServerSocketFactory
jacorb.security.change_ssl_roles=off
jacorb.security.support_ssl=off
jacorb.security.ssl.client.supported_options=0
jacorb.security.ssl.client.required_options=0
jacorb.security.ssl.server.supported_options=0
jacorb.security.ssl.server.required_options=0
jacorb.security.iaik_debug=off
jacorb.security.jsse.trustees_from_ks=off
jacorb.poa.monitoring=off
jacorb.poa.thread_pool_max=20
jacorb.poa.thread_pool_min=5
jacorb.poa.queue_max=100
jacorb.naming.purge=on
jtrader.util.max_threads=10
jtrader.util.min_threads=1
jtrader.util.query_timeout=5000
jtrader.impl.cache_max=100
jtrader.debug=false
jtrader.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