http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/012fad7c/attic/apps/blazeds/build.xml ---------------------------------------------------------------------- diff --git a/attic/apps/blazeds/build.xml b/attic/apps/blazeds/build.xml index babd1fa..c47017f 100755 --- a/attic/apps/blazeds/build.xml +++ b/attic/apps/blazeds/build.xml @@ -1,99 +1,99 @@ -<?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" /> - <echo>apps/blazeds clean</echo> - </target> - +<?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" /> + <echo>apps/blazeds clean</echo> + </target> + </project> \ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-blazeds/blob/012fad7c/attic/apps/blazeds/index.htm ---------------------------------------------------------------------- diff --git a/attic/apps/blazeds/index.htm b/attic/apps/blazeds/index.htm index 6e0bdf7..aeec257 100755 --- a/attic/apps/blazeds/index.htm +++ b/attic/apps/blazeds/index.htm @@ -1,50 +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> - <br> -This is an empty BlazeDS application that serves as a template for creating your custom application. -<!-- -<br> <br> -If you're looking for sample Flex applications, check with the system administrator for the URL where the samples are deployed. ---> -<br> - <br> -Visit the <a href="http://opensource.adobe.com/wiki/display/blazeds/BlazeDS">product page</a> for documentation and further information. -</body> -</html> - - - - +<!-- + 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> + <br> +This is an empty BlazeDS application that serves as a template for creating your custom application. +<!-- +<br> <br> +If you're looking for sample Flex applications, check with the system administrator for the URL where the samples are deployed. +--> +<br> + <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/012fad7c/attic/apps/ds-console/ConsoleResultWindow.mxml ---------------------------------------------------------------------- diff --git a/attic/apps/ds-console/ConsoleResultWindow.mxml b/attic/apps/ds-console/ConsoleResultWindow.mxml index 4d5fd1d..4a8eac2 100755 --- a/attic/apps/ds-console/ConsoleResultWindow.mxml +++ b/attic/apps/ds-console/ConsoleResultWindow.mxml @@ -1,48 +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> - +<?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/012fad7c/attic/apps/ds-console/WEB-INF/flex/services-config.xml ---------------------------------------------------------------------- diff --git a/attic/apps/ds-console/WEB-INF/flex/services-config.xml b/attic/apps/ds-console/WEB-INF/flex/services-config.xml index 371adc2..9283f8c 100755 --- a/attic/apps/ds-console/WEB-INF/flex/services-config.xml +++ b/attic/apps/ds-console/WEB-INF/flex/services-config.xml @@ -1,116 +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> +<?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/012fad7c/attic/apps/ds-console/WEB-INF/install-web.xml ---------------------------------------------------------------------- diff --git a/attic/apps/ds-console/WEB-INF/install-web.xml b/attic/apps/ds-console/WEB-INF/install-web.xml index 83f4498..a741ed8 100755 --- a/attic/apps/ds-console/WEB-INF/install-web.xml +++ b/attic/apps/ds-console/WEB-INF/install-web.xml @@ -1,48 +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> +<?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/012fad7c/attic/apps/ds-console/WEB-INF/web.xml ---------------------------------------------------------------------- diff --git a/attic/apps/ds-console/WEB-INF/web.xml b/attic/apps/ds-console/WEB-INF/web.xml index ad958d4..61c89e5 100755 --- a/attic/apps/ds-console/WEB-INF/web.xml +++ b/attic/apps/ds-console/WEB-INF/web.xml @@ -1,57 +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> +<?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/012fad7c/attic/apps/ds-console/build.xml ---------------------------------------------------------------------- diff --git a/attic/apps/ds-console/build.xml b/attic/apps/ds-console/build.xml index cd4b99f..4abf7af 100755 --- a/attic/apps/ds-console/build.xml +++ b/attic/apps/ds-console/build.xml @@ -1,174 +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"/> - - <target name="prepare"> - <mkdir dir="${ds-console.war}/WEB-INF/src"/> - <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" erroronmissingdir="false"> - <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"> - <mkdir dir="${src.dir}"/> - <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}/ant/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> - +<?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"/> + + <target name="prepare"> + <mkdir dir="${ds-console.war}/WEB-INF/src"/> + <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" erroronmissingdir="false"> + <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"> + <mkdir dir="${src.dir}"/> + <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}/ant/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/012fad7c/attic/apps/ds-console/console.mxml ---------------------------------------------------------------------- diff --git a/attic/apps/ds-console/console.mxml b/attic/apps/ds-console/console.mxml index 661d5a5..f616a52 100755 --- a/attic/apps/ds-console/console.mxml +++ b/attic/apps/ds-console/console.mxml @@ -1,105 +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> +<?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/012fad7c/attic/apps/ds-console/console/ConsoleListener.as ---------------------------------------------------------------------- diff --git a/attic/apps/ds-console/console/ConsoleListener.as b/attic/apps/ds-console/console/ConsoleListener.as index 6aae3a5..72e7bb9 100755 --- a/attic/apps/ds-console/console/ConsoleListener.as +++ b/attic/apps/ds-console/console/ConsoleListener.as @@ -1,43 +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; - } - } +//////////////////////////////////////////////////////////////////////////////// +// +// 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
