Is it possible to have one destination with two sync methods,
for say two different method calls of the same object? My Tomcat
server throws the following error when I attempt to use the
destiation below. all works fine if I remove the second sync
method.
Destination:
- <destination id="Clientes">
<adapter ref="java-dao" />
- <properties>
<source>com.company.project.ClientesAssembler</source>
<scope>application</scope>
- <!-- <ClientesDTO>List getClientes(...) used for
identity purpose
-->
- <metadata>
<identity property="CODCODIGONOTES" />
</metadata>
- <!-- <ClientesDTO>List searchClientes(...) ignored
for identity purpose
-->
- <network>
<session-timeout>0</session-timeout>
<paging pageSize="200" enabled="true" />
<throttle-inbound policy="ERROR" max-frequency="500"
/>
<throttle-outbound policy="ERROR" max-frequency="500"
/>
</network>
- <server>
- <fill-method>
<name>getClientes</name>
</fill-method>
- <sync-method>
<name>getClientes_sync</name>
</sync-method>
- <fill-method>
<name>searchClientes</name>
<params>java.util.Map</params>
</fill-method>
- <sync-method>
<name>searchClientes_sync</name>
</sync-method>
</server>
</properties>
</destination>
Error:
[2006-11-28 14:19:10,514] ERROR [Thread-1]
(log@ApplicationContext.java:675) - StandardWrapper.Throwable
flex.messaging.config.ConfigurationException: Unable to
create service 'flex.data.DataService' for 'data-service' due to
the following error: Unexpected multiple values for property
'sync-method'..
at
flex.messaging.config.MessagingConfiguration.createServices(MessagingConfiguration.java:202)
at
flex.messaging.config.MessagingConfiguration.configureBroker(MessagingConfiguration.java:84)
at
flex.messaging.MessageBrokerServlet.init(MessageBrokerServlet.java:105)