Created
July 10, 2018 17:07
-
-
Save byron70/5582cb5149ab91d7156fdf2f4b7bd05a to your computer and use it in GitHub Desktop.
Lucee Remoting Configuration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<service id="remoting-service" | |
class="flex.messaging.services.RemotingService"> | |
<adapters> | |
<adapter-definition id="cf-object" class="org.lucee.extension.net.flex.LuceeAdapter" default="true"/> | |
<adapter-definition id="java-object" class="flex.messaging.services.remoting.adapters.JavaAdapter"/> | |
</adapters> | |
<default-channels> | |
<channel ref="my-cfamf"/> | |
<channel ref="classic-cfamf"/> | |
</default-channels> | |
<!-- this is documented that it can be "ColdFusion", I found the full CFC path was necessary to get things working right --> | |
<destination id="vs.admin.flash_dev.visualservercfc"> | |
<properties> | |
<source>*</source> | |
<!-- define the resolution rules and access level of the cfc being invoked --> | |
<access> | |
<!-- Use the ColdFusion mappings to find CFCs, by default only CFC files under your webroot can be found. --> | |
<use-mappings>true</use-mappings> | |
<!-- allow "public and remote" or just "remote" methods to be invoked --> | |
<method-access-level>remote</method-access-level> | |
</access> | |
<property-case> | |
<!-- cfc property names --> | |
<force-cfc-lowercase>true</force-cfc-lowercase> | |
<!-- Query column names --> | |
<force-query-lowercase>true</force-query-lowercase> | |
<!-- struct keys --> | |
<force-struct-lowercase>true</force-struct-lowercase> | |
</property-case> | |
</properties> | |
</destination> | |
</service> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<services-config> | |
<services> | |
<service-include file-path="remoting-config.xml" /> | |
</services> | |
<security> | |
<login-command class="flex.messaging.security.TomcatLoginCommand" server="Tomcat"/> | |
<!-- Uncomment the correct app server | |
<login-command class="flex.messaging.security.TomcatLoginCommand" server="JBoss"> | |
<login-command class="flex.messaging.security.JRunLoginCommand" server="JRun"/> | |
<login-command class="flex.messaging.security.WeblogicLoginCommand" server="Weblogic"/> | |
<login-command class="flex.messaging.security.WebSphereLoginCommand" server="WebSphere"/> | |
--> | |
<!-- | |
<security-constraint id="basic-read-access"> | |
<auth-method>Basic</auth-method> | |
<roles> | |
<role>guests</role> | |
<role>accountants</role> | |
<role>employees</role> | |
<role>managers</role> | |
</roles> | |
</security-constraint> | |
--> | |
</security> | |
<channels> | |
<!-- CF --> | |
<channel-definition id="my-cfamf" class="mx.messaging.channels.AMFChannel"> | |
<endpoint uri="http://{server.name}:{server.port}{context.root}/flex2gateway/" class="flex.messaging.endpoints.AMFEndpoint"/> | |
<properties> | |
<polling-enabled>false</polling-enabled> | |
<serialization> | |
<instantiate-types>false</instantiate-types> | |
</serialization> | |
</properties> | |
</channel-definition> | |
<channel-definition id="classic-cfamf" class="mx.messaging.channels.AMFChannel"> | |
<endpoint uri="http://{server.name}:{server.port}{context.root}/flashservices/gateway/" class="flex.messaging.endpoints.AMFEndpoint"/> | |
<properties> | |
<polling-enabled>false</polling-enabled> | |
<serialization> | |
<instantiate-types>false</instantiate-types> | |
</serialization> | |
</properties> | |
</channel-definition> | |
<channel-definition id="cf-polling-amf" class="mx.messaging.channels.AMFChannel"> | |
<endpoint uri="http://{server.name}:{server.port}{context.root}/flex2gateway/cfamfpolling" class="flex.messaging.endpoints.AMFEndpoint"/> | |
<properties> | |
<polling-enabled>true</polling-enabled> | |
<polling-interval-seconds>8</polling-interval-seconds> | |
<serialization> | |
<instantiate-types>false</instantiate-types> | |
</serialization> | |
</properties> | |
</channel-definition> | |
<channel-definition id="my-cfamf-secure" class="mx.messaging.channels.SecureAMFChannel"> | |
<endpoint uri="https://{server.name}:{server.port}{context.root}/flex2gateway/cfamfsecure" class="flex.messaging.endpoints.SecureAMFEndpoint"/> | |
<properties> | |
<polling-enabled>false</polling-enabled> | |
<add-no-cache-headers>false</add-no-cache-headers> | |
<serialization> | |
<instantiate-types>false</instantiate-types> | |
</serialization> | |
</properties> | |
</channel-definition> | |
<!-- Java --> | |
<channel-definition id="my-amf" class="mx.messaging.channels.AMFChannel"> | |
<endpoint url="http://{server.name}:{server.port}/{context.root}/messagebroker/amf" class="flex.messaging.endpoints.AMFEndpoint"/> | |
</channel-definition> | |
<channel-definition id="my-secure-amf" class="mx.messaging.channels.SecureAMFChannel"> | |
<endpoint url="https://{server.name}:{server.port}/{context.root}/messagebroker/amfsecure" class="flex.messaging.endpoints.SecureAMFEndpoint"/> | |
<properties> | |
<add-no-cache-headers>false</add-no-cache-headers> | |
</properties> | |
</channel-definition> | |
<channel-definition id="my-polling-amf" class="mx.messaging.channels.AMFChannel"> | |
<endpoint url="http://{server.name}:{server.port}/{context.root}/messagebroker/amfpolling" class="flex.messaging.endpoints.AMFEndpoint"/> | |
<properties> | |
<polling-enabled>true</polling-enabled> | |
<polling-interval-seconds>4</polling-interval-seconds> | |
</properties> | |
</channel-definition> | |
<channel-definition id="java-http" class="mx.messaging.channels.HTTPChannel"> | |
<endpoint uri="http://{server.name}:{server.port}{context.root}/flex2gateway/http" class="flex.messaging.endpoints.HTTPEndpoint"/> | |
</channel-definition> | |
<channel-definition id="java-secure-http" class="mx.messaging.channels.SecureHTTPChannel"> | |
<endpoint uri="https://{server.name}:{server.port}{context.root}/flex2gateway/httpsecure" class="flex.messaging.endpoints.SecureHTTPEndpoint"/> | |
</channel-definition> | |
<!-- Lucee Channels | |
<channel-definition id="lucee-amf" class="mx.messaging.channels.AMFChannel"> | |
<endpoint url="http://{server.name}:{server.port}/{context.root}/messagebroker/luceeamf" class="flex.messaging.endpoints.AMFEndpoint"/> | |
</channel-definition> | |
<channel-definition id="my-secure-amf" class="mx.messaging.channels.SecureAMFChannel"> | |
<endpoint url="https://{server.name}:{server.port}/{context.root}/messagebroker/amfsecure" class="flex.messaging.endpoints.SecureAMFEndpoint"/> | |
<properties> | |
<add-no-cache-headers>false</add-no-cache-headers> | |
</properties> | |
</channel-definition> | |
<channel-definition id="my-polling-amf" class="mx.messaging.channels.AMFChannel"> | |
<endpoint url="http://{server.name}:{server.port}/{context.root}/messagebroker/amfpolling" class="flex.messaging.endpoints.AMFEndpoint"/> | |
<properties> | |
<polling-enabled>true</polling-enabled> | |
<polling-interval-seconds>4</polling-interval-seconds> | |
</properties> | |
</channel-definition> | |
--> | |
</channels> | |
<logging> | |
<target class="flex.messaging.log.ConsoleTarget" level="Error"> | |
<properties> | |
<prefix>[BlazeDS] </prefix> | |
<includeDate>true</includeDate> | |
<includeTime>true</includeTime> | |
<includeLevel>true</includeLevel> | |
<includeCategory>true</includeCategory> | |
</properties> | |
<filters> | |
<pattern>*</pattern> | |
<pattern>Endpoint.*</pattern> | |
<pattern>Service.*</pattern> | |
<pattern>Configuration</pattern> | |
</filters> | |
</target> | |
</logging> | |
<system> | |
<redeploy> | |
<enabled>true</enabled> | |
<watch-interval>5</watch-interval> | |
<watch-file>{context.root}/WEB-INF/flex/services-config.xml</watch-file> | |
<watch-file>{context.root}/WEB-INF/flex/remoting-config.xml</watch-file> | |
<touch-file>{context.root}/WEB-INF/web.xml</touch-file> | |
</redeploy> | |
</system> | |
</services-config> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="ISO-8859-1"?> | |
<web-app> | |
<servlet> | |
<servlet-name>MessageBrokerServlet</servlet-name> | |
<servlet-class>flex.messaging.MessageBrokerServlet</servlet-class> | |
<init-param> | |
<param-name>services.configuration.file</param-name> | |
<param-value>/WEB-INF/flex/services-config.xml</param-value> | |
</init-param> | |
<init-param> | |
<param-name>messageBrokerId</param-name> | |
<param-value>vs</param-value> | |
</init-param> | |
<load-on-startup>3</load-on-startup> | |
</servlet> | |
<servlet-mapping> | |
<servlet-name>MessageBrokerServlet</servlet-name> | |
<url-pattern>/flex2gateway/*</url-pattern> | |
<url-pattern>/flashservices/gateway/*</url-pattern> | |
<url-pattern>/messagebroker/*</url-pattern> | |
</servlet-mapping> | |
</web-app> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment