Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

simplifications

  • Loading branch information...
commit c96c46a897404b92634b52d4c79ba73774d28c5f 1 parent fdbe6d3
@markfisher markfisher authored
View
13 node-spring-flex-chat/flexchat-redis/log.roo
@@ -1,13 +0,0 @@
-// Spring Roo 1.1.2.RELEASE [rev fbc33bb] log opened at 2011-04-07 15:43:07
-project --topLevelPackage org.springsource.flexchat
-flex setup
-exit
-// Spring Roo 1.1.2.RELEASE [rev fbc33bb] log closed at 2011-04-07 15:43:43
-// Spring Roo 1.1.2.RELEASE [rev fbc33bb] log opened at 2011-04-07 17:05:59
-exit
-// Spring Roo 1.1.2.RELEASE [rev fbc33bb] log closed at 2011-04-07 17:06:18
-// Spring Roo 1.1.2.RELEASE [rev fbc33bb] log opened at 2011-04-07 17:06:29
-hint
-exit
-// Spring Roo 1.1.2.RELEASE [rev fbc33bb] log closed at 2011-04-07 17:07:04
-// Spring Roo 1.1.4.RELEASE [rev f787ce7] log opened at 2011-07-07 15:08:25
View
247 node-spring-flex-chat/flexchat-redis/pom.xml
@@ -1,67 +1,48 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<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/maven-v4_0_0.xsd">
+<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.springsource.flexchat</groupId>
<artifactId>flexchat</artifactId>
<packaging>war</packaging>
<version>0.1.0.BUILD-SNAPSHOT</version>
<name>flexchat</name>
+
<properties>
- <roo.version>1.1.4.RELEASE</roo.version>
- <spring.version>3.0.5.RELEASE</spring.version>
+ <spring.version>3.0.6.RELEASE</spring.version>
<aspectj.version>1.6.11.M2</aspectj.version>
<slf4j.version>1.6.1</slf4j.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
+
<repositories>
- <repository>
- <id>spring-maven-release</id>
- <name>Spring Maven Release Repository</name>
- <url>http://maven.springframework.org/release</url>
- </repository>
- <repository>
- <id>spring-maven-milestone</id>
- <name>Spring Maven Milestone Repository</name>
- <url>http://maven.springframework.org/milestone</url>
- </repository>
- <repository>
- <id>spring-maven-snapshot</id>
- <name>Spring Maven Snapshot Repository</name>
- <url>http://maven.springframework.org/snapshot</url>
- </repository>
- <repository>
- <id>spring-roo-repository</id>
- <name>Spring Roo Repository</name>
- <url>http://spring-roo-repository.springsource.org/release</url>
- </repository>
<repository>
- <id>spring-external</id>
- <url>http://maven.springframework.org/external</url>
- <name>Spring External Repository</name>
- </repository>
- <repository>
- <id>flex</id>
- <url>http://repository.sonatype.org/content/groups/flexgroup</url>
- <name>Sonatype Flex Repo</name>
- </repository>
- </repositories>
- <pluginRepositories>
- <pluginRepository>
- <id>spring-maven-release</id>
- <name>Spring Maven Release Repository</name>
- <url>http://maven.springframework.org/release</url>
- </pluginRepository>
- <pluginRepository>
- <id>spring-maven-milestone</id>
- <name>Spring Maven Milestone Repository</name>
- <url>http://maven.springframework.org/milestone</url>
- </pluginRepository>
- <pluginRepository>
- <id>spring-roo-repository</id>
- <name>Spring Roo Repository</name>
- <url>http://spring-roo-repository.springsource.org/release</url>
- </pluginRepository>
- </pluginRepositories>
+ <id>spring-maven-release</id>
+ <name>Spring Maven Release Repository</name>
+ <url>http://maven.springframework.org/release</url>
+ </repository>
+ <repository>
+ <id>spring-maven-milestone</id>
+ <name>Spring Maven Milestone Repository</name>
+ <url>http://maven.springframework.org/milestone</url>
+ </repository>
+ <repository>
+ <id>spring-maven-snapshot</id>
+ <name>Spring Maven Snapshot Repository</name>
+ <url>http://maven.springframework.org/snapshot</url>
+ </repository>
+ <repository>
+ <id>spring-external</id>
+ <url>http://maven.springframework.org/external</url>
+ <name>Spring External Repository</name>
+ </repository>
+ <repository>
+ <id>flex</id>
+ <url>http://repository.sonatype.org/content/groups/flexgroup</url>
+ <name>Sonatype Flex Repo</name>
+ </repository>
+ </repositories>
+
<dependencies>
<!-- General dependencies for standard applications -->
<dependency>
@@ -95,11 +76,6 @@
<artifactId>aspectjrt</artifactId>
<version>${aspectj.version}</version>
</dependency>
- <dependency>
- <groupId>org.aspectj</groupId>
- <artifactId>aspectjweaver</artifactId>
- <version>${aspectj.version}</version>
- </dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
@@ -111,14 +87,6 @@
<artifactId>flexjson</artifactId>
<version>2.1</version>
</dependency>
- <!-- ROO dependencies -->
- <dependency>
- <groupId>org.springframework.roo</groupId>
- <artifactId>org.springframework.roo.annotations</artifactId>
- <version>${roo.version}</version>
- <scope>provided</scope>
- </dependency>
- <!-- Spring dependencies -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
@@ -162,7 +130,7 @@
<artifactId>spring-tx</artifactId>
<version>${spring.version}</version>
</dependency>
- <dependency>
+ <dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>${spring.version}</version>
@@ -185,33 +153,6 @@
</exclusions>
</dependency>
<dependency>
- <groupId>org.springframework.webflow</groupId>
- <artifactId>spring-js-resources</artifactId>
- <version>2.2.1.RELEASE</version>
- </dependency>
- <dependency>
- <groupId>commons-digester</groupId>
- <artifactId>commons-digester</artifactId>
- <version>2.0</version>
- <exclusions>
- <exclusion>
- <groupId>commons-logging</groupId>
- <artifactId>commons-logging</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency>
- <groupId>commons-fileupload</groupId>
- <artifactId>commons-fileupload</artifactId>
- <version>1.2.1</version>
- <exclusions>
- <exclusion>
- <groupId>commons-logging</groupId>
- <artifactId>commons-logging</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
<version>1.2</version>
@@ -233,7 +174,7 @@
<version>2.1</version>
<scope>provided</scope>
</dependency>
- <dependency>
+ <dependency>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>flex-framework</artifactId>
<version>4.0.0.14159</version>
@@ -244,49 +185,35 @@
<artifactId>spring-flex-core</artifactId>
<version>1.5.0.BUILD-SNAPSHOT</version>
</dependency>
- <dependency>
- <groupId>org.springframework.flex.roo.addon</groupId>
- <artifactId>org.springframework.flex.roo.annotations</artifactId>
- <version>1.0.0.BUILD-SNAPSHOT</version>
- </dependency>
-
- <!-- Redis / Spring Key-Value -->
- <dependency>
- <groupId>redis.clients</groupId>
- <artifactId>jedis</artifactId>
- <version>1.5.2</version>
- </dependency>
- <dependency>
- <groupId>org.springframework.data</groupId>
- <artifactId>spring-data-redis</artifactId>
- <version>1.0.0.M3</version>
- </dependency>
<dependency>
<groupId>org.springframework.integration</groupId>
<artifactId>spring-integration-redis</artifactId>
- <version>1.0.0.BUILD-SNAPSHOT</version>
+ <version>2.1.0.M1</version>
+ </dependency>
+ <dependency>
+ <groupId>redis.clients</groupId>
+ <artifactId>jedis</artifactId>
+ <version>2.0.0</version>
</dependency>
<dependency>
<groupId>org.springframework.integration</groupId>
<artifactId>spring-integration-event</artifactId>
- <version>2.0.3.RELEASE</version>
+ <version>2.1.0.M1</version>
</dependency>
-
<dependency>
<groupId>org.cloudfoundry</groupId>
<artifactId>cloudfoundry-runtime</artifactId>
<version>0.8.1</version>
</dependency>
-
<dependency>
<groupId>org.codehaus.jackson</groupId>
<artifactId>jackson-core-asl</artifactId>
- <version>1.4.1</version>
+ <version>1.4.3</version>
</dependency>
<dependency>
<groupId>org.codehaus.jackson</groupId>
<artifactId>jackson-mapper-asl</artifactId>
- <version>1.4.1</version>
+ <version>1.4.3</version>
</dependency>
</dependencies>
<build>
@@ -309,43 +236,6 @@
<encoding>UTF-8</encoding>
</configuration>
</plugin>
- <!--<plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>aspectj-maven-plugin</artifactId>
- <version>1.0</version>
- <dependencies>
- <dependency>
- <groupId>org.aspectj</groupId>
- <artifactId>aspectjrt</artifactId>
- <version>${aspectj.version}</version>
- </dependency>
- <dependency>
- <groupId>org.aspectj</groupId>
- <artifactId>aspectjtools</artifactId>
- <version>${aspectj.version}</version>
- </dependency>
- </dependencies>
- <executions>
- <execution>
- <goals>
- <goal>compile</goal>
- <goal>test-compile</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <outxml>true</outxml>
- <aspectLibraries>
- <aspectLibrary>
- <groupId>org.springframework</groupId>
- <artifactId>spring-aspects</artifactId>
- </aspectLibrary>
- </aspectLibraries>
- <source>1.6</source>
- <target>1.6</target>
- </configuration>
- </plugin>
- -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
@@ -360,9 +250,6 @@
<version>2.7.1</version>
<configuration>
<printSummary>false</printSummary>
- <excludes>
- <exclude>**/*_Roo_*</exclude>
- </excludes>
</configuration>
</plugin>
<plugin>
@@ -416,29 +303,29 @@
<goals>
<goal>compile-swf</goal>
</goals>
- <configuration>
- <incremental>true</incremental>
- <sourceFile>${basedir}/src/main/flex/${project.name}.mxml</sourceFile>
- <sourcePaths>
- <path>${basedir}/src/main/flex</path>
- </sourcePaths>
- <output>${basedir}/src/main/webapp/${project.name}.swf</output>
- <contextRoot>/</contextRoot>
- <services>${basedir}/src/main/webapp/WEB-INF/flex/services-config.xml</services>
- <debug>true</debug>
-</configuration>
+ <configuration>
+ <incremental>true</incremental>
+ <sourceFile>${basedir}/src/main/flex/${project.name}.mxml</sourceFile>
+ <sourcePaths>
+ <path>${basedir}/src/main/flex</path>
+ </sourcePaths>
+ <output>${basedir}/src/main/webapp/${project.name}.swf</output>
+ <contextRoot>/</contextRoot>
+ <services>${basedir}/src/main/webapp/WEB-INF/flex/services-config.xml</services>
+ <debug>true</debug>
+ </configuration>
</execution>
</executions>
- <dependencies>
- <dependency>
- <groupId>com.adobe.flex</groupId>
- <artifactId>compiler</artifactId>
- <version>4.0.0.14159</version>
- <type>pom</type>
- </dependency>
- </dependencies>
- </plugin>
- <plugin>
+ <dependencies>
+ <dependency>
+ <groupId>com.adobe.flex</groupId>
+ <artifactId>compiler</artifactId>
+ <version>4.0.0.14159</version>
+ <type>pom</type>
+ </dependency>
+ </dependencies>
+ </plugin>
+ <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-eclipse-plugin</artifactId>
<version>2.7</version>
@@ -450,19 +337,11 @@
<buildCommand>
<name>com.adobe.flexbuilder.project.flexbuilder</name>
</buildCommand>
- <!-- <buildCommand>
- <name>org.eclipse.ajdt.core.ajbuilder</name>
- <arguments>
- <aspectPath>org.springframework.aspects</aspectPath>
- </arguments>
- </buildCommand>-->
<buildCommand>
<name>org.springframework.ide.eclipse.core.springbuilder</name>
</buildCommand>
</additionalBuildcommands>
<additionalProjectnatures>
- <!-- <projectnature>org.eclipse.ajdt.ui.ajnature</projectnature>-->
- <projectnature>com.springsource.sts.roo.core.nature</projectnature>
<projectnature>org.springframework.ide.eclipse.core.springnature</projectnature>
<projectnature>com.adobe.flexbuilder.project.flexnature</projectnature>
<projectnature>com.adobe.flexbuilder.project.actionscriptnature</projectnature>
View
21 ...hat/flexchat-redis/src/main/java/org/springsource/flexchat/config/ApplicationContext.java
@@ -2,37 +2,16 @@
import java.util.HashMap;
-import org.cloudfoundry.runtime.env.CloudEnvironment;
-import org.cloudfoundry.runtime.service.keyvalue.RedisServiceCreator;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
-import org.springframework.data.keyvalue.redis.connection.RedisConnectionFactory;
-import org.springframework.data.keyvalue.redis.connection.jedis.JedisConnectionFactory;
import org.springframework.integration.json.JsonInboundMessageMapper;
import org.springframework.integration.json.JsonOutboundMessageMapper;
import org.springframework.integration.support.converter.MessageConverter;
import org.springframework.integration.support.converter.SimpleMessageConverter;
-import org.springframework.util.CollectionUtils;
@Configuration
public class ApplicationContext {
- @Bean public RedisConnectionFactory redisConnectionFactory() {
- if (CollectionUtils.isEmpty(environment().getServices())) {
- return new JedisConnectionFactory();
- } else {
- return redisServiceCreator().createSingletonService().service;
- }
- }
-
- @Bean CloudEnvironment environment() {
- return new CloudEnvironment();
- }
-
- @Bean RedisServiceCreator redisServiceCreator() {
- return new RedisServiceCreator(environment());
- }
-
@Bean MessageConverter jsonConverter() {
SimpleMessageConverter converter = new SimpleMessageConverter();
JsonInboundMessageMapper inbound = new JsonInboundMessageMapper(HashMap.class);
View
52 ...spring-flex-chat/flexchat-redis/src/main/resources/META-INF/spring/applicationContext.xml
@@ -1,56 +1,8 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:aop="http://www.springframework.org/schema/aop" xmlns:context="http://www.springframework.org/schema/context" xmlns:jee="http://www.springframework.org/schema/jee" xmlns:tx="http://www.springframework.org/schema/tx" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-3.0.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd">
-
- <!--
- This will automatically locate any and all property files you have
- within your classpath, provided they fall under the META-INF/spring
- directory. The located property files are parsed and their values can
- then be used within application context files in the form of
- ${propertyKey}.
- -->
- <context:property-placeholder location="classpath*:META-INF/spring/*.properties"/>
- <!--
- Turn on AspectJ @Configurable support. As a result, any time you
- instantiate an object, Spring will attempt to perform dependency
- injection on that object. This occurs for instantiation via the "new"
- keyword, as well as via reflection. This is possible because AspectJ
- is used to "weave" Roo-based applications at compile time. In effect
- this feature allows dependency injection of any object at all in your
- system, which is a very useful feature (without @Configurable you'd
- only be able to dependency inject objects acquired from Spring or
- subsequently presented to a specific Spring dependency injection
- method). Roo applications use this useful feature in a number of
- areas, such as @PersistenceContext injection into entities.
- -->
- <context:spring-configured/>
+ <context:component-scan base-package="org.springsource.flexchat"/>
- <!--
- This declaration will cause Spring to locate every @Component,
- @Repository and @Service in your application. In practical terms this
- allows you to write a POJO and then simply annotate the new POJO as an
- @Service and Spring will automatically detect, instantiate and
- dependency inject your service at startup time. Importantly, you can
- then also have your new service injected into any other class that
- requires it simply by declaring a field for your service inside the
- relying class and Spring will inject it. Note that two exclude filters
- are declared. The first ensures that Spring doesn't spend time
- introspecting Roo-specific ITD aspects. The second ensures Roo doesn't
- instantiate your @Controller classes, as these should be instantiated
- by a web tier application context. Refer to web.xml for more details
- about the web tier application context setup services.
-
- Furthermore, this turns on @Autowired, @PostConstruct etc support. These
- annotations allow you to use common Spring and Java Enterprise Edition
- annotations in your classes without needing to do any special configuration.
- The most commonly used annotation is @Autowired, which instructs Spring to
- dependency inject an object into your class.
- -->
- <context:component-scan base-package="org.springsource.flexchat">
- <context:exclude-filter expression=".*_Roo_.*" type="regex"/>
- <context:exclude-filter expression="org.springframework.stereotype.Controller" type="annotation"/>
- </context:component-scan>
-
- <import resource="integration-config.xml"/>
+ <import resource="integration-config.xml"/>
</beans>
View
22 ...spring-flex-chat/flexchat-redis/src/main/resources/META-INF/spring/integration-config.xml
@@ -2,17 +2,21 @@
<beans:beans xmlns="http://www.springframework.org/schema/integration"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:beans="http://www.springframework.org/schema/beans"
+ xmlns:cloud="http://schema.cloudfoundry.org/spring"
xmlns:si-redis="http://www.springframework.org/schema/integration/redis"
- xsi:schemaLocation="http://www.springframework.org/schema/integration http://www.springframework.org/schema/integration/spring-integration-2.0.xsd
- http://www.springframework.org/schema/integration/redis http://www.springframework.org/schema/integration/redis/spring-integration-redis-2.0.xsd
- http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
-
+ xsi:schemaLocation="http://www.springframework.org/schema/integration http://www.springframework.org/schema/integration/spring-integration.xsd
+ http://www.springframework.org/schema/integration/redis http://www.springframework.org/schema/integration/redis/spring-integration-redis.xsd
+ http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
+ http://schema.cloudfoundry.org/spring http://schema.cloudfoundry.org/spring/cloudfoundry-spring-0.8.xsd">
+
<channel id="chatReceiver" />
-
+
<publish-subscribe-channel id="chatPusher" />
-
- <si-redis:inbound-channel-adapter channel="chatPusher" error-channel="nullChannel" topics="chat" message-converter="jsonConverter" />
-
+
+ <si-redis:inbound-channel-adapter channel="chatPusher" error-channel="nullChannel" topics="chat" message-converter="jsonConverter"/>
+
<si-redis:outbound-channel-adapter channel="chatReceiver" message-converter="jsonConverter" topic="chat"/>
-
+
+ <cloud:redis-connection-factory id="redisConnectionFactory"/>
+
</beans:beans>
View
68 node-spring-flex-chat/flexchat-redis/src/main/webapp/WEB-INF/spring/webmvc-config.xml
@@ -1,62 +1,22 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<beans xmlns="http://www.springframework.org/schema/beans" xmlns:context="http://www.springframework.org/schema/context" xmlns:mvc="http://www.springframework.org/schema/mvc" xmlns:p="http://www.springframework.org/schema/p" 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/context http://www.springframework.org/schema/context/spring-context-3.0.xsd http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd">
-
- <!-- The controllers are autodetected POJOs labeled with the @Controller annotation. -->
- <context:component-scan base-package="org.springsource.flexchat" use-default-filters="false">
- <context:include-filter expression="org.springframework.stereotype.Controller" type="annotation"/>
- </context:component-scan>
-
- <!-- Turns on support for mapping requests to Spring MVC @Controller methods
- Also registers default Formatters and Validators for use across all @Controllers -->
+<beans xmlns="http://www.springframework.org/schema/beans"
+ xmlns:context="http://www.springframework.org/schema/context"
+ xmlns:mvc="http://www.springframework.org/schema/mvc"
+ 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/context http://www.springframework.org/schema/context/spring-context-3.0.xsd
+ http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd">
+
+ <context:annotation-config/>
+
<mvc:annotation-driven/>
-
- <!-- Handles HTTP GET requests for /resources/** by efficiently serving up static resources -->
+
<mvc:resources location="/, classpath:/META-INF/web-resources/" mapping="/resources/**"/>
-
- <!-- Allows for mapping the DispatcherServlet to "/" by forwarding static resource requests to the container's default Servlet -->
+
<mvc:default-servlet-handler/>
-
- <!-- register "global" interceptor beans to apply to all registered HandlerMappings -->
- <mvc:interceptors>
- <bean class="org.springframework.web.servlet.theme.ThemeChangeInterceptor"/>
- <bean class="org.springframework.web.servlet.i18n.LocaleChangeInterceptor" p:paramName="lang"/>
- </mvc:interceptors>
-
- <!-- selects a static view for rendering without the need for an explicit controller -->
- <mvc:view-controller path="/" view-name="index"/>
- <mvc:view-controller path="/uncaughtException"/>
- <mvc:view-controller path="/resourceNotFound"/>
- <mvc:view-controller path="/dataAccessFailure"/>
- <!-- Resolves localized messages*.properties and application.properties files in the application to allow for internationalization.
- The messages*.properties files translate Roo generated messages which are part of the admin interface, the application.properties
- resource bundle localizes all application specific messages such as entity names and menu items. -->
- <bean class="org.springframework.context.support.ReloadableResourceBundleMessageSource" id="messageSource" p:basenames="WEB-INF/i18n/messages,WEB-INF/i18n/application" p:fallbackToSystemLocale="false"/>
-
- <!-- store preferred language configuration in a cookie -->
- <bean class="org.springframework.web.servlet.i18n.CookieLocaleResolver" id="localeResolver" p:cookieName="locale"/>
-
- <!-- resolves localized <theme_name>.properties files in the classpath to allow for theme support -->
- <bean class="org.springframework.ui.context.support.ResourceBundleThemeSource" id="themeSource"/>
-
- <!-- store preferred theme configuration in a cookie -->
- <bean class="org.springframework.web.servlet.theme.CookieThemeResolver" id="themeResolver" p:cookieName="theme" p:defaultThemeName="standard"/>
+ <mvc:view-controller path="/" view-name="index"/>
- <!-- This bean resolves specific types of exceptions to corresponding logical - view names for error views.
- The default behaviour of DispatcherServlet - is to propagate all exceptions to the servlet container:
- this will happen - here with all other types of exceptions. -->
- <bean class="org.springframework.web.servlet.handler.SimpleMappingExceptionResolver" p:defaultErrorView="uncaughtException">
- <property name="exceptionMappings">
- <props>
- <prop key=".DataAccessException">dataAccessFailure</prop>
- <prop key=".NoSuchRequestHandlingMethodException">resourceNotFound</prop>
- <prop key=".TypeMismatchException">resourceNotFound</prop>
- <prop key=".MissingServletRequestParameterException">resourceNotFound</prop>
- </props>
- </property>
- </bean>
-
- <!-- allows for integration of file upload functionality -->
- <bean class="org.springframework.web.multipart.commons.CommonsMultipartResolver" id="multipartResolver"/>
<import resource="flex-config.xml"/>
+
</beans>
View
BIN  node-spring-flex-chat/flexchat-redis/src/main/webapp/flexchat.swf
Binary file not shown
Please sign in to comment.
Something went wrong with that request. Please try again.