JDD2014: Spring 4, JAVA EE 7 or both? - Ivar Grimstad

of 55/55
@ivar_grimstad JDD 2014 Spring 4, Java EE 7 or Both? Ivar Grimstad
  • date post

    01-Jul-2015
  • Category

    Software

  • view

    564
  • download

    0

Embed Size (px)

description

Problems choosing between Java EE and Spring? Or do you want to use both in combination? Then this session is something for you. In this session I will go through the similarities and differences between Spring 4 and Java EE 7. I will go through what you need to consider to configure and combine the two approaches. In the demo part of the presentation I will show how to integrate existing Spring 4 components into a Java EE 7 application. And as if that is not enough, I will also do it the other way around, that is to integrate existing Java EE 7 components into a Spring 4 application. Strengths and weaknesses with the approaches will then be explored and lessons learned summarized.

Transcript of JDD2014: Spring 4, JAVA EE 7 or both? - Ivar Grimstad

  • 1. Spring 4, Java EE 7 or Both?Ivar GrimstadJDD 2014 @ivar_grimstad

2. JDD 2014 @ivar_grimstad 3. ContentsSpring 4Java EE 7Combining Spring 4 with Java EE 7JDD 2014 @ivar_grimstad 4. TimelineJPE J2EE 1.2 J2EE 1.3 J2EE 1.4 Java EE 5 Java EE 6 Java EE 7Spring Spring 1 Spring 2 Spring 3 Spring 41998 2014JDD 2014 @ivar_grimstad 5. Spring Framework 4JDD 2014 @ivar_grimstad 6. JDD 2014 @ivar_grimstad 7. XML ?JDD 2014 @ivar_grimstad 8. Annotations andJavaConfig to the RescueJDD 2014 @ivar_grimstad 9. New in Spring 4JDD 2014 @ivar_grimstad 10. JDD 2014 @ivar_grimstad 11. Java 8 SupportJDD 2014 @ivar_grimstad 12. @[email protected](1) @Fruit(2)class Bowl {}[email protected]({@Fruit(1), @Fruit(2)})class Bowl {}JDD 2014 @ivar_grimstad 13. Callback Interfacesinterface RowMapper {T mapRow(ResultSet rs, int rowNum);}JDD 2014 @ivar_grimstad 14. JMS 2.0JTA 1.2 JPA 2.1Java EE 7 SupportConcurrencyUtilitiesBean!Validation 1.16 JDD 2014 @ivar_grimstad 15. Groovy Bean Definition LanguageJDD 2014 @ivar_grimstad 16. Core Container [email protected] Foo i;[email protected] Foo s;JDD 2014 @ivar_grimstad 17. Web [email protected]@ResponseBodypublic Response foo() {}@RestControllerpublic Response foo() {}JDD 2014 @ivar_grimstad 18. WebSocketsspring-websocket!spring-messagingJDD 2014 @ivar_grimstad 19. Java EE 7JDD 2014 @ivar_grimstad 20. OverviewJDD 2014 @ivar_grimstad 21. Java EE 7 Focus AreasJDD 2014 @ivar_grimstad 22. Developer ProductivityJDD 2014 @ivar_grimstad 23. [email protected] class Foo {}JDD 2014 @ivar_grimstad 24. HTML 5JDD 2014 @ivar_grimstad 25. [email protected] class Foo {}[email protected] class FooClient {JDD 2014 @ivar_grimstad 26. Meeting EnterpriseDemandsJDD 2014 @ivar_grimstad 27. JMS [email protected] class Foo {[email protected] JMSContext context;[email protected](lookup=jms/MyQueue)private Queue queue;}JDD 2014 @ivar_grimstad 28. CompatibilityJDD 2014 @ivar_grimstad 29. Mixing Spring 4 with Java EE 7JDD 2014 @ivar_grimstad 30. Java EE 7 vs Spring 4JDD 2014 @ivar_grimstad 31. Spring 4 vs Java EE 7JDD 2014 @ivar_grimstad 32. Java EE 7ContainerJava EE 7 Application (WAR)[email protected] 2014 @ivar_grimstad 33. Spring 4ContainerSpring 4 Application (WAR)Spring 4 [email protected] 2014 @ivar_grimstad 34. So What about MixingSpring and Java EE?JDD 2014 @ivar_grimstad 35. Java EE 7 -> Spring 4ContainerJava EE 7 Application (WAR)beanSpring 4 [email protected]@Inject @Autowiredbean beanJDD 2014 @ivar_grimstad 36. Spring 4 -> Java EE 7ContainerSpring 4 Application (WAR)beanSpring 4 [email protected]@Autowired @Injectbean beanJDD 2014 @ivar_grimstad 37. DEMO !JDD 2014 @ivar_grimstad 38. Integrate a Spring 4 ComponentinJava EE 7 ApplicationJDD 2014 @ivar_grimstad 39. Java EE 7 -> Spring 4ContainerJava EE 7 Application (WAR)[email protected] 4 [email protected]@InjectJDD 2014 @ivar_grimstad 40. Java EE 7 -> Spring 4ContainerJava EE 7 Application (WAR)Spring 4 [email protected] [email protected] @AutowiredsimpleJDD 2014 @ivar_grimstad 41. Java EE 7 -> Spring [email protected]@AutowiredContainerJava EE 7 Application (WAR)@Injectresource awsomesimple simpleJDD 2014 @ivar_grimstad 42. Integrate a Java EE 7 ComponentinSpring 4 ApplicationJDD 2014 @ivar_grimstad 43. Spring 4 -> Java EE 7ContainerSpring 4 Application (WAR)[email protected] 4 [email protected]@EJBJDD 2014 @ivar_grimstad 44. Spring 4 -> Java EE 7ContainerSpring 4 Application (WAR)[email protected] 4 [email protected]@AutowiredJDD 2014 @ivar_grimstad 45. Spring 4 -> Java EE 7ContainerSpring 4 Application (WAR)Spring 4 [email protected]@EJBresource [email protected]@AutowiredsimpleJDD 2014 @ivar_grimstad 46. SummaryJDD 2014 @ivar_grimstad 47. Spring 4 and Java EE 7solves the same problemJDD 2014 @ivar_grimstad 48. Java EE 7 require lessconfiguration anddependenciesJDD 2014 @ivar_grimstad 49. Spring 4 is more portableJDD 2014 @ivar_grimstad 50. Using Spring 4 fromJava EE is easierJDD 2014 @ivar_grimstad 51. Mixing is possibleJDD 2014 @ivar_grimstad 52. butJDD 2014 @ivar_grimstad 53. Favor one frameworkover mixingJDD 2014 @ivar_grimstad 54. Sourceshttps://github.com/ivargrimstad/spring-javaeeJDD 2014 @ivar_grimstad 55. cybercom.comJDD 2014 @ivar_grimstad