diff --git a/spring-flex-core/pom.xml b/spring-flex-core/pom.xml
index 6206a0d6..57d3f13b 100644
--- a/spring-flex-core/pom.xml
+++ b/spring-flex-core/pom.xml
@@ -53,6 +53,7 @@
javax.servlet
javax.servlet-api
+ 3.1.0
javax.annotation
@@ -94,22 +95,22 @@
org.springframework
spring-webmvc
-
- com.adobe.blazeds
- blazeds-core
-
-
- com.adobe.blazeds
- blazeds-common
-
-
- com.adobe.blazeds
- blazeds-proxy
-
-
- com.adobe.blazeds
- blazeds-remoting
-
+
+ org.apache.flex.blazeds
+ flex-messaging-core
+
+
+ org.apache.flex.blazeds
+ flex-messaging-common
+
+
+ org.apache.flex.blazeds
+ flex-messaging-proxy
+
+
+ org.apache.flex.blazeds
+ flex-messaging-remoting
+
javax.jms
jms-api
diff --git a/spring-flex-core/src/main/java/org/springframework/flex/config/FlexConfigurationManager.java b/spring-flex-core/src/main/java/org/springframework/flex/config/FlexConfigurationManager.java
index 59ebe2e6..201df0de 100755
--- a/spring-flex-core/src/main/java/org/springframework/flex/config/FlexConfigurationManager.java
+++ b/spring-flex-core/src/main/java/org/springframework/flex/config/FlexConfigurationManager.java
@@ -36,7 +36,6 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.context.ResourceLoaderAware;
-import org.springframework.core.JdkVersion;
import org.springframework.core.io.Resource;
import org.springframework.core.io.ResourceLoader;
import org.springframework.core.io.support.ResourcePatternResolver;
@@ -98,7 +97,19 @@ public FlexConfigurationManager(ResourceLoader resourceLoader, String configurat
*/
@SuppressWarnings("unchecked")
public MessagingConfiguration getMessagingConfiguration(ServletConfig servletConfig) {
- Assert.isTrue(JdkVersion.getMajorJavaVersion() >= JdkVersion.JAVA_15, "Spring BlazeDS Integration requires a minimum of Java 1.5");
+ String[] javaVersionElements = System.getProperty("java.version").split("\\.");
+ int major = 0;
+ // Check about Java version
+ // If Java version is greater or equals than 10 we get the first element (i.e. JDK 12.0.2 get 12)
+ // Else Java version lower then 10 get the second element (i.e. JDK 1.8.260 get 8)
+ if (javaVersionElements.length>0 && Integer.parseInt(javaVersionElements[0])>=10) {
+ major = Integer.parseInt(javaVersionElements[0]);
+ }else if (javaVersionElements.length>1){
+ major = Integer.parseInt(javaVersionElements[1]);
+ }
+
+ Assert.isTrue(major >= 5, "Spring BlazeDS Integration requires a minimum of Java 1.5");
+
Assert.notNull(servletConfig, "FlexConfigurationManager requires a non-null ServletConfig - "
+ "Is it being used outside a WebApplicationContext?");
diff --git a/spring-flex-core/src/main/java/org/springframework/flex/http/AmfHttpMessageConverter.java b/spring-flex-core/src/main/java/org/springframework/flex/http/AmfHttpMessageConverter.java
index 0016c3e6..3770ad5f 100644
--- a/spring-flex-core/src/main/java/org/springframework/flex/http/AmfHttpMessageConverter.java
+++ b/spring-flex-core/src/main/java/org/springframework/flex/http/AmfHttpMessageConverter.java
@@ -41,6 +41,7 @@
import flex.messaging.io.amf.AmfMessageDeserializer;
import flex.messaging.io.amf.AmfMessageSerializer;
import flex.messaging.io.amf.AmfTrace;
+import flex.messaging.validators.DeserializationValidator;
/**
* Implementation of {@link org.springframework.http.converter.HttpMessageConverter HttpMessageConverter}
@@ -59,10 +60,16 @@ public class AmfHttpMessageConverter extends AbstractHttpMessageConverter
-
- com.adobe.blazeds
- blazeds-core
- ${blazeds.version}
-
-
- com.adobe.blazeds
- blazeds-common
- ${blazeds.version}
-
-
- com.adobe.blazeds
- blazeds-proxy
- ${blazeds.version}
-
-
- com.adobe.blazeds
- blazeds-remoting
- ${blazeds.version}
-
+
+
+
+
+ org.apache.flex.blazeds
+ flex-messaging-core
+ 4.7.3
+
+
+ org.apache.flex.blazeds
+ flex-messaging-common
+ 4.7.3
+
+
+ org.apache.flex.blazeds
+ flex-messaging-proxy
+ 4.7.3
+
+
+ org.apache.flex.blazeds
+ flex-messaging-remoting
+ 4.7.3
+
+
+
javax.jms
jms-api
@@ -245,7 +250,7 @@
junit
junit
- 4.9
+ 4.12
test
diff --git a/spring-flex-samples/spring-flex-testdrive/testdrive/src/main/webapp/WEB-INF/flex/services-config.xml b/spring-flex-samples/spring-flex-testdrive/testdrive/src/main/webapp/WEB-INF/flex/services-config.xml
index 772cadaf..050f8bd8 100644
--- a/spring-flex-samples/spring-flex-testdrive/testdrive/src/main/webapp/WEB-INF/flex/services-config.xml
+++ b/spring-flex-samples/spring-flex-testdrive/testdrive/src/main/webapp/WEB-INF/flex/services-config.xml
@@ -1,92 +1,127 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- false
-
-
-
-
-
-
- true
- 4
-
-
-
-
-
-
- true
- 5
- 60000
- 1
- 200
-
-
-
-
-
-
-
-
-
-
-
-
- ROLE_USER
- ROLE_ADMIN
-
-
-
-
-
-
-
- [BlazeDS]
- false
- false
- false
- false
-
-
- Endpoint.*
- Service.*
- Configuration
-
-
-
-
-
-
-
-
- false
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ true
+
+
+
+
+
+
+
+
+ true
+
+
+
+
+
+
+
+ false
+
+ true
+
+
+
+
+
+
+
+ true
+ 4
+
+ true
+
+
+
+
+
+
+
+ true
+ 5
+ 60000
+ 1
+ 200
+
+ true
+
+
+
+
+
+
+
+
+ true
+
+
+
+
+
+
+
+
+
+ ROLE_USER
+ ROLE_ADMIN
+
+
+
+
+
+
+
+ [BlazeDS]
+ false
+ false
+ false
+ false
+
+
+ Endpoint.*
+ Service.*
+ Configuration
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ false
+
+
+
+