Wednesday, September 24, 2008

Enabling SSL with Granite Data Services

You need to do the below settings in services-config.xml

<services-config>
<services>
<service messageTypes= "flex.messaging. messages. RemotingMessage"
class="flex. messaging. services. RemotingService" id="granite- service">
<destination id="test-service" >
<channels>
<channel ref="my-graniteamf" />
<channel ref="my-secure- graniteamf" />
</channels>
<properties>
<factory>springFact ory</factory>
<source>TestService </source>
</properties>
</destination>
</service>
</services>
<factories>
<factory
class="org.granite. messaging. service.SpringSe rviceFactory"
id="springFactory" />
</factories>
<channels>
<channel-definition class="mx.messaging .channels. AMFChannel"
id="my-graniteamf" >
<endpoint class="flex. messaging. endpoints. AMFEndpoint"
uri="http:// {server.name} :{server. port}/
{context.root} /graniteamf/ amf"/>
</channel-definitio n>
<channel-definition
class="mx.messaging .channels. SecureAMFChannel " id="my-secure-
graniteamf">
<endpoint class="flex. messaging. endpoints. SecureAMFEndpoin t"
uri="https:/ /{server. name}:443/ {context. root}/graniteamf /amfsecure" />
<properties>
<add-no-cache- headers>false< /add-no-cache- headers>
</properties>
</channel-definitio n>
</channels>
</services-config>

No comments: