I am using Flex 3 and FluorineFX with <mx:RemoteObject>. Everything works fine, congratulations to that great middleware!
I have copied services-config.xml and remoting-config.xml to the src-Path and set the following compiler settings:
-locale en_US -services services-config.xml -context-root /
In this way i can set the absolute path to the fluorinefx server and develop locally without installing iis.
No my question:
Can i use messaging in this way (i mean with local services-config.xml and remoting-config.xml).
What must i do to compile the flex-app locally and use messaging of the remote server?
With best regards,
Björn Karpenstein
Content:
- Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<service id="remoting-service" class="flex.messaging.services.RemotingService" messageTypes="flex.messaging.messages.RemotingMessage">
<!-- DO NOT CHANGE <adapters> SECTION-->
<adapters>
<adapter-definition id="dotnet" class="FluorineFx.Remoting.RemotingAdapter" default="true"/>
</adapters>
<default-channels>
<channel ref="my-amf"/>
</default-channels>
<destination id="GenericDestination">
<properties>
<source>*</source>
</properties>
<!-- The following example shows a security constraint that is referenced -->
<!--
<security>
<security-constraint ref="privileged-users"/>
</security>
-->
<!-- The following example shows shows a security constraint that is declared in a destination definition (inline) -->
<!--
<security>
<security-constraint>
<auth-method>Custom</auth-method>
<roles>
<role>admin</role>
<role>privilegeduser</role>
</roles>
</security-constraint>
</security>
-->
</destination>
<destination id="fluorine">
<properties>
<source>*</source>
</properties>
<!-- The following example shows a security constraint that is referenced -->
<!--
<security>
<security-constraint ref="privileged-users"/>
</security>
-->
<!-- The following example shows shows a security constraint that is declared in a destination definition (inline) -->
<!--
<security>
<security-constraint>
<auth-method>Custom</auth-method>
<roles>
<role>admin</role>
<role>privilegeduser</role>
</roles>
</security-constraint>
</security>
-->
</destination>
<!-- Configure a destination
source: Fully qualified class name of the .NET object (remote object)
scope: Indicates whether the object is available in the request scope, the application scope, or the session scope -->
<!--
<destination id="destination name">
<properties>
<source>Fully qualified class name of the .NET object</source>
<scope>request</scope>
</properties>
</destination>
-->
</service>
And
- Code: Select all
<?xml version="1.0" encoding="utf-8" ?>
<services-config>
<services>
<service-include file-path="remoting-config.xml" />
<!-- <service-include file-path="messaging-config.xml" /> -->
<!-- <service-include file-path="data-management-config.xml" /> -->
</services>
<!-- Custom authentication -->
<security>
<!-- A security constraint requires that a user is authorized before accessing a destination.
Here you can declare security constraints globally. When several destinations
use the same security settings, you should define one security constraint in the
security section of the services configuration file and refer to it in each destination.
-->
<!--
<security-constraint id="privileged-users">
<auth-method>Custom</auth-method>
<roles>
<role>admin</role>
<role>privilegeduser</role>
</roles>
</security-constraint>
-->
<!--
Custom login command, to check a user's credentials and log a principal into the application server
A login command must implement the com.TheSilentGroup.Fluorine.Messaging.Security.ILoginCommand interface
or inherit from com.TheSilentGroup.Fluorine.Messaging.Security.GenericLoginCommand.
You can use a login command without security constraints defined.
-->
<!--
<login-command class="FluorineFx.Security.GenericLoginCommand" server="asp.net"/>
-->
</security>
<channels>
<channel-definition id="my-amf" class="mx.messaging.channels.AMFChannel">
<endpoint uri="http://bbmag3j.bbmag.bbraun.com:4321/Gateway.aspx" class="flex.messaging.endpoints.AMFEndpoint"/>
<!-- <endpoint uri="http://{server.name}:{server.port}/{context.root}/Gateway.aspx" class="flex.messaging.endpoints.AMFEndpoint"/> -->
<properties>
<!-- <legacy-collection>true</legacy-collection> -->
</properties>
</channel-definition>
<!--
<channel-definition id="my-rtmp" class="mx.messaging.channels.RTMPChannel">
<endpoint uri="rtmp://{server.name}:2037" class="flex.messaging.endpoints.RTMPEndpoint"/>
<properties>
<idle-timeout-minutes>20</idle-timeout-minutes>
</properties>
</channel-definition>
-->
</channels>
</services-config>
