Hi,
I'm using Spring to connect to an old CORBA server, and I want to use the ORB.init method (the static factory method for obtaining the ORB) from XML.
The following XML snippet works fine:
this works fineCode:<bean id="theORB" class="org.omg.CORBA.ORB" factory-method="init"> <constructor-arg> <list> <!--value>this is junk</value--> </list> </constructor-arg> <constructor-arg> <props> <prop key="org.omg.CORBA.ORBClass">etc</prop> <prop key="org.omg.CORBA.ORBSingletonClass">etc</prop> </props> </constructor-arg> </bean> <bean id="dealServerRef" class="CorbaClientFactory"> <property name="orb"> <ref bean="theORB"/> </property> <property name="targetClass"> <value>CorbalServer</value> </property> <property name="corbaName"> <value>CorbaServerName</value> </property> </bean>but, the xml line with the factrory-method is always tagged with this error:
which prevents the "bean graph" panel from coming up :cry:Attribute "factory-method" must be declared for element type "bean"
I've tried different DOCTYPE headers, all to no avail.
--
Lou Rayman
lrayman ---at--- lehman ---dot--- com


but, the xml line with the factrory-method is always tagged with this error:
Reply With Quote