Ticket #28 (closed enhancement: completed)

Opened 2 years ago

Last modified 21 months ago

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??

Attachments

Change History

Changed 2 years ago by peterfarrell

  • status changed from new to closed
  • resolution set to completed

The CS property will automatically generate and manage any remote proxy with the type of 'coldspring.aop.framework.RemoteFactoryBean?'.

Note you must use the BER of CS (especially DefaultXmlBeanFactory? r.1.53 or higher). Also, you must use the ColdspringProperty? available in the BER of Mach-II 1.6 - r.729 or higher.

Example setup <property name="ColdSpring?" type="MachII.properties.ColdspringProperty?">

<parameters>

<parameter name="beanFactoryPropertyName" value="serviceFactory"/> <parameter name="configFile" value="/config/services.xml"/> <parameter name="configFilePathIsRelative" value="true"/> <parameter name="generateRemoteProxies" value="true"/> <parameter name="resolveMachIIDependencies" value="true"/>

</parameters>

</property>

Changed 21 months ago by peterfarrell

  • milestone set to Mach-II 1.6.0 beta

- Updated to correct milestone.

Changed 21 months ago by peterfarrell

  • milestone changed from Mach-II 1.6.0 beta to Mach-II 1.6.0 alpha

- Updated to correct milestone

Add/Change #28 (Add ColdSpringProperty support to generate the CS remote proxies)

Author


E-mail address and user name can be saved in the Preferences.


Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.