This is an automated email from the ASF dual-hosted git repository.

joshtynjala pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/flex-blazeds.git


The following commit(s) were added to refs/heads/develop by this push:
     new ccb5fbf  samples: hello-world
ccb5fbf is described below

commit ccb5fbf53d883682b70a5a209b9a73e8e3a2a3ab
Author: Josh Tynjala <joshtynj...@apache.org>
AuthorDate: Thu Aug 3 14:54:57 2023 -0700

    samples: hello-world
---
 distribution/pom.xml                               |   8 +-
 distribution/src/assembly/assemble-bin.xml         |   7 ++
 samples/hello-world/backend/pom.xml                |  95 +++++++++++++++++
 .../blazeds/samples/hello/HelloWorldService.java   |  28 +++++
 .../main/webapp/WEB-INF/flex/remoting-config.xml}  |  38 ++++---
 .../main/webapp/WEB-INF/flex/services-config.xml   |  84 +++++++++++++++
 .../backend/src/main/webapp/WEB-INF/web.xml        |  48 +++++++++
 samples/hello-world/frontend/asconfig.json         |  19 ++++
 samples/hello-world/frontend/pom.xml               | 117 +++++++++++++++++++++
 .../src/main/resources/index-template.html}        |  37 +++----
 .../hello-world/frontend/src/main/royale/Main.mxml |  86 +++++++++++++++
 samples/{ => hello-world}/pom.xml                  |  13 +--
 samples/pom.xml                                    |   1 +
 13 files changed, 531 insertions(+), 50 deletions(-)

diff --git a/distribution/pom.xml b/distribution/pom.xml
index aed138d..0b7a455 100644
--- a/distribution/pom.xml
+++ b/distribution/pom.xml
@@ -91,7 +91,13 @@
                        
<groupId>org.apache.flex.blazeds.samples.turnkey</groupId>
                        
<artifactId>blazeds-classic-turnkey-samples-backend</artifactId>
                        <version>${project.version}</version>
-               <type>war</type>
+                       <type>war</type>
+               </dependency>
+               <dependency>
+                       <groupId>org.apache.flex.blazeds.samples.hello</groupId>
+                       <artifactId>blazeds-hello-world-backend</artifactId>
+                       <version>${project.version}</version>
+                       <type>war</type>
                </dependency>
        </dependencies>
 </project>
\ No newline at end of file
diff --git a/distribution/src/assembly/assemble-bin.xml 
b/distribution/src/assembly/assemble-bin.xml
index 71911be..a43298f 100644
--- a/distribution/src/assembly/assemble-bin.xml
+++ b/distribution/src/assembly/assemble-bin.xml
@@ -76,5 +76,12 @@
                 
<include>org.apache.flex.blazeds.samples.turnkey:blazeds-classic-turnkey-samples-backend</include>
             </includes>
         </dependencySet>
+        <dependencySet>
+            <outputDirectory>/webapps</outputDirectory>
+            <outputFileNameMapping>hello-world.war</outputFileNameMapping>
+            <includes>
+                
<include>org.apache.flex.blazeds.samples.hello:blazeds-hello-world-backend</include>
+            </includes>
+        </dependencySet>
     </dependencySets>
 </assembly>
\ No newline at end of file
diff --git a/samples/hello-world/backend/pom.xml 
b/samples/hello-world/backend/pom.xml
new file mode 100644
index 0000000..a9f18ef
--- /dev/null
+++ b/samples/hello-world/backend/pom.xml
@@ -0,0 +1,95 @@
+<?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.
+
+--><project xmlns="http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd";>
+  <modelVersion>4.0.0</modelVersion>
+
+  <parent>
+    <groupId>org.apache.flex.blazeds.samples.hello</groupId>
+    <artifactId>blazeds-hello-world-sample</artifactId>
+    <version>4.9.0-SNAPSHOT</version>
+  </parent>
+
+  <groupId>org.apache.flex.blazeds.samples.hello</groupId>
+  <artifactId>blazeds-hello-world-backend</artifactId>
+  <version>4.9.0-SNAPSHOT</version>
+  <packaging>war</packaging>
+
+  <name>Apache Flex BlazeDS: Hello World Sample: Backend</name>
+
+  <properties>
+    <java.version>1.8</java.version>
+  </properties>
+
+  <build>
+    <sourceDirectory>src/main/java</sourceDirectory>
+    <finalName>hello-world</finalName>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-compiler-plugin</artifactId>
+        <version>3.5.1</version>
+        <configuration>
+          <source>${java.version}</source>
+          <target>${java.version}</target>
+        </configuration>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-war-plugin</artifactId>
+        <configuration>
+          <overlays>
+            <overlay>
+              <groupId>org.apache.flex.blazeds.samples.hello</groupId>
+              <artifactId>blazeds-hello-world-frontend</artifactId>
+            </overlay>
+          </overlays>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+
+  <dependencies>
+    <dependency>
+        <groupId>org.apache.flex.blazeds</groupId>
+        <artifactId>flex-messaging-common</artifactId>
+        <version>4.9.0-SNAPSHOT</version>
+    </dependency>
+    <dependency>
+        <groupId>org.apache.flex.blazeds</groupId>
+        <artifactId>flex-messaging-core</artifactId>
+        <version>4.9.0-SNAPSHOT</version>
+    </dependency>
+    <dependency>
+        <groupId>org.apache.flex.blazeds</groupId>
+        <artifactId>flex-messaging-proxy</artifactId>
+        <version>4.9.0-SNAPSHOT</version>
+    </dependency>
+    <dependency>
+        <groupId>org.apache.flex.blazeds</groupId>
+        <artifactId>flex-messaging-remoting</artifactId>
+        <version>4.9.0-SNAPSHOT</version>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.flex.blazeds.samples.hello</groupId>
+      <artifactId>blazeds-hello-world-frontend</artifactId>
+      <version>4.9.0-SNAPSHOT</version>
+      <type>war</type>
+    </dependency>
+  </dependencies>
+</project>
diff --git 
a/samples/hello-world/backend/src/main/java/org/apache/flex/blazeds/samples/hello/HelloWorldService.java
 
b/samples/hello-world/backend/src/main/java/org/apache/flex/blazeds/samples/hello/HelloWorldService.java
new file mode 100644
index 0000000..f3f25f9
--- /dev/null
+++ 
b/samples/hello-world/backend/src/main/java/org/apache/flex/blazeds/samples/hello/HelloWorldService.java
@@ -0,0 +1,28 @@
+/*
+ * 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 org.apache.flex.blazeds.samples.hello;
+
+public class HelloWorldService {
+
+       public String sayHello(String name) {
+               if (name == null || name.length() == 0) {
+                       return "I'm sorry, but I didn't catch your nameā€¦";
+               }
+               return "Hello, " + name + "!";
+       }
+
+}
\ No newline at end of file
diff --git a/samples/pom.xml 
b/samples/hello-world/backend/src/main/webapp/WEB-INF/flex/remoting-config.xml
old mode 100644
new mode 100755
similarity index 55%
copy from samples/pom.xml
copy to 
samples/hello-world/backend/src/main/webapp/WEB-INF/flex/remoting-config.xml
index 7adf8a6..722882b
--- a/samples/pom.xml
+++ 
b/samples/hello-world/backend/src/main/webapp/WEB-INF/flex/remoting-config.xml
@@ -17,23 +17,21 @@
   limitations under the License.
 
 -->
-<project xmlns="http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd";>
-  <modelVersion>4.0.0</modelVersion>
-
-  <parent>
-    <groupId>org.apache.flex.blazeds</groupId>
-    <artifactId>blazeds</artifactId>
-    <version>4.9.0-SNAPSHOT</version>
-  </parent>
-
-  <groupId>org.apache.flex.blazeds.samples</groupId>
-  <artifactId>blazeds-samples</artifactId>
-  <version>4.9.0-SNAPSHOT</version>
-  <packaging>pom</packaging>
-
-  <name>Apache Flex BlazeDS: Samples</name>
-
-  <modules>
-    <module>classic-turnkey-samples</module>
-  </modules>
-</project>
+<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>
+
+    <destination id="product">
+        <properties>
+            
<source>org.apache.flex.blazeds.samples.hello.HelloWorldService</source>
+        </properties>
+    </destination>
+    
+  </service>
diff --git 
a/samples/hello-world/backend/src/main/webapp/WEB-INF/flex/services-config.xml 
b/samples/hello-world/backend/src/main/webapp/WEB-INF/flex/services-config.xml
new file mode 100755
index 0000000..1a65aa8
--- /dev/null
+++ 
b/samples/hello-world/backend/src/main/webapp/WEB-INF/flex/services-config.xml
@@ -0,0 +1,84 @@
+<?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 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>
+
+            <destination id="product">
+                <properties>
+                    
<source>org.apache.flex.blazeds.samples.hello.HelloWorldService</source>
+                </properties>
+            </destination>
+        </service>
+       </services>
+
+    <security>
+    </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"/>
+            <properties>
+                <polling-enabled>false</polling-enabled>
+            </properties>
+        </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>
+    </channels>
+
+    <logging>
+        <target class="flex.messaging.log.ConsoleTarget" level="Error">
+            <properties>
+                <prefix>[BlazeDS] </prefix>
+                <includeDate>false</includeDate>
+                <includeTime>false</includeTime>
+                <includeLevel>true</includeLevel>
+                <includeCategory>false</includeCategory>
+            </properties>
+            <filters>
+                <pattern>Endpoint.*</pattern>
+                <pattern>Service.*</pattern>
+                <pattern>Configuration</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>
diff --git a/samples/hello-world/backend/src/main/webapp/WEB-INF/web.xml 
b/samples/hello-world/backend/src/main/webapp/WEB-INF/web.xml
new file mode 100755
index 0000000..1cc256c
--- /dev/null
+++ b/samples/hello-world/backend/src/main/webapp/WEB-INF/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>BlazeDS Hello World</display-name>
+    <description>BlazeDS Hello World Sample Application</description>
+
+    <listener>
+        <listener-class>flex.messaging.HttpFlexSession</listener-class>
+    </listener>
+
+    <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>
diff --git a/samples/hello-world/frontend/asconfig.json 
b/samples/hello-world/frontend/asconfig.json
new file mode 100644
index 0000000..98edbf2
--- /dev/null
+++ b/samples/hello-world/frontend/asconfig.json
@@ -0,0 +1,19 @@
+{
+       "config": "royale",
+       "compilerOptions": {
+               "targets": ["JSRoyale"],
+               "source-path": ["src/main/royale"],
+        "source-map": true,
+        "library-path": [
+            "${royalelib}/libs/MXRoyaleBase.swc"
+        ],
+        "js-library-path": [
+            "${royalelib}/js/libs/MXRoyaleBaseJS.swc"
+        ],
+        "html-template": "src/main/resources/index-template.html",
+        "theme": 
"${royalelib}/themes/JewelTheme/src/main/resources/defaults.css",
+        "js-output": "target/javascript"
+       },
+       "mainClass": "Main"
+}
+
diff --git a/samples/hello-world/frontend/pom.xml 
b/samples/hello-world/frontend/pom.xml
new file mode 100644
index 0000000..c78e3d8
--- /dev/null
+++ b/samples/hello-world/frontend/pom.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.
+
+--><project xmlns="http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd";>
+  <modelVersion>4.0.0</modelVersion>
+
+  <parent>
+    <groupId>org.apache.flex.blazeds.samples.hello</groupId>
+    <artifactId>blazeds-hello-world-sample</artifactId>
+    <version>4.9.0-SNAPSHOT</version>
+  </parent>
+
+  <groupId>org.apache.flex.blazeds.samples.hello</groupId>
+  <artifactId>blazeds-hello-world-frontend</artifactId>
+  <version>4.9.0-SNAPSHOT</version>
+  <packaging>swf</packaging>
+
+  <name>Apache Flex BlazeDS: Hello World Sample: Frontend</name>
+
+  <build>
+    <sourceDirectory>src/main/royale</sourceDirectory>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-dependency-plugin</artifactId>
+        <executions>
+          <execution>
+            <id>copy-themes</id>
+            <phase>generate-resources</phase>
+            <configuration>
+              <includes>defaults.css</includes>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.royale.compiler</groupId>
+        <artifactId>royale-maven-plugin</artifactId>
+        <version>0.9.11-SNAPSHOT</version>
+        <extensions>true</extensions>
+        <configuration>
+          <mainClass>Main.mxml</mainClass>
+          <targets>JSRoyale</targets>
+          <debug>false</debug>
+          
<htmlTemplate>${basedir}/src/main/resources/index-template.html</htmlTemplate>
+          <keepAs3Metadata>
+            <name>Bindable</name>
+            <name>Managed</name>
+            <name>ChangeEvent</name>
+            <name>NonCommittingChangeEvent</name>
+            <name>Transient</name>
+            <name>Mixin</name>
+          </keepAs3Metadata>
+          <additionalCompilerOptions>
+            -js-dynamic-access-unknown-members=true;
+            -source-map=true;
+          </additionalCompilerOptions>
+        </configuration>
+        <dependencies>
+          <dependency>
+            <groupId>org.apache.royale.compiler</groupId>
+            <artifactId>compiler-jx</artifactId>
+            <version>0.9.11-SNAPSHOT</version>
+          </dependency>
+        </dependencies>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-war-plugin</artifactId>
+      </plugin>
+      <plugin>
+        <groupId>org.codehaus.mojo</groupId>
+        <artifactId>build-helper-maven-plugin</artifactId>
+      </plugin>
+    </plugins>
+  </build>
+
+  <dependencies>
+    <dependency>
+        <groupId>org.apache.royale.framework</groupId>
+        <artifactId>Jewel</artifactId>
+        <version>0.9.11-SNAPSHOT</version>
+        <type>swc</type>
+        <classifier>js</classifier>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.royale.framework</groupId>
+      <artifactId>JewelTheme</artifactId>
+      <version>0.9.11-SNAPSHOT</version>
+      <type>swc</type>
+      <scope>theme</scope>
+      <classifier>js</classifier>
+    </dependency>
+    <dependency>
+        <groupId>org.apache.royale.framework</groupId>
+        <artifactId>MXRoyaleBase</artifactId>
+        <version>0.9.11-SNAPSHOT</version>
+        <type>swc</type>
+        <classifier>js</classifier>
+    </dependency>
+  </dependencies>
+</project>
diff --git a/samples/pom.xml 
b/samples/hello-world/frontend/src/main/resources/index-template.html
similarity index 52%
copy from samples/pom.xml
copy to samples/hello-world/frontend/src/main/resources/index-template.html
index 7adf8a6..140ba98 100644
--- a/samples/pom.xml
+++ b/samples/hello-world/frontend/src/main/resources/index-template.html
@@ -1,6 +1,4 @@
-<?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.
@@ -15,25 +13,18 @@
   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 xmlns="http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd";>
-  <modelVersion>4.0.0</modelVersion>
-
-  <parent>
-    <groupId>org.apache.flex.blazeds</groupId>
-    <artifactId>blazeds</artifactId>
-    <version>4.9.0-SNAPSHOT</version>
-  </parent>
-
-  <groupId>org.apache.flex.blazeds.samples</groupId>
-  <artifactId>blazeds-samples</artifactId>
-  <version>4.9.0-SNAPSHOT</version>
-  <packaging>pom</packaging>
-
-  <name>Apache Flex BlazeDS: Samples</name>
-
-  <modules>
-    <module>classic-turnkey-samples</module>
-  </modules>
-</project>
+<!DOCTYPE html>
+<html>
+<head>
+       <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+    <meta name="Custom Template for injecting custom style CSS">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0, 
minimum-scale=1.0">
+    <link rel="stylesheet" type="text/css" href="${application}.css">
+    <link href="https://fonts.googleapis.com/css?family=Lato:400,700"; 
rel="stylesheet">
+${head}
+</head>
+<body>
+${body}
+</body>
+</html>
diff --git a/samples/hello-world/frontend/src/main/royale/Main.mxml 
b/samples/hello-world/frontend/src/main/royale/Main.mxml
new file mode 100644
index 0000000..f3c836b
--- /dev/null
+++ b/samples/hello-world/frontend/src/main/royale/Main.mxml
@@ -0,0 +1,86 @@
+<?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.
+
+-->
+<j:Application
+       xmlns:fx="http://ns.adobe.com/mxml/2009";
+       xmlns:js="library://ns.apache.org/royale/basic"
+       xmlns:mx="library://ns.apache.org/royale/mx"
+       xmlns:j="library://ns.apache.org/royale/jewel">
+
+       <fx:Script>
+               <![CDATA[
+                       import mx.rpc.events.FaultEvent;
+                       import mx.rpc.events.ResultEvent;
+
+                       import org.apache.royale.jewel.Alert;
+
+                       private function onButtonClick():void
+                       {
+                               var name:String = nameInput.text;
+                               srv.sayHello(name);
+                       }
+
+                       private function onResult(event:ResultEvent):void
+                       {
+                               var message:String = event.result as String;
+                               Alert.show(message, "Message from BlazeDS");
+                       }
+                       
+                       private function onFault(event:FaultEvent):void
+                       {
+                               Alert.show(event.fault.faultString, "Fault");
+                       }
+                       
+               ]]>
+       </fx:Script>
+
+       <fx:Style>
+               .jewel.item.datagrid {
+                       white-space: nowrap;
+                       text-overflow: ellipsis;
+               }
+       </fx:Style>
+
+       <fx:Declarations>
+               <mx:RemoteObject id="srv" 
endpoint="/hello-world/messagebroker/amf" destination="product">
+                       <mx:method name="sayHello" result="onResult(event)" 
fault="onFault(event)"/>
+               </mx:RemoteObject>
+       </fx:Declarations>
+
+    <j:beads>
+        <js:ClassAliasBead/>
+    </j:beads>
+    
+    <j:valuesImpl>
+        <js:SimpleCSSValuesImpl/>
+    </j:valuesImpl>
+
+       <j:initialView>
+               <j:ResponsiveView id="rootView">
+                       <j:VGroup gap="2" width="100%" height="100%">
+                               <j:beads>
+                                       <js:Paddings padding="10"/>
+                               </j:beads>
+                               <j:Label text="What is your name?"/>
+                               <j:TextInput id="nameInput"/>
+                               <j:Button text="Say Hello" 
click="onButtonClick()"/>
+                       </j:VGroup>
+               </j:ResponsiveView>
+       </j:initialView>
+</j:Application>
\ No newline at end of file
diff --git a/samples/pom.xml b/samples/hello-world/pom.xml
similarity index 79%
copy from samples/pom.xml
copy to samples/hello-world/pom.xml
index 7adf8a6..13afc18 100644
--- a/samples/pom.xml
+++ b/samples/hello-world/pom.xml
@@ -21,19 +21,20 @@
   <modelVersion>4.0.0</modelVersion>
 
   <parent>
-    <groupId>org.apache.flex.blazeds</groupId>
-    <artifactId>blazeds</artifactId>
+    <groupId>org.apache.flex.blazeds.samples</groupId>
+    <artifactId>blazeds-samples</artifactId>
     <version>4.9.0-SNAPSHOT</version>
   </parent>
 
-  <groupId>org.apache.flex.blazeds.samples</groupId>
-  <artifactId>blazeds-samples</artifactId>
+  <groupId>org.apache.flex.blazeds.samples.hello</groupId>
+  <artifactId>blazeds-hello-world-sample</artifactId>
   <version>4.9.0-SNAPSHOT</version>
   <packaging>pom</packaging>
 
-  <name>Apache Flex BlazeDS: Samples</name>
+  <name>Apache Flex BlazeDS: Hello World Sample</name>
 
   <modules>
-    <module>classic-turnkey-samples</module>
+    <module>frontend</module>
+    <module>backend</module>
   </modules>
 </project>
diff --git a/samples/pom.xml b/samples/pom.xml
index 7adf8a6..235ac21 100644
--- a/samples/pom.xml
+++ b/samples/pom.xml
@@ -34,6 +34,7 @@
   <name>Apache Flex BlazeDS: Samples</name>
 
   <modules>
+    <module>hello-world</module>
     <module>classic-turnkey-samples</module>
   </modules>
 </project>

Reply via email to