You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2014/04/25 07:34:48 UTC

[50/51] [partial] BlazeDS Donation from Adobe Systems Inc

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/7a58369c/apps/blazeds-spring/WEB-INF/classes/commons-logging.properties
----------------------------------------------------------------------
diff --git a/apps/blazeds-spring/WEB-INF/classes/commons-logging.properties b/apps/blazeds-spring/WEB-INF/classes/commons-logging.properties
new file mode 100755
index 0000000..46c3be4
--- /dev/null
+++ b/apps/blazeds-spring/WEB-INF/classes/commons-logging.properties
@@ -0,0 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# suppress logging for 3rd-party libraries using commons-logging
+# Flex logging is not configured here. It is configured through in the logging section of flex-config.xml
+org.apache.commons.logging.LogFactory=org.apache.commons.logging.impl.LogFactoryImpl
+org.apache.commons.logging.Log=org.apache.commons.logging.impl.NoOpLog
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/7a58369c/apps/blazeds-spring/WEB-INF/flex-servlet.xml
----------------------------------------------------------------------
diff --git a/apps/blazeds-spring/WEB-INF/flex-servlet.xml b/apps/blazeds-spring/WEB-INF/flex-servlet.xml
new file mode 100755
index 0000000..21d1e5a
--- /dev/null
+++ b/apps/blazeds-spring/WEB-INF/flex-servlet.xml
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<beans xmlns="http://www.springframework.org/schema/beans"
+    xmlns:flex="http://www.springframework.org/schema/flex"
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xsi:schemaLocation="
+        http://www.springframework.org/schema/beans
+        http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
+        http://www.springframework.org/schema/flex 
+        http://www.springframework.org/schema/flex/spring-flex-1.5.xsd">
+ 
+    <flex:message-broker>
+        <flex:message-service
+            default-channels="my-streaming-amf,my-longpolling-amf,my-polling-amf" />
+        <flex:secured />
+    </flex:message-broker>
+</beans>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/7a58369c/apps/blazeds-spring/WEB-INF/flex/messaging-config.xml
----------------------------------------------------------------------
diff --git a/apps/blazeds-spring/WEB-INF/flex/messaging-config.xml b/apps/blazeds-spring/WEB-INF/flex/messaging-config.xml
new file mode 100755
index 0000000..34f4d3f
--- /dev/null
+++ b/apps/blazeds-spring/WEB-INF/flex/messaging-config.xml
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<service id="message-service" 
+    class="flex.messaging.services.MessageService">
+
+    <adapters>
+        <adapter-definition id="actionscript" class="flex.messaging.services.messaging.adapters.ActionScriptAdapter" default="true" />
+        <!-- <adapter-definition id="jms" class="flex.messaging.services.messaging.adapters.JMSAdapter"/> -->
+    </adapters>
+
+    <default-channels>
+        <channel ref="my-polling-amf"/>
+    </default-channels>
+
+</service>

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/7a58369c/apps/blazeds-spring/WEB-INF/flex/proxy-config.xml
----------------------------------------------------------------------
diff --git a/apps/blazeds-spring/WEB-INF/flex/proxy-config.xml b/apps/blazeds-spring/WEB-INF/flex/proxy-config.xml
new file mode 100755
index 0000000..9335e6c
--- /dev/null
+++ b/apps/blazeds-spring/WEB-INF/flex/proxy-config.xml
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<service id="proxy-service" 
+    class="flex.messaging.services.HTTPProxyService">
+
+    <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="my-amf"/>
+    </default-channels>
+
+    <destination id="DefaultHTTP">
+    </destination>
+
+</service>

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/7a58369c/apps/blazeds-spring/WEB-INF/flex/remoting-config.xml
----------------------------------------------------------------------
diff --git a/apps/blazeds-spring/WEB-INF/flex/remoting-config.xml b/apps/blazeds-spring/WEB-INF/flex/remoting-config.xml
new file mode 100755
index 0000000..88a4a1f
--- /dev/null
+++ b/apps/blazeds-spring/WEB-INF/flex/remoting-config.xml
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<service id="remoting-service" 
+    class="flex.messaging.services.RemotingService">
+
+    <adapters>
+        <adapter-definition id="java-object" class="flex.messaging.services.remoting.adapters.JavaAdapter" default="true"/>
+    </adapters>
+
+    <default-channels>
+        <channel ref="my-amf"/>
+    </default-channels>
+
+</service>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/7a58369c/apps/blazeds-spring/WEB-INF/flex/services-config.xml
----------------------------------------------------------------------
diff --git a/apps/blazeds-spring/WEB-INF/flex/services-config.xml b/apps/blazeds-spring/WEB-INF/flex/services-config.xml
new file mode 100755
index 0000000..289fbfe
--- /dev/null
+++ b/apps/blazeds-spring/WEB-INF/flex/services-config.xml
@@ -0,0 +1,117 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<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.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>
+
+        <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="my-http" class="mx.messaging.channels.HTTPChannel">
+            <endpoint url="http://{server.name}:{server.port}/{context.root}/messagebroker/http" class="flex.messaging.endpoints.HTTPEndpoint"/>
+        </channel-definition>
+
+        <channel-definition id="my-secure-http" class="mx.messaging.channels.SecureHTTPChannel">
+            <endpoint url="https://{server.name}:{server.port}/{context.root}/messagebroker/httpsecure" class="flex.messaging.endpoints.SecureHTTPEndpoint"/>
+            <properties>
+                <add-no-cache-headers>false</add-no-cache-headers>
+            </properties>
+        </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>
+            </filters>
+        </target>
+    </logging>
+
+    <system>
+        <redeploy>
+            <enabled>false</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>

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/7a58369c/apps/blazeds-spring/WEB-INF/spring/app-config.xml
----------------------------------------------------------------------
diff --git a/apps/blazeds-spring/WEB-INF/spring/app-config.xml b/apps/blazeds-spring/WEB-INF/spring/app-config.xml
new file mode 100755
index 0000000..b78ba74
--- /dev/null
+++ b/apps/blazeds-spring/WEB-INF/spring/app-config.xml
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<beans xmlns="http://www.springframework.org/schema/beans"
+	xmlns:security="http://www.springframework.org/schema/security"
+	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+	xmlns:context="http://www.springframework.org/schema/context"
+	xsi:schemaLocation="
+		http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
+		http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-3.0.xsd
+		http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd">
+
+</beans>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/7a58369c/apps/blazeds-spring/WEB-INF/spring/infrastructure-config.xml
----------------------------------------------------------------------
diff --git a/apps/blazeds-spring/WEB-INF/spring/infrastructure-config.xml b/apps/blazeds-spring/WEB-INF/spring/infrastructure-config.xml
new file mode 100755
index 0000000..5cbe9ab
--- /dev/null
+++ b/apps/blazeds-spring/WEB-INF/spring/infrastructure-config.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<beans xmlns="http://www.springframework.org/schema/beans"
+	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+	xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
+
+
+</beans>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/7a58369c/apps/blazeds-spring/WEB-INF/spring/security-config.xml
----------------------------------------------------------------------
diff --git a/apps/blazeds-spring/WEB-INF/spring/security-config.xml b/apps/blazeds-spring/WEB-INF/spring/security-config.xml
new file mode 100755
index 0000000..06edb10
--- /dev/null
+++ b/apps/blazeds-spring/WEB-INF/spring/security-config.xml
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<beans:beans xmlns="http://www.springframework.org/schema/security"
+    xmlns:beans="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
+                        http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-3.0.xsd">
+
+    <http entry-point-ref="entryPoint">
+        <anonymous enabled="false"/>
+    </http>
+    
+    <beans:bean id="entryPoint" class="org.springframework.security.web.authentication.Http403ForbiddenEntryPoint"/>
+    
+    <authentication-manager>
+       <authentication-provider>
+           <user-service>
+            <user name="john" password="john" authorities="ROLE_USER" />
+            <user name="admin" password="admin" authorities="ROLE_USER, ROLE_ADMIN" />
+            <user name="guest" password="guest" authorities="ROLE_GUEST" />
+           </user-service>
+       </authentication-provider>
+    </authentication-manager>
+
+</beans:beans>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/7a58369c/apps/blazeds-spring/WEB-INF/web.xml
----------------------------------------------------------------------
diff --git a/apps/blazeds-spring/WEB-INF/web.xml b/apps/blazeds-spring/WEB-INF/web.xml
new file mode 100755
index 0000000..ec5c772
--- /dev/null
+++ b/apps/blazeds-spring/WEB-INF/web.xml
@@ -0,0 +1,102 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
+<web-app>
+
+    <display-name>BlazeDS Spring Integration Application</display-name>
+    <description>BlazeDS Spring Integration Application</description>
+
+    <context-param>
+        <param-name>contextConfigLocation</param-name>
+        <param-value>
+            /WEB-INF/spring/*-config.xml
+        </param-value>
+    </context-param>
+    
+    <filter>
+        <filter-name>springSecurityFilterChain</filter-name>
+        <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
+    </filter>
+
+    <filter-mapping>
+      <filter-name>springSecurityFilterChain</filter-name>
+      <url-pattern>/*</url-pattern>
+    </filter-mapping>
+
+    <!-- Http Flex Session attribute and binding listener support -->
+    <listener>
+        <listener-class>flex.messaging.HttpFlexSession</listener-class>
+    </listener>
+
+    <listener>
+        <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
+    </listener>
+
+    <!-- Spring Dispatcher Servlet -->   
+    <servlet>
+        <servlet-name>flex</servlet-name>
+        <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
+        <load-on-startup>1</load-on-startup>
+    </servlet>
+
+<!-- begin rds
+    <servlet>
+        <servlet-name>RDSDispatchServlet</servlet-name>
+        <display-name>RDSDispatchServlet</display-name>
+        <servlet-class>flex.rds.server.servlet.FrontEndServlet</servlet-class>
+        <init-param>
+            <param-name>useAppserverSecurity</param-name>
+            <param-value>true</param-value>
+        </init-param>
+        <init-param>
+			<param-name>messageBrokerId</param-name>
+			<param-value>_messageBroker</param-value>
+		</init-param>
+        <load-on-startup>10</load-on-startup>
+    </servlet>
+
+    <servlet-mapping id="RDS_DISPATCH_MAPPING">
+        <servlet-name>RDSDispatchServlet</servlet-name>
+        <url-pattern>/CFIDE/main/ide.cfm</url-pattern>
+    </servlet-mapping>
+end rds -->
+
+    <servlet-mapping>
+        <servlet-name>flex</servlet-name>
+        <url-pattern>/messagebroker/*</url-pattern>
+     </servlet-mapping>
+
+    <welcome-file-list>
+        <welcome-file>index.html</welcome-file>
+        <welcome-file>index.htm</welcome-file>
+    </welcome-file-list>
+
+    <!-- for WebSphere deployment, please uncomment -->
+    <!--
+    <resource-ref>
+        <description>Flex Messaging WorkManager</description>
+        <res-ref-name>wm/MessagingWorkManager</res-ref-name>
+        <res-type>com.ibm.websphere.asynchbeans.WorkManager</res-type>
+        <res-auth>Container</res-auth>
+        <res-sharing-scope>Shareable</res-sharing-scope>
+    </resource-ref>
+    -->
+
+</web-app>

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/7a58369c/apps/blazeds-spring/build.xml
----------------------------------------------------------------------
diff --git a/apps/blazeds-spring/build.xml b/apps/blazeds-spring/build.xml
new file mode 100755
index 0000000..dc3b1c4
--- /dev/null
+++ b/apps/blazeds-spring/build.xml
@@ -0,0 +1,97 @@
+<?xml version="1.0"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+
+<project name="blazeds-spring.war/build.xml" default="main" basedir="../..">
+
+    <property file="${basedir}/build.properties" />
+    <property name="blazeds-spring.war" value="${basedir}/apps/blazeds-spring" />
+    <property name="dist.dir" value="${basedir}/dist" />
+    <property name="src.dir" value="${blazeds-spring.war}/WEB-INF/src"/>
+    <property name="classes.dir" value="${blazeds-spring.war}/WEB-INF/classes"/>
+
+    <path id="classpath">
+        <fileset dir="${blazeds-spring.war}/WEB-INF/lib" includes="**/*.jar" />
+    </path>
+
+    <target name="main" depends="clean,compile" />
+
+    <target name="prepare">
+        <mkdir dir="${blazeds-spring.war}/WEB-INF/src" />
+        <mkdir dir="${blazeds-spring.war}/WEB-INF/lib" />
+        <mkdir dir="${blazeds-spring.war}/WEB-INF/classes" />
+    </target>
+
+    <target name="run-depend" if="src.depend">
+        <echo message="Removing class files that changed and dependent class files." />
+        <depend cache="${classes.dir}" srcdir="${src.dir}" destdir="${classes.dir}" />
+    </target>
+
+    <target name="copy-resources">
+        <copy todir="${blazeds-spring.war}/WEB-INF/lib">
+            <fileset dir="${basedir}/lib" includes="${webapp.ce.lib}" />
+            <fileset dir="${basedir}/lib/spring" includes="**/*" />
+            <fileset dir="${basedir}/lib/aspectj" includes="**/*" />
+        </copy>
+        <copy todir="${classes.dir}">
+            <fileset dir="${basedir}/lib" includes="${webapp.classes}" />
+        </copy>
+    
+    	<propertyfile file="${blazeds-spring.war}/WEB-INF/flex/version.properties">
+    	    <entry key="build" value="${manifest.Implementation-Version}.${build.number}"/>
+    	    <entry key="minimumSDKVersion" value="${min.sdk.version}"/>
+    	</propertyfile>
+
+    </target>
+
+    <target name="compile" depends="prepare,run-depend,copy-resources" description="compile">
+        <javac source="1.4" debug="${src.debug}" destdir="${classes.dir}" srcdir="${src.dir}" classpathref="classpath" />
+    </target>
+
+    <target name="package" description=" Creates distribution war file">
+        <mkdir dir="${dist.dir}" />
+        <war file="${dist.dir}/blazeds-spring.war" webxml="${blazeds-spring.war}/WEB-INF/web.xml">
+            <manifest>
+                <attribute name="Sealed" value="${manifest.sealed}" />
+                <attribute name="Implementation-Title" value="${manifest.Implementation-Title} - BlazeDS Spring Integration Application" />
+                <attribute name="Implementation-Version" value="${manifest.Implementation-Version}.${build.number}" />
+                <attribute name="Implementation-Vendor" value="${manifest.Implementation-Vendor}" />
+            </manifest>
+            <fileset dir="${blazeds-spring.war}">
+                <exclude name="build.xml" />
+                <exclude name="WEB-INF/src/**/*.java" />
+                <exclude name="WEB-INF/jsp/**/*" />
+                <exclude name="WEB-INF/sessions/**/*" />
+                <!-- This is included in the war task already -->
+                <exclude name="WEB-INF/web.xml" />
+            </fileset>
+        </war>
+    </target>
+
+    <target name="clean" description="--> Removes jars and classes">
+        <delete quiet="true">
+            <fileset dir="${blazeds-spring.war}/WEB-INF/lib" includes="**/*" />
+        </delete>
+        <delete quiet="true">
+            <fileset dir="${classes.dir}" includes="**/*.class"/>
+        </delete>
+        <delete quiet="true" file="${dist.dir}/blazeds-spring.war" />
+    </target>
+
+</project>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/7a58369c/apps/blazeds-spring/index.htm
----------------------------------------------------------------------
diff --git a/apps/blazeds-spring/index.htm b/apps/blazeds-spring/index.htm
new file mode 100755
index 0000000..8ce9112
--- /dev/null
+++ b/apps/blazeds-spring/index.htm
@@ -0,0 +1,50 @@
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+<title>Welcome to BlazeDS</title>
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+<style>
+body, pre { font-family:Tahoma,Helvetica,sans-serif; font-size:10pt; }
+div.indent { margin-left: 20;}
+span.reference { font-weight: bold }
+span.header {white-space:nowrap }
+span.title {font-size:12pt; color:blue}
+span.highlight { background-color: #FFFFB7 }
+table.code { font-family: courier; font-size: 9pt;}
+span.fade { color:#666666; font-size:11px }
+</style>
+</head>
+<body>
+<span class="title">Welcome to BlazeDS</span>
+<br>
+&nbsp;<br>
+This is an empty BlazeDS application that serves as a template for creating your custom BlazeDS Spring application.
+<!--
+<br>&nbsp;<br>
+If you're looking for sample Flex applications, check with the system administrator for the URL where the samples are deployed.
+-->
+<br>
+&nbsp;<br>
+Visit the <a href="http://opensource.adobe.com/wiki/display/blazeds/BlazeDS">product page</a> for documentation and further information.
+</body>
+</html>
+
+
+
+

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/7a58369c/apps/blazeds/WEB-INF/classes/commons-logging.properties
----------------------------------------------------------------------
diff --git a/apps/blazeds/WEB-INF/classes/commons-logging.properties b/apps/blazeds/WEB-INF/classes/commons-logging.properties
new file mode 100755
index 0000000..46c3be4
--- /dev/null
+++ b/apps/blazeds/WEB-INF/classes/commons-logging.properties
@@ -0,0 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# suppress logging for 3rd-party libraries using commons-logging
+# Flex logging is not configured here. It is configured through in the logging section of flex-config.xml
+org.apache.commons.logging.LogFactory=org.apache.commons.logging.impl.LogFactoryImpl
+org.apache.commons.logging.Log=org.apache.commons.logging.impl.NoOpLog
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/7a58369c/apps/blazeds/WEB-INF/flex/messaging-config.xml
----------------------------------------------------------------------
diff --git a/apps/blazeds/WEB-INF/flex/messaging-config.xml b/apps/blazeds/WEB-INF/flex/messaging-config.xml
new file mode 100755
index 0000000..34f4d3f
--- /dev/null
+++ b/apps/blazeds/WEB-INF/flex/messaging-config.xml
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<service id="message-service" 
+    class="flex.messaging.services.MessageService">
+
+    <adapters>
+        <adapter-definition id="actionscript" class="flex.messaging.services.messaging.adapters.ActionScriptAdapter" default="true" />
+        <!-- <adapter-definition id="jms" class="flex.messaging.services.messaging.adapters.JMSAdapter"/> -->
+    </adapters>
+
+    <default-channels>
+        <channel ref="my-polling-amf"/>
+    </default-channels>
+
+</service>

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/7a58369c/apps/blazeds/WEB-INF/flex/proxy-config.xml
----------------------------------------------------------------------
diff --git a/apps/blazeds/WEB-INF/flex/proxy-config.xml b/apps/blazeds/WEB-INF/flex/proxy-config.xml
new file mode 100755
index 0000000..9335e6c
--- /dev/null
+++ b/apps/blazeds/WEB-INF/flex/proxy-config.xml
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<service id="proxy-service" 
+    class="flex.messaging.services.HTTPProxyService">
+
+    <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="my-amf"/>
+    </default-channels>
+
+    <destination id="DefaultHTTP">
+    </destination>
+
+</service>

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/7a58369c/apps/blazeds/WEB-INF/flex/remoting-config.xml
----------------------------------------------------------------------
diff --git a/apps/blazeds/WEB-INF/flex/remoting-config.xml b/apps/blazeds/WEB-INF/flex/remoting-config.xml
new file mode 100755
index 0000000..88a4a1f
--- /dev/null
+++ b/apps/blazeds/WEB-INF/flex/remoting-config.xml
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<service id="remoting-service" 
+    class="flex.messaging.services.RemotingService">
+
+    <adapters>
+        <adapter-definition id="java-object" class="flex.messaging.services.remoting.adapters.JavaAdapter" default="true"/>
+    </adapters>
+
+    <default-channels>
+        <channel ref="my-amf"/>
+    </default-channels>
+
+</service>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/7a58369c/apps/blazeds/WEB-INF/flex/services-config.xml
----------------------------------------------------------------------
diff --git a/apps/blazeds/WEB-INF/flex/services-config.xml b/apps/blazeds/WEB-INF/flex/services-config.xml
new file mode 100755
index 0000000..289fbfe
--- /dev/null
+++ b/apps/blazeds/WEB-INF/flex/services-config.xml
@@ -0,0 +1,117 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<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.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>
+
+        <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="my-http" class="mx.messaging.channels.HTTPChannel">
+            <endpoint url="http://{server.name}:{server.port}/{context.root}/messagebroker/http" class="flex.messaging.endpoints.HTTPEndpoint"/>
+        </channel-definition>
+
+        <channel-definition id="my-secure-http" class="mx.messaging.channels.SecureHTTPChannel">
+            <endpoint url="https://{server.name}:{server.port}/{context.root}/messagebroker/httpsecure" class="flex.messaging.endpoints.SecureHTTPEndpoint"/>
+            <properties>
+                <add-no-cache-headers>false</add-no-cache-headers>
+            </properties>
+        </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>
+            </filters>
+        </target>
+    </logging>
+
+    <system>
+        <redeploy>
+            <enabled>false</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>

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/7a58369c/apps/blazeds/WEB-INF/web.xml
----------------------------------------------------------------------
diff --git a/apps/blazeds/WEB-INF/web.xml b/apps/blazeds/WEB-INF/web.xml
new file mode 100755
index 0000000..9bf2f4a
--- /dev/null
+++ b/apps/blazeds/WEB-INF/web.xml
@@ -0,0 +1,82 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
+<web-app>
+
+    <display-name>BlazeDS</display-name>
+    <description>BlazeDS Application</description>
+
+    <!-- Http Flex Session attribute and binding listener support -->
+    <listener>
+        <listener-class>flex.messaging.HttpFlexSession</listener-class>
+    </listener>
+
+    <!-- MessageBroker Servlet -->
+    <servlet>
+        <servlet-name>MessageBrokerServlet</servlet-name>
+        <display-name>MessageBrokerServlet</display-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>
+        <load-on-startup>1</load-on-startup>
+    </servlet>
+    
+<!-- begin rds
+    <servlet>
+        <servlet-name>RDSDispatchServlet</servlet-name>
+		<display-name>RDSDispatchServlet</display-name>
+        <servlet-class>flex.rds.server.servlet.FrontEndServlet</servlet-class>
+		<init-param>
+			<param-name>useAppserverSecurity</param-name>
+			<param-value>true</param-value>
+		</init-param>        
+        <load-on-startup>10</load-on-startup>
+    </servlet>
+
+    <servlet-mapping id="RDS_DISPATCH_MAPPING">
+        <servlet-name>RDSDispatchServlet</servlet-name>
+        <url-pattern>/CFIDE/main/ide.cfm</url-pattern>
+    </servlet-mapping>
+end rds -->
+
+    <servlet-mapping>
+        <servlet-name>MessageBrokerServlet</servlet-name>
+        <url-pattern>/messagebroker/*</url-pattern>
+    </servlet-mapping>
+
+    <welcome-file-list>
+        <welcome-file>index.html</welcome-file>
+        <welcome-file>index.htm</welcome-file>
+    </welcome-file-list>
+
+    <!-- for WebSphere deployment, please uncomment -->
+    <!--
+    <resource-ref>
+        <description>Flex Messaging WorkManager</description>
+        <res-ref-name>wm/MessagingWorkManager</res-ref-name>
+        <res-type>com.ibm.websphere.asynchbeans.WorkManager</res-type>
+        <res-auth>Container</res-auth>
+        <res-sharing-scope>Shareable</res-sharing-scope>
+    </resource-ref>
+    -->
+
+</web-app>

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/7a58369c/apps/blazeds/build.xml
----------------------------------------------------------------------
diff --git a/apps/blazeds/build.xml b/apps/blazeds/build.xml
new file mode 100755
index 0000000..8d8731b
--- /dev/null
+++ b/apps/blazeds/build.xml
@@ -0,0 +1,98 @@
+<?xml version="1.0"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+
+<project name="blazeds.war/build.xml" default="main" basedir="../..">
+
+    <property file="${basedir}/build.properties" />
+    <property name="blazeds.war" value="${basedir}/apps/blazeds" />
+    <property name="dist.dir" value="${basedir}/dist" />
+    <property name="src.dir" value="${blazeds.war}/WEB-INF/src"/>
+    <property name="classes.dir" value="${blazeds.war}/WEB-INF/classes"/>
+
+    <path id="classpath">
+        <fileset dir="${blazeds.war}/WEB-INF/lib" includes="**/*.jar" />
+    </path>
+
+    <target name="main" depends="clean,compile" />
+
+    <target name="prepare">
+        <mkdir dir="${blazeds.war}/WEB-INF/src" />
+        <mkdir dir="${blazeds.war}/WEB-INF/lib" />
+        <mkdir dir="${blazeds.war}/WEB-INF/classes" />
+    </target>
+
+    <target name="run-depend" if="src.depend">
+        <echo message="Removing class files that changed and dependent class files." />
+        <depend cache="${classes.dir}" srcdir="${src.dir}" destdir="${classes.dir}" />
+    </target>
+
+    <target name="copy-resources">
+        <copy todir="${blazeds.war}/WEB-INF/lib">
+            <fileset dir="${basedir}/lib" includes="${webapp.ce.lib}" />
+        </copy>
+        <copy todir="${classes.dir}">
+            <fileset dir="${basedir}/lib" includes="${webapp.classes}" />
+        </copy>
+    
+    	<propertyfile file="${blazeds.war}/WEB-INF/flex/version.properties">
+    	    <entry key="build" value="${manifest.Implementation-Version}.${build.number}"/>
+    	    <entry key="minimumSDKVersion" value="${min.sdk.version}"/>
+    	</propertyfile>
+
+    </target>
+
+    <target name="compile" depends="prepare,run-depend,copy-resources" description="compile">
+        <javac source="1.4" debug="${src.debug}" destdir="${classes.dir}" srcdir="${src.dir}" classpathref="classpath" />
+    </target>
+
+    <target name="package" description=" Creates distribution war file">
+        <mkdir dir="${dist.dir}" />
+        <war file="${dist.dir}/blazeds.war" webxml="${blazeds.war}/WEB-INF/web.xml">
+            <manifest>
+                <attribute name="Sealed" value="${manifest.sealed}" />
+                <attribute name="Implementation-Title" value="${manifest.Implementation-Title} - BlazeDS Application" />
+                <attribute name="Implementation-Version" value="${manifest.Implementation-Version}.${build.number}" />
+                <attribute name="Implementation-Vendor" value="${manifest.Implementation-Vendor}" />
+            </manifest>
+            <fileset dir="${blazeds.war}">
+                <exclude name="build.xml" />
+                <exclude name="WEB-INF/src/**/*.java" />
+                <exclude name="WEB-INF/jsp/**/*" />
+                <exclude name="WEB-INF/sessions/**/*" />
+                <!-- This is included in the war task already -->
+                <exclude name="WEB-INF/web.xml" />
+            </fileset>
+        </war>
+    </target>
+
+    <target name="clean" description="--> Removes jars and classes">
+        <delete quiet="true">
+            <fileset dir="${blazeds.war}/WEB-INF/lib" includes="${webapp.ce.lib},${old.jars.to.clean}" />
+        </delete>
+        <delete quiet="true">
+            <fileset dir="${classes.dir}" includes="**/*.class"/>
+        </delete>
+        <delete quiet="true" file="${dist.dir}/blazeds.war" />
+        <delete quiet="true" dir="${blazeds.war}/WEB-INF/lib" />
+        <delete quiet="true" dir="${blazeds.war}/WEB-INF/src" />
+        <delete quiet="true" file="${blazeds.war}/WEB-INF/flex/version.properties" />
+    </target>
+
+</project>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/7a58369c/apps/blazeds/index.htm
----------------------------------------------------------------------
diff --git a/apps/blazeds/index.htm b/apps/blazeds/index.htm
new file mode 100755
index 0000000..aeec257
--- /dev/null
+++ b/apps/blazeds/index.htm
@@ -0,0 +1,50 @@
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+<title>Welcome to BlazeDS</title>
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+<style>
+body, pre { font-family:Tahoma,Helvetica,sans-serif; font-size:10pt; }
+div.indent { margin-left: 20;}
+span.reference { font-weight: bold }
+span.header {white-space:nowrap }
+span.title {font-size:12pt; color:blue}
+span.highlight { background-color: #FFFFB7 }
+table.code { font-family: courier; font-size: 9pt;}
+span.fade { color:#666666; font-size:11px }
+</style>
+</head>
+<body>
+<span class="title">Welcome to BlazeDS</span>
+<br>
+&nbsp;<br>
+This is an empty BlazeDS application that serves as a template for creating your custom application.
+<!--
+<br>&nbsp;<br>
+If you're looking for sample Flex applications, check with the system administrator for the URL where the samples are deployed.
+-->
+<br>
+&nbsp;<br>
+Visit the <a href="http://opensource.adobe.com/wiki/display/blazeds/BlazeDS">product page</a> for documentation and further information.
+</body>
+</html>
+
+
+
+

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/7a58369c/apps/ds-console/ConsoleResultWindow.mxml
----------------------------------------------------------------------
diff --git a/apps/ds-console/ConsoleResultWindow.mxml b/apps/ds-console/ConsoleResultWindow.mxml
new file mode 100755
index 0000000..4a8eac2
--- /dev/null
+++ b/apps/ds-console/ConsoleResultWindow.mxml
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml" title="Results" width="200" height="200" showCloseButton="true" close="close()" borderStyle="solid">
+	<mx:Script>
+	<![CDATA[
+
+		import mx.managers.*;
+
+		public function showResult(result:Object):void
+		{
+			resultMessage.text = result.toString();
+		}
+
+		public function showSuccess():void
+		{
+			resultMessage.text = "Operation executed";
+		}
+
+		private function close():void
+		{
+			PopUpManager.removePopUp(this);
+		}
+
+	]]>
+	</mx:Script>
+	<mx:Spacer height="20%"/>	    
+	<mx:VBox height="80%">
+	   <mx:Label id="resultMessage" /> 
+	</mx:VBox>
+	
+</mx:TitleWindow>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/7a58369c/apps/ds-console/WEB-INF/flex/services-config.xml
----------------------------------------------------------------------
diff --git a/apps/ds-console/WEB-INF/flex/services-config.xml b/apps/ds-console/WEB-INF/flex/services-config.xml
new file mode 100755
index 0000000..9283f8c
--- /dev/null
+++ b/apps/ds-console/WEB-INF/flex/services-config.xml
@@ -0,0 +1,116 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<services-config>
+
+    <services>
+        <!--
+                REMOTING SERVICE
+        -->
+        <service id="remoting-service" class="flex.messaging.services.RemotingService">
+
+            <adapters>
+                <adapter-definition id="java-object" class="flex.messaging.services.remoting.adapters.JavaAdapter" default="true"/>
+            </adapters>
+       
+            <!-- Runtime management console destination -->
+            <destination id="RuntimeManagement" channels="amf">
+                <properties>
+                    <source>flex.management.jmx.MBeanServerGateway</source>
+                </properties>
+                
+                <!-- 
+                If running the console on WebSphere with administrative security enabled uncomment this section.  Also, 
+                create a User Group called "console_administrator" and add any users that are allowed to use the console to this group.
+                These users must also have at least one role that allows them to access MBeans under WebSphere security.  Finally,
+                be sure to use the WebSphere login-command below.  
+                <security>
+                    <security-constraint ref="console"/>
+                </security>
+                -->                
+            </destination>
+            
+        </service>
+
+    </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"/>
+            -->
+        
+	        <!--  
+	        If running the console on WebSphere with administrative security enabled uncomment this section.  Also, 
+	        create a User Group called "console_administrator" and add any users that are allowed to use the console to this group.
+	        These users must also have at least one role that allows them to access MBeans under WebSphere security.  Finally,
+	        be sure to use the WebSphere login-command above.  
+	        <security-constraint id="console">
+	            <auth-method>Basic</auth-method>
+	            <roles>
+	                <role>console_administrator</role>
+           	    </roles>
+           	</security-constraint>
+           	-->        
+        </security>
+
+
+    <channels>
+
+        <channel-definition id="amf" class="mx.messaging.channels.AMFChannel">
+            <endpoint url="http://{server.name}:{server.port}/{context.root}/messagebroker/amf" class="flex.messaging.endpoints.AMFEndpoint"/>
+            <properties>
+                <polling-enabled>false</polling-enabled>
+            </properties>
+        </channel-definition>
+
+    </channels>
+
+    <logging>
+
+        <!-- You may also use flex.messaging.log.ServletLogTarget -->
+        <target class="flex.messaging.log.ConsoleTarget" level="Error">
+            <properties>
+                <prefix>[BlazeDS] </prefix>
+                <includeDate>false</includeDate>
+                <includeTime>false</includeTime>
+                <includeLevel>true</includeLevel>
+                <includeCategory>true</includeCategory>
+            </properties>
+            <filters>
+                <pattern>Endpoint.*</pattern>
+            </filters>
+        </target>
+
+    </logging>
+
+    <system>
+        <redeploy>
+            <enabled>true</enabled>
+            <watch-interval>20</watch-interval>
+            <watch-file>{context.root}/WEB-INF/flex/services-config.xml</watch-file>
+            <touch-file>{context.root}/WEB-INF/web.xml</touch-file>
+        </redeploy>
+    </system>
+
+</services-config>

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/7a58369c/apps/ds-console/WEB-INF/install-web.xml
----------------------------------------------------------------------
diff --git a/apps/ds-console/WEB-INF/install-web.xml b/apps/ds-console/WEB-INF/install-web.xml
new file mode 100755
index 0000000..a741ed8
--- /dev/null
+++ b/apps/ds-console/WEB-INF/install-web.xml
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+
+<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
+
+<web-app>
+    <display-name>Console</display-name>
+    <description>Administration tools for monitoring and management</description>
+
+    <!-- MessageBroker Servlet -->
+    <servlet>
+        <servlet-name>MessageBrokerServlet</servlet-name>
+        <display-name>MessageBrokerServlet</display-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>
+        <load-on-startup>1</load-on-startup>
+    </servlet>
+
+    <servlet-mapping>
+        <servlet-name>MessageBrokerServlet</servlet-name>
+        <url-pattern>/messagebroker/*</url-pattern>
+    </servlet-mapping>
+
+    <welcome-file-list>
+        <welcome-file>index.html</welcome-file>
+    </welcome-file-list>
+
+</web-app>

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/7a58369c/apps/ds-console/WEB-INF/web.xml
----------------------------------------------------------------------
diff --git a/apps/ds-console/WEB-INF/web.xml b/apps/ds-console/WEB-INF/web.xml
new file mode 100755
index 0000000..61c89e5
--- /dev/null
+++ b/apps/ds-console/WEB-INF/web.xml
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+
+<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
+
+<web-app>
+    <display-name>Console</display-name>
+    <description>Administration tools for monitoring and management</description>
+
+    <context-param>
+        <param-name>flex.class.path</param-name>
+        <param-value>/WEB-INF/flex/hotfixes,/WEB-INF/flex/jars</param-value>
+    </context-param>
+
+    <!-- MessageBroker Servlet -->
+    <servlet>
+        <servlet-name>MessageBrokerServlet</servlet-name>
+        <display-name>MessageBrokerServlet</display-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>flex.write.path</param-name>
+            <param-value>/WEB-INF/flex</param-value>
+        </init-param>
+        <load-on-startup>1</load-on-startup>
+    </servlet>
+
+    <servlet-mapping>
+        <servlet-name>MessageBrokerServlet</servlet-name>
+        <url-pattern>/messagebroker/*</url-pattern>
+    </servlet-mapping>
+    
+    <welcome-file-list>
+        <welcome-file>index.html</welcome-file>
+    </welcome-file-list>
+
+</web-app>

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/7a58369c/apps/ds-console/build.xml
----------------------------------------------------------------------
diff --git a/apps/ds-console/build.xml b/apps/ds-console/build.xml
new file mode 100755
index 0000000..7923ff8
--- /dev/null
+++ b/apps/ds-console/build.xml
@@ -0,0 +1,174 @@
+<?xml version="1.0"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+
+
+<project name="ds-console.war/build.xml" default="main" basedir="../..">
+
+    <property environment="env" />
+        
+    <property file="${basedir}/build.properties"/>
+    <property name="ds-console.war" value="${basedir}/apps/ds-console"/>
+    <property name="dist.dir" value="${basedir}/dist"/>
+    <property name="src.dir" value="${ds-console.war}/WEB-INF/src"/>
+    <property name="classes.dir" value="${ds-console.war}/WEB-INF/classes"/>
+    <property name="mxmlc.dir" value="${basedir}/bin"/>
+    
+    
+    <property name="application.name" value="DS Console" />
+    <property name="application.dir" value="${ds-console.war}" />
+    <property name="application.file" value="console" />
+
+    <path id="classpath">
+        <fileset dir="${ds-console.war}/WEB-INF/lib" includes="**/*.jar"/>
+    </path>
+
+    <target name="main" depends="clean,ds-console"/>
+    <target name="ds-console" depends="compile,compile-swf"/>
+
+    <property environment="env"/>
+    <property name="ant-contrib.jar" location="${env.ANT_HOME}/lib/ant-contrib-1.0b2.jar"/>
+    <taskdef resource="net/sf/antcontrib/antcontrib.properties" classpath="${ant-contrib.jar}"/>
+
+    <target name="prepare">
+        <mkdir dir="${ds-console.war}/WEB-INF/lib"/>
+        <mkdir dir="${ds-console.war}/WEB-INF/classes"/>
+    </target>
+
+    <target name="copy-resources">
+        <fail unless="local.sdk.lib.dir" message="must specify local.sdk.lib.dir in server/build.properties"/>
+        <fail unless="local.sdk.frameworks.dir" message="must specify local.sdk.frameworks.dir in build.properties"/>
+
+        <!-- copy to the lib directory -->
+        <copy todir="${ds-console.war}/WEB-INF/lib">
+            <fileset dir="${basedir}/lib" includes="${webapp.lib}" />
+        </copy>
+
+        <!-- copy to the classes directory -->
+        <copy todir="${ds-console.war}/WEB-INF/classes">
+            <fileset dir="${ds-console.war}/WEB-INF/src">
+                <include name="**/*.xml"/>
+            </fileset>
+            <fileset dir="${basedir}/lib" includes="${webapp.classes}" />
+        </copy>
+    </target>
+
+    <target name="run-depend" if="src.depend">
+        <echo message="Removing class files that changed and dependent class files."/>
+        <depend cache="${classes.dir}" srcdir="${src.dir}" destdir="${classes.dir}"/>
+    </target>
+
+    <target name="compile" depends="prepare,run-depend,copy-resources" description="compile">
+        <javac source="1.4" debug="${src.debug}" destdir="${classes.dir}" srcdir="${src.dir}" classpathref="classpath"/>
+    </target>
+
+    <target name="compile-swf" >
+
+        <delete file="${ds-console.war}/${application.file}.swf"/>
+        <taskdef resource="flexTasks.tasks" classpath="${FLEX_HOME}/lib/flexTasks.jar" />
+        <property name="FLEX_HOME" value="${basedir}"/>
+
+        <mxmlc file="${application.dir}/${application.file}.mxml" 
+            output="${application.dir}/${application.file}.swf"
+            actionscript-file-encoding="UTF-8"
+            keep-generated-actionscript="false"
+            incremental="false"
+            services="${ds-console.war}/WEB-INF/flex/services-config.xml"
+            context-root="ds-console" 
+            locale="en_US">
+            <load-config filename="${basedir}/frameworks/flex-config.xml"/>
+            <license product="flexbuilder3" serial-number="${env.fb3_license}"/>
+            <source-path path-element="${basedir}/frameworks"/>
+            <external-library-path/>
+            <metadata>
+                <publisher name="${manifest.Implementation-Vendor}" />
+                <creator name="${manifest.Implementation-Vendor}" />
+            </metadata>
+        </mxmlc>
+
+        <html-wrapper title="${application.name}"
+            height="100%"
+            width="100%"
+            application="app"
+            swf="${application.file}"
+            version-major="10"
+            version-minor="0"
+            version-revision="0"
+            history="true"
+            express-install="true"
+            output="${application.dir}"/>
+
+    </target>
+
+    <target name="package" description=" Creates distribution war file">
+        <mkdir dir="${dist.dir}"/>
+        <antcall target="compile-swf"/>
+        <delete file="${dist.dir}/ds-console.war"/>
+        <war file="${dist.dir}/ds-console.war"
+            webxml="${ds-console.war}/WEB-INF/install-web.xml">
+            <manifest>
+                <attribute name="Sealed" value="${manifest.sealed}"/>
+                <attribute name="Implementation-Title" value="${manifest.Implementation-Title} - ${application.name}"/>
+                <attribute name="Implementation-Version" value="${manifest.Implementation-Version}.${build.number}"/>
+                <attribute name="Implementation-Vendor" value="${manifest.Implementation-Vendor}"/>
+            </manifest>
+            <fileset dir="${ds-console.war}">
+                <include name="index.html"/>
+                <include name="console.swf"/>
+                <include name="playerProductInstall.swf"/>
+                <include name="swfobject.js"/>
+                <include name="history/*"/>
+                <include name="WEB-INF/flex/services-config.xml"/>
+                <include name="WEB-INF/classes/*"/>
+                <include name="WEB-INF/lib/**/*"/>
+            </fileset>
+        </war>
+    </target>
+
+    <target name="clean" description="--> Removes jars and classes">
+        <delete quiet="true">
+            <fileset dir="${ds-console.war}/" includes="swfobject.js,index.html,console.swf,expressInstall.swf,history/*"/>
+        </delete>
+        <delete quiet="true">
+            <fileset dir="${ds-console.war}/WEB-INF/lib" includes="${webapp.lib},${webtier.lib}"/>
+        </delete>
+        <delete quiet="true" includeEmptyDirs="true">
+            <fileset dir="${ds-console.war}/WEB-INF/flex/locale" includes="**/*"/>
+        </delete>        
+        <delete quiet="true">
+            <fileset dir="${ds-console.war}/WEB-INF/flex/jars" includes="**/*"/>
+        </delete>
+        <delete quiet="true" includeEmptyDirs="true">
+            <fileset dir="${ds-console.war}/WEB-INF/flex/frameworks" includes="**/*"/>
+        </delete>
+        <delete quiet="true" includeEmptyDirs="true">
+            <fileset dir="${ds-console.war}/WEB-INF/flex" includes="*.ser,mxml-manifest.xml,cache.dep"/>
+        </delete>
+        <delete quiet="true">
+            <fileset dir="${classes.dir}" includes="**/*.class"/>
+        </delete>
+        <delete quiet="true" file="${dist.dir}/console.war"/>
+        <delete quiet="true" file="${dist.dir}/ds-console.war"/>
+        <delete quiet="true" dir="${ds-console.war}/history" />
+        <delete quiet="true" dir="${ds-console.war}/WEB-INF/lib" />
+        <delete quiet="true" dir="${ds-console.war}/WEB-INF/classes" />
+
+    </target>
+
+</project>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/7a58369c/apps/ds-console/console.mxml
----------------------------------------------------------------------
diff --git a/apps/ds-console/console.mxml b/apps/ds-console/console.mxml
new file mode 100755
index 0000000..f616a52
--- /dev/null
+++ b/apps/ds-console/console.mxml
@@ -0,0 +1,105 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:console="console.containers.*" xmlns="*" creationComplete="initApp();">
+    <mx:Script>
+        <![CDATA[
+            import console.ConsoleListener;
+            import console.containers.LogManager;
+            import console.containers.DestinationManager;
+            import console.containers.EndpointManager;
+            import console.containers.DefaultPanel;
+            import mx.core.Container;
+            import console.containers.UpdateListener;
+            import console.events.ManagementOperationInvokeEvent;
+            import mx.collections.ArrayCollection;
+            import console.containers.ServerManager;
+            import console.containers.AdvancedPanel;
+            import console.ConsoleManager;
+            import mx.messaging.management.*;
+            import mx.rpc.events.ResultEvent;
+            
+            private var manager:ConsoleManager;
+            private var advPanel:AdvancedPanel;
+            private var srvManager:ServerManager;
+            private var currentSelectedPanel:Container;
+            private var consoleListener:ConsoleListener;
+            
+            [Bindable]
+            public var appsList:ArrayCollection;
+            
+            private function initApp():void
+            {
+                appsList = new ArrayCollection;
+                
+                manager = ConsoleManager.getInstance();
+                manager.parent = this;
+                
+                consoleNavigator.addChild(new DefaultPanel());
+                consoleNavigator.addChild(new ServerManager());
+                consoleNavigator.addChild(new EndpointManager());
+                consoleNavigator.addChild(new DestinationManager());
+                consoleNavigator.addChild(new LogManager());
+                consoleNavigator.addChild(new AdvancedPanel());
+                
+                consoleListener = new ConsoleListener(this);
+                
+                currentSelectedPanel = consoleNavigator.selectedChild as Container;
+                manager.activateListener(consoleNavigator.selectedChild as UpdateListener);
+            }
+            
+            private function setCurrentTab():void
+            {
+                manager.deactivateListener(currentSelectedPanel as UpdateListener);
+                manager.activateListener(consoleNavigator.selectedChild as UpdateListener);
+                
+                currentSelectedPanel = consoleNavigator.selectedChild as Container;
+            }
+             
+            private function setCurrentApp():void
+            {
+                manager.currentApp = appSelect.selectedItem.data.label as String;
+            }             
+          
+            private function updatePollInterval():void
+            {
+                manager.timerInterval = pollIntervalSlider.value * 1000;
+            }
+             
+            public function updateModel(model:Object):void
+            {
+                 var mbeanModel:Object = manager.mbeanModel;
+                 for each (var appObj:Object in mbeanModel)
+                 {
+                     var names:Array = (appObj.label as String).split(".");
+                     appsList.addItem({label: names[2], data: appObj});
+                 }                 
+                 appSelect.selectedIndex = 0;
+            }
+        ]]>
+    </mx:Script>
+    <mx:HBox width="100%" textAlign="left" horizontalAlign="right">
+        <mx:Label text="Application"/>
+        <mx:ComboBox id="appSelect" dataProvider="{appsList}" labelField="label" width="300" change="{setCurrentApp()}" editable="false" enabled="true"/>
+        <mx:Label text="Polling Interval (seconds)" />
+        <mx:HSlider id="pollIntervalSlider" minimum="0" maximum="20" snapInterval=".5" enabled="true" change="{updatePollInterval()}"/>
+    </mx:HBox>
+    <mx:TabNavigator width="100%" height="100%" id="consoleNavigator" change="{setCurrentTab()}">
+    </mx:TabNavigator>
+</mx:Application>

http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/7a58369c/apps/ds-console/console/ConsoleListener.as
----------------------------------------------------------------------
diff --git a/apps/ds-console/console/ConsoleListener.as b/apps/ds-console/console/ConsoleListener.as
new file mode 100755
index 0000000..72e7bb9
--- /dev/null
+++ b/apps/ds-console/console/ConsoleListener.as
@@ -0,0 +1,43 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+package console
+{
+    import console.containers.UpdateListener;
+
+    public class ConsoleListener extends UpdateListener
+    {
+        private var _console:console;
+        
+        public function ConsoleListener(c:console)
+        {
+            _console = c;
+            ConsoleManager.getInstance().registerListener(this, []);
+        }
+        
+        public override function mbeanModelUpdate(mbeanModel:Object):void
+        {
+                 for each (var appObj:Object in mbeanModel)
+                 {
+                     var names:Array = (appObj.label as String).split(".");
+                     _console.appsList.addItem({label: names[2], data: appObj});
+                 }                 
+                 _console.appSelect.selectedIndex = 0;
+        }
+    }
+}
\ No newline at end of file