Announcement Announcement Module
Collapse
No announcement yet.
corba remoting Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • corba remoting

    I waited corba remoting implementation for a very long time, so I decided to start myself. The implementation requires idl being compiled into helper classes.

    Here's the same config for server config:
    =====================================
    <bean id="orb" class="net.digisys.common.corba.OrbFactoryBean">
    <property name="activate" value="true" />
    </bean>

    <bean id="rootPoa" class="net.digisys.common.corba.PoaFactoryBean">
    <property name="orb" ref="orb" />
    <property name="poaName" value="RootPOA" />
    </bean>

    <bean id="corbaNamingService" class="net.digisys.common.corba.CorbaNamingService FactoryBean">
    <property name="orb" ref="orb" />
    </bean>

    <bean id="addServiceTarget" class="net.digisys.common.corba.AddService" />

    <bean id="addService" class="net.digisys.common.corba.CorbaServiceExport er">
    <property name="servicePoa" value="net.digisys.common.corba.AddPOA" />
    <property name="serviceStub" value="net.digisys.common.corba._AddStub" />
    <property name="serviceInterface" value="net.digisys.common.corba.AddOperations" />
    <property name="service" ref="addServiceTarget" />
    <property name="serviceName" value="Add" />
    <property name="namingService" ref="corbaNamingService" />
    <property name="rootPoa" ref="rootPoa" />
    </bean>

    ===============================================

    Client config
    ===============================================
    <bean id="orb" class="net.digisys.common.corba.OrbFactoryBean">
    <property name="activate" value="false" />
    </bean>

    <bean id="rootPoa" class="net.digisys.common.corba.PoaFactoryBean">
    <property name="orb" ref="orb" />
    <property name="poaName" value="RootPOA" />
    </bean>

    <bean id="corbaNamingService" class="net.digisys.common.corba.CorbaNamingService FactoryBean">
    <property name="orb" ref="orb" />
    </bean>

    <bean id="addService" class="net.digisys.common.corba.CorbaClientFactory Bean">
    <property name="serviceStub" value="net.digisys.common.corba._AddStub" />
    <property name="serviceInterface" value="net.digisys.common.corba.AddOperations" />
    <property name="serviceName" value="Add" />
    <property name="namingService" ref="corbaNamingService" />

    </bean>

    ==============================================

    I do not know how to post the source code, however you can get it from
    http://digi-sys.net/downloads/corba.zip

    P.S. the code base is tested on SUN JDK 1.5

    Yunfeng Hou
    Last edited by houyunf; May 25th, 2006, 04:02 AM. Reason: add attachment
Working...
X