Thank you for the reply, Tom. I decided to try working
through your 'Using Coldfusion with Flex - Part 2:...' CRM app to
learn how Flex/CF works.
I believe I followed your instructions to the letter. It this
case I get the "Error invoking fill-method 'fill' for destination
cfcompany: Permission denied." error even on a browser running on
the FDS/CF server"
The ip address of the server FDS and CF are running on is
192.168.1.99. This IP is registered in CFAdmin and in each of the
data-management-config.xml destinations.
<!-- ======================================== -->
<!-- ColdFusion Sample - employee for the CRM sample
-->
<!-- ======================================== -->
<destination id="cfemployee">
<adapter ref="coldfusion-dao"/>
<channels>
<channel ref="cf-dataservice-rtmp"/>
<channel ref="cf-polling-amf"/>
</channels>
<properties>
<component>crm.EmployeeAssembler</component>
<scope>application</scope>
<!-- The hostname or IP address of the CF host.
Optional, default is localhost. -->
<hostname>192.168.1.99</hostname>
<metadata>
<identity property="employeeId"/>
</metadata>
</properties>
</destination>
<!-- ======================================== -->
<!-- ColdFusion Sample - company for the CRM sample
-->
<!-- ======================================== -->
<destination id="cfcompany">
<adapter ref="coldfusion-dao"/>
<channels>
<channel ref="cf-dataservice-rtmp"/>
<channel ref="cf-polling-amf"/>
</channels>
<properties>
<component>crm.CompanyAssembler</component>
<scope>application</scope>
<!-- The hostname or IP address of the CF host.
Optional, default is localhost. -->
<hostname>192.168.1.99</hostname>
<metadata>
<identity property="companyId"/>
</metadata>
</properties>
</destination>
The FDS console's error message is as follows:
[Flex] {Error] Exception when invoking service: data-service
with message:
Flex Message (flex.data.messages.DataMessages)
operation = fill
id = null
clientId = <UUID here - pwp>
destination = cfcompany
messageID = <UUID here - pwp>
timestamp = 1154988936031
timeToLive = 0
body =
[
]
hdr(DSEndpoint) = cf-dataservice-rtmp
exception: flex.data.adapters.AdapaterException: Error
invoking fill-method 'fill' for destination cfcompany: Permission
denied.
I see in services-config.xml there is a security tag.
<security>
<security-constraint id="sample-users">
<auth-method>Custom</auth-method>
<roles>
<role>sampleusers</role>
</roles>
</security-constraint>
<login-command
class="flex.messaging.security.JRunLoginCommand" server="JRun"/>
<!-- Uncomment the correct app server
<login-command
class="flex.messaging.security.TomcatLoginCommand"
server="Tomcat"/>
<login-command
class="flex.messaging.security.WeblogicLoginCommand"
server="Weblogic"/>
<login-command
class="flex.messaging.security.WebSphereLoginCommand"
server="WebSphere"/>
-->
</security>
Do I have to do something with it?
Any help would be appreciated.