Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
joshtynjala committed Jan 6, 2023
0 parents commit 519e553
Show file tree
Hide file tree
Showing 401 changed files with 42,487 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.DS_Store
Thumbs.db
364 changes: 364 additions & 0 deletions blazeds-turnkey-readme.htm

Large diffs are not rendered by default.

Binary file added blazeds.war
Binary file not shown.
Binary file added docs/javadoc.zip
Binary file not shown.
Binary file added ds-console.war
Binary file not shown.
61 changes: 61 additions & 0 deletions resources/ColdFusion/BlazeDS_for_CF.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
This file explains how to integrate BlazeDS with a ColdFusion 8 installation.

For ColdFusion 8 with integrated LCDS installation

0. Shutdown Coldfusion

1. Move aside the ColdFusion8/wwwroot/WEB-INF/flex directory

2. Edit ColdFusion8/WEB-INF/web.xml:
- Comment out/remove the definitions of FlexMxmlServlet and FlexInternalServlet servlets.
- Comment out/remove the servlet mapping for FlexMxmlServlet and FlexInternalServlet.
- Comment out/remove the taglig definition for the FlexTagLib

3. Follow the instructions for ColdFusion without Integrated LCDS below


ColdFusion 8 without Integrated LCDS installation

0. Shutdown ColdFusion.

1. Unzip blazeds.war in to a temporary directory (In this example c:\temp\BlazeDS).

2. Move aside the following jar files from ColdFusion8/lib:
flex-messaging.jar
flex-messaging-common.jar
flex-messaging-opt.jar
flex-messaging-req.jar

3. Copy the following jar files from c:\temp\BlazeDS\WEB-INF\lib to ColdFusion8/lib
flex-messaging-common.jar
flex-messaging-core.jar
flex-messaging-opt.jar
flex-messaging-proxy.jar
flex-messaging-remoting.jar

4. Create a new directory (create the WEB-INF/flex directory if needed):
ColdFusion8/wwwroot/WEB-INF/flex/jars

5. Copy the following jar files from c:\temp\BlazeDS\WEB-INF\lib to ColdFusion8/wwwroot/WEB-INF/flex/jars
concurent.jar
cfgatewayadapter

6. Set up the configuration files for BazeDS. You can copy the set of configuration files from the BlazeDS zip file (not the war file). Copy the following files in resources/ColdFusion to ColdFusion8/wwwroot/WEB-INF/flex:
services-config.xml
messaging-config.xml
proxy-config.xml
remoting-config.xml

(OPTIONAL)
You can continue to use the configuration files from your integrated LCDS installation by doing the following:
- Copy services-config.xml, messaging-config.xml, proxy-config.xml, and remoting-config.xml from the WEB-INF/flex directory you moved aside earlier back to ColdFusion8/wwwroot/WEB-INF/flex
- Remove from the services-config.xml file the line:
<service-include file-path="data-management-config.xml" />
- Remove the <channel-definition> for the ColdFusion specific RTMP channel (if not commented out) and remove the java-http and java-secure-http channels.
- Uncomment the java-amf, java-secure-amf and java-polling-amf channels. Do not include the java-rtmp channel.
- Edit the proxy-config.xml file and change the lines:
<channel ref="java-http"/>
<!-- <channel ref="java-amf"/> -->
To read
<channel ref="java-amf"/>

59 changes: 59 additions & 0 deletions resources/ColdFusion/messaging-config.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
<?xml version="1.0" encoding="UTF-8"?>
<service id="message-service"
class="flex.messaging.services.MessageService"
messageTypes="flex.messaging.messages.AsyncMessage">

<adapters>
<adapter-definition id="cfgateway" class="coldfusion.flex.CFEventGatewayAdapter" default="true" />
<adapter-definition id="actionscript" class="flex.messaging.services.messaging.adapters.ActionScriptAdapter"/>
<adapter-definition id="jms" class="flex.messaging.services.messaging.adapters.JMSAdapter"/>
</adapters>

<!-- ======================================== -->
<!-- ColdFusion Messaging Gateway -->
<!-- ======================================== -->
<destination id="ColdFusionGateway">
<adapter ref="cfgateway" />
<properties>
<!--
Star ('*') means gatewayid is found in the 'gatewayid' message header.
To restrict this destination to a specific gateway, enter its ID here
-->
<gatewayid>*</gatewayid>

<!--
If ColdFusion is running on a different host, enter that here.
Default is to expect ColdFusion and Flex to share the same web application.
You must enter 'localhost' if CF and Flex are not in the same web app.
<gatewayhost>10.1.1.1</gatewayhost>
-->

<!--
List the IP addresses of CF machines allowed to send messages to this destination
If not set, the default is to allow only this computer to connect.
<allowedIPs>10.1.1.1,10.2.2.2</allowedIPs>
-->

<!--
Credentials to pass along in the headers as CFUsername/CFPassword.
It is generally better to use setRemoteCredentials() API on client.
<remote-username></remote-username>
<remote-password></remote-password>
-->

<!--
You can add general Flex Messaging network and server properties here.
-->

</properties>

<!-- You should use the ColdFusion specific channels -->
<channels>
<channel ref="cf-polling-amf"/>
</channels>
</destination>

</service>
26 changes: 26 additions & 0 deletions resources/ColdFusion/proxy-config.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<service id="proxy-service"
class="flex.messaging.services.HTTPProxyService"
messageTypes="flex.messaging.messages.HTTPMessage,flex.messaging.messages.SOAPMessage">

<properties>
<connection-manager>
<max-total-connections>100</max-total-connections>
<default-max-connections-per-host>2</default-max-connections-per-host>
</connection-manager>
<allow-lax-ssl>true</allow-lax-ssl>
</properties>

<adapters>
<adapter-definition id="http-proxy" class="flex.messaging.services.http.HTTPProxyAdapter" default="true"/>
<adapter-definition id="soap-proxy" class="flex.messaging.services.http.SOAPProxyAdapter"/>
</adapters>

<default-channels>
<channel ref="java-amf"/>
</default-channels>

<destination id="DefaultHTTP">
</destination>

</service>
40 changes: 40 additions & 0 deletions resources/ColdFusion/remoting-config.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<?xml version="1.0" encoding="UTF-8"?>
<service id="remoting-service"
class="flex.messaging.services.RemotingService"
messageTypes="flex.messaging.messages.RemotingMessage">

<adapters>
<adapter-definition id="cf-object" class="coldfusion.flash.messaging.ColdFusionAdapter" default="true"/>
<adapter-definition id="java-object" class="flex.messaging.services.remoting.adapters.JavaAdapter"/>
</adapters>

<default-channels>
<channel ref="my-cfamf"/>
</default-channels>

<destination id="ColdFusion">
<channels>
<channel ref="my-cfamf"/>
</channels>
<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>false</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>false</force-cfc-lowercase>
<!-- Query column names -->
<force-query-lowercase>false</force-query-lowercase>
<!-- struct keys -->
<force-struct-lowercase>false</force-struct-lowercase>
</property-case>
</properties>
</destination>

</service>
126 changes: 126 additions & 0 deletions resources/ColdFusion/services-config.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
<?xml version="1.0" encoding="UTF-8"?>
<services-config>

<services>
<service-include file-path="remoting-config.xml" />
<service-include file-path="proxy-config.xml" />
<service-include file-path="messaging-config.xml" />
</services>

<security>
<login-command class="flex.messaging.security.JRunLoginCommand" server="JRun"/>
<!-- Uncomment the correct app server
<login-command class="flex.messaging.security.TomcatLoginCommand" server="Tomcat"/>
<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 Based Endpoints -->
<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="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>
<serialization>
<instantiate-types>false</instantiate-types>
</serialization>
</properties>
</channel-definition>

<!-- Java Based Endpoints -->
<channel-definition id="java-amf" class="mx.messaging.channels.AMFChannel">
<endpoint uri="http://{server.name}:{server.port}{context.root}/flex2gateway/amf" class="flex.messaging.endpoints.AMFEndpoint"/>
</channel-definition>

<channel-definition id="java-secure-amf" class="mx.messaging.channels.SecureAMFChannel">
<endpoint uri="https://{server.name}:{server.port}{context.root}/flex2gateway/amfsecure" class="flex.messaging.endpoints.SecureAMFEndpoint"/>
</channel-definition>

<channel-definition id="java-polling-amf" class="mx.messaging.channels.AMFChannel">
<endpoint uri="http://{server.name}:{server.port}{context.root}/flex2gateway/amfpolling" class="flex.messaging.endpoints.AMFEndpoint"/>
<properties>
<polling-enabled>true</polling-enabled>
<polling-interval-seconds>8</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>
-->
</channels>

<logging>
<target class="flex.messaging.log.ConsoleTarget" level="Error">
<properties>
<prefix>[BlazeDS] </prefix>
<includeDate>false</includeDate>
<includeTime>false</includeTime>
<includeLevel>false</includeLevel>
<includeCategory>false</includeCategory>
</properties>
<filters>
<pattern>Endpoint.*</pattern>
<pattern>Service.*</pattern>
<pattern>Configuration</pattern>
<pattern>Message.*</pattern>
</filters>
</target>
</logging>

<system>
<manageable>false</manageable>
<!--
<redeploy>
<enabled>true</enabled>
<watch-interval>20</watch-interval>
<watch-file>{context.root}/WEB-INF/flex/services-config.xml</watch-file>
<watch-file>{context.root}/WEB-INF/flex/proxy-config.xml</watch-file>
<watch-file>{context.root}/WEB-INF/flex/remoting-config.xml</watch-file>
<watch-file>{context.root}/WEB-INF/flex/messaging-config.xml</watch-file>
<watch-file>{context.root}/WEB-INF/flex/data-management-config.xml</watch-file>
<touch-file>{context.root}/WEB-INF/web.xml</touch-file>
</redeploy>
-->
</system>

</services-config>
Loading

0 comments on commit 519e553

Please sign in to comment.