History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: XFIRE-106
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Dan Diephouse
Reporter: Paul R. Saxman
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
XFire

Cyclic reference in example Spring bean definition file.

Created: 23/Aug/05 01:08 PM   Updated: 25/Aug/05 09:44 PM
Component/s: Spring, Documentation
Affects Version/s: 1.0-M4
Fix Version/s: 1.0-M5

Time Tracking:
Not Specified

Environment: Web


 Description  « Hide
http://xfire.codehaus.org/Spring+Remoting

In the example Spring configuration file at the preceding address, at the end, has a cyclic reference, which causes Spring to fail. The example is as follows:

<bean id="echo" class="org.codehaus.xfire.spring.remoting.XFireExporter">
<property name="serviceFactory">
<ref bean="xfire.serviceFactory"/>
</property>
<property name="xfire">
<ref bean="xfire"/>
</property>
<property name="service">
<ref bean="echo"/>
</property>
<property name="serviceInterface">
<value>org.codehaus.xfire.spring.example.Echo</value>
</property>
</bean>

The bean's id is "echo", and the "service" property references bean "echo". It is my understanding that this is not allowed in Spring. Also, how is the service itself passed to the XFireExporter? It ideally would be configured as a bean, and then passed to the exporter.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Dan Diephouse - 25/Aug/05 09:44 PM
I fixed this and published a new snapshot. Thanks for pointing this out!