Advertisement
Guest User

services-config

a guest
Jun 20th, 2011
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <services-config>
  3.  
  4.     <services>
  5.         <service-include file-path="remoting-config.xml" />
  6.         <service-include file-path="proxy-config.xml" />
  7.         <service-include file-path="messaging-config.xml" />        
  8.     </services>
  9.  
  10.     <security>
  11.         <login-command class="flex.messaging.security.TomcatLoginCommand" server="Tomcat"/>
  12.         <!-- Uncomment the correct app server
  13.         <login-command class="flex.messaging.security.TomcatLoginCommand" server="JBoss">
  14.         <login-command class="flex.messaging.security.JRunLoginCommand" server="JRun"/>        
  15.         <login-command class="flex.messaging.security.WeblogicLoginCommand" server="Weblogic"/>
  16.         <login-command class="flex.messaging.security.WebSphereLoginCommand" server="WebSphere"/>
  17.         -->
  18.  
  19.         <!--
  20.         <security-constraint id="basic-read-access">
  21.             <auth-method>Basic</auth-method>
  22.             <roles>
  23.                 <role>guests</role>
  24.                 <role>accountants</role>
  25.                 <role>employees</role>
  26.                 <role>managers</role>
  27.             </roles>
  28.         </security-constraint>
  29.          -->
  30.     </security>
  31.  
  32.     <channels>
  33.  
  34.         <channel-definition id="my-amf" class="mx.messaging.channels.AMFChannel">
  35.             <endpoint url="http://{server.name}:{server.port}/{context.root}/messagebroker/amf" class="flex.messaging.endpoints.AMFEndpoint"/>
  36.         </channel-definition>
  37.  
  38.         <channel-definition id="my-secure-amf" class="mx.messaging.channels.SecureAMFChannel">
  39.             <endpoint url="https://{server.name}:{server.port}/{context.root}/messagebroker/amfsecure" class="flex.messaging.endpoints.SecureAMFEndpoint"/>
  40.             <properties>
  41.                 <add-no-cache-headers>false</add-no-cache-headers>
  42.             </properties>
  43.         </channel-definition>
  44.  
  45.         <channel-definition id="my-polling-amf" class="mx.messaging.channels.AMFChannel">
  46.             <endpoint url="http://{server.name}:{server.port}/{context.root}/messagebroker/amfpolling" class="flex.messaging.endpoints.AMFEndpoint"/>
  47.             <properties>
  48.                 <polling-enabled>true</polling-enabled>
  49.                 <polling-interval-seconds>4</polling-interval-seconds>
  50.             </properties>
  51.         </channel-definition>
  52.  
  53.         <!--
  54.         <channel-definition id="my-http" class="mx.messaging.channels.HTTPChannel">
  55.             <endpoint url="http://{server.name}:{server.port}/{context.root}/messagebroker/http" class="flex.messaging.endpoints.HTTPEndpoint"/>
  56.         </channel-definition>
  57.  
  58.         <channel-definition id="my-secure-http" class="mx.messaging.channels.SecureHTTPChannel">
  59.             <endpoint url="https://{server.name}:{server.port}/{context.root}/messagebroker/httpsecure" class="flex.messaging.endpoints.SecureHTTPEndpoint"/>
  60.             <properties>
  61.                 <add-no-cache-headers>false</add-no-cache-headers>
  62.             </properties>
  63.         </channel-definition>
  64.         -->
  65.     </channels>
  66.  
  67.     <logging>
  68.         <target class="flex.messaging.log.ConsoleTarget" level="Error">
  69.             <properties>
  70.                 <prefix>[BlazeDS] </prefix>
  71.                 <includeDate>false</includeDate>
  72.                 <includeTime>false</includeTime>
  73.                 <includeLevel>false</includeLevel>
  74.                 <includeCategory>false</includeCategory>
  75.             </properties>
  76.             <filters>
  77.                 <pattern>Endpoint.*</pattern>
  78.                 <pattern>Service.*</pattern>
  79.                 <pattern>Configuration</pattern>
  80.             </filters>
  81.         </target>
  82.     </logging>
  83.  
  84.     <system>
  85.         <redeploy>
  86.             <enabled>false</enabled>
  87.             <!--
  88.             <watch-interval>20</watch-interval>
  89.             <watch-file>{context.root}/WEB-INF/flex/services-config.xml</watch-file>
  90.             <watch-file>{context.root}/WEB-INF/flex/proxy-config.xml</watch-file>
  91.             <watch-file>{context.root}/WEB-INF/flex/remoting-config.xml</watch-file>
  92.             <watch-file>{context.root}/WEB-INF/flex/messaging-config.xml</watch-file>
  93.             <watch-file>{context.root}/WEB-INF/flex/data-management-config.xml</watch-file>
  94.             <touch-file>{context.root}/WEB-INF/web.xml</touch-file>
  95.              -->
  96.         </redeploy>
  97.     </system>
  98.  
  99. </services-config>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement