<?xml version="1.0" encoding="UTF-8"?>
<services-config>
	<services>

        <service id="granite-service"
            class="flex.messaging.services.RemotingService"
            messageTypes="flex.messaging.messages.RemotingMessage">
            <destination id="seam">
                <channels>
    <!--USED IN THE LIVE ENVIRONMENT-->
                    <!--channel ref="my-graniteamf-secure"/-->
    <!--USED IN THE LOCAL/DEV ENVIRONMENT-->
                    <channel ref="my-graniteamf"/>
                </channels>
                <properties>
                    <factory>seamFactory</factory>
                </properties>
             </destination>
        </service>
	</services>

	<factories>
        <factory id="seamFactory" class="org.granite.tide.seam.SeamServiceFactory"/>
	</factories>

	<channels>
		<channel-definition id="my-graniteamf"
			class="mx.messaging.channels.AMFChannel">
			<endpoint
				uri="http://{server.name}:{server.port}/{context.root}/graniteamf/amf"
				class="flex.messaging.endpoints.AMFEndpoint" />
		</channel-definition>
		<channel-definition id="my-graniteamf-secure"
			class="mx.messaging.channels.SecureAMFChannel">
			<endpoint
				uri="https://{server.name}:443/{context.root}/graniteamf/amf"
				class="flex.messaging.endpoints.SecureAMFEndpoint" />
		</channel-definition>
	</channels>
</services-config>