Ticket #28 (closed enhancement: completed)
Add ColdSpringProperty support to generate the CS remote proxies
| Reported by: | <jorge_loyo> | Owned by: | peterfarrell |
|---|---|---|---|
| Priority: | minor | Milestone: | Mach-II 1.6.0 alpha |
| Component: | framework - core | Version: | 1.6.0 - Framework |
| Keywords: | Cc: | ||
| Blocking: | Blocked By: |
Description
I am currently working on an application that is growing fast and in which I am using a lot of ajax cfgrid's which access my service layer via coldspring generated remote proxies.
I was wondering if it would be possible to for mach-ii to create the ColdSpring? remote proxies automatically on application load.
Discussing the topic on the Google group, Peter suggested the possibility to have something like this added to the CS property definition.
<property name="ColdSpring?" type="MachII.properties.ColdspringProperty?">
<parameters>
<parameter name="beanFactoryPropertyName" value="serviceFactory"/> <parameter name="configFile" value="/lightpost/config/services.xml"/> <parameter name="configFilePathIsRelative" value="true"/> <parameter name="remoteProxies">
<array>
<element value="someRemoteBeanName" /> <element value="anotherRemoteBeanName" />
</array>
</parameter>
</parameters>
</property>
The remoteProxies array would be a great addition. However, I am also wondering how difficult it would be for mach-ii to read the class of the bean definition in the coldspring configuration file.
<bean id="remoteUserService" class="coldspring.aop.framework.RemoteFactoryBean?">
The class "coldspring.aop.framework.RemoteFactoryBean?" would show which beans are to be created as the remote proxies. This would possibly eliminate the necessity to include the array (displayed above) in the ColdSpringProperty? definition.
Is this possible??
