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

  • ServiceLocator question

    Hi,
    I was looking at Christophe's site describing a way to setup a ServiceLocator. The post was made a year ago. http://www.herrodius.com/blog/96
    Code:
    org.pranaframework.cairngorm.CairngormServiceLocator
    The new API does not seem to have a service locator... at least not in it's singleton form. Should I be creating my own and injecting it with remote-objects on context load?

  • #2
    never mind, i found the cairngorm extensions: https://src.springframework.org/svn/...airngorm/trunk

    here's the config that works:
    Code:
    	<object id="remoteObject" class="mx.rpc.remoting.mxml.RemoteObject"
    		abstract="true">
    		<property name="endpoint"
    			value="http://${host}:${port}/${context-root}/spring/messagebroker/amf" />
    		<property name="showBusyCursor" value="true" />
    	</object>
    
     
    	<object id="propertyServiceTest" parent="remoteObject">
    		<property name="destination" value="propertyServiceTest" />
    	</object>
    
    
    	<object id="serviceLocator"
    		class="org.springextensions.actionscript.cairngorm.business.CairngormServiceLocator"
    		factory-method="getInstance">
    		<property name="propertyServiceTest" ref="propertyServiceTest"/>
    		
    	</object>

    Comment

    Working...
    X