Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Spring 4, Java EE 7 or Both? @JDD 2014
Search
ivargrimstad
October 13, 2014
Technology
0
120
Spring 4, Java EE 7 or Both? @JDD 2014
JDD 2014
ivargrimstad
October 13, 2014
Tweet
Share
More Decks by ivargrimstad
See All by ivargrimstad
Jakarta EE meets AI
ivargrimstad
0
410
Jakarta EE meets AI
ivargrimstad
0
2.7k
Jakarta EE meets AI
ivargrimstad
0
2.3k
Jakarta EE meets AI
ivargrimstad
0
2.2k
Jakarta EE meets AI
ivargrimstad
0
2.1k
Jakarta EE meets AI
ivargrimstad
0
1.9k
A Journey of Contribution and Collaboration in Open Source
ivargrimstad
0
2.2k
Nurturing OpenJDK distribution: Eclipse Temurin Success History and plan
ivargrimstad
0
2.2k
Why Jakarta EE Matters to Spring - and Vice Versa
ivargrimstad
0
2.1k
Other Decks in Technology
See All in Technology
Copilotの力を実感!3ヶ月間の生成AI研修の試行錯誤&成功事例をご紹介。果たして得たものとは・・?
ktc_shiori
0
130
20241125 - AI 繪圖實戰魔法工作坊 @ 實踐大學
dpys
1
450
AWS re:Invent 2024 ふりかえり勉強会
yhana
0
700
Azureの開発で辛いところ
re3turn
0
210
2025年のARグラスの潮流
kotauchisunsun
0
610
React Routerで実現する型安全なSPAルーティング
sansantech
PRO
4
900
OPENLOGI Company Profile for engineer
hr01
1
18k
pg_bigmをRustで実装する(第50回PostgreSQLアンカンファレンス@オンライン 発表資料)
shinyakato_
0
150
PHP ユーザのための OpenTelemetry 入門 / phpcon2024-opentelemetry
shin1x1
3
1.6k
普通のエンジニアがLaravelコアチームメンバーになるまで
avosalmon
0
670
エンジニアリングマネージャー視点での、自律的なスケーリングを実現するFASTという選択肢 / RSGT2025
yoshikiiida
4
3k
新しいスケーリング則と学習理論
taiji_suzuki
9
3.7k
Featured
See All Featured
A Tale of Four Properties
chriscoyier
157
23k
A Modern Web Designer's Workflow
chriscoyier
693
190k
Designing Experiences People Love
moore
139
23k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
44
6.9k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
171
50k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
47
5.1k
Optimising Largest Contentful Paint
csswizardry
33
3k
Java REST API Framework Comparison - PWX 2021
mraible
28
8.3k
How to train your dragon (web standard)
notwaldorf
88
5.8k
Testing 201, or: Great Expectations
jmmastey
41
7.2k
Code Reviewing Like a Champion
maltzj
521
39k
Scaling GitHub
holman
459
140k
Transcript
@ivar_grimstad JDD 2014 Spring 4, Java EE 7 or Both?
Ivar Grimstad
@ivar_grimstad JDD 2014
@ivar_grimstad JDD 2014 Contents Spring 4 Java EE 7 Combining
Spring 4 with Java EE 7
@ivar_grimstad JDD 2014 Timeline 1998 2014 JPE J2EE 1.2 J2EE
1.3 J2EE 1.4 Java EE 5 Java EE 6 Java EE 7 Spring Spring 1 Spring 2 Spring 3 Spring 4
@ivar_grimstad JDD 2014 Spring Framework 4
@ivar_grimstad JDD 2014
@ivar_grimstad JDD 2014 XML ?
@ivar_grimstad JDD 2014 Annotations and JavaConfig to the Rescue
@ivar_grimstad JDD 2014 New in Spring 4
@ivar_grimstad JDD 2014
@ivar_grimstad JDD 2014 Java 8 Support
@ivar_grimstad JDD 2014 @Repeatable @Fruit(1) @Fruit(2) class Bowl {} !
@Fruits({@Fruit(1), @Fruit(2)}) class Bowl {}
@ivar_grimstad JDD 2014 Callback Interfaces interface RowMapper<T> { T mapRow(ResultSet
rs, int rowNum); }
@ivar_grimstad JDD 2014 Java EE 7 Support JMS 2.0 Concurrency
Utilities JTA 1.2 JPA 2.1 Bean! Validation 1.1 Java EE 6 Support
@ivar_grimstad JDD 2014 Groovy Bean Definition Language
@ivar_grimstad JDD 2014 Core Container Improvements @Autowired private Foo<Integer> i;
! @Autowired private Foo<String> s;
@ivar_grimstad JDD 2014 Web Improvements @Controller @ResponseBody public Response foo()
{} @RestController public Response foo() {}
@ivar_grimstad JDD 2014 WebSockets spring-websocket ! spring-messaging
@ivar_grimstad JDD 2014 Java EE 7
@ivar_grimstad JDD 2014 Overview
@ivar_grimstad JDD 2014 Java EE 7 Focus Areas
@ivar_grimstad JDD 2014 Developer Productivity
@ivar_grimstad JDD 2014 Simplicity @Stateless public class Foo {}
@ivar_grimstad JDD 2014 HTML 5
@ivar_grimstad JDD 2014 WebSockets @ServerEndpoint public class Foo {} !
@ClientEndpoint public class FooClient {
@ivar_grimstad JDD 2014 Meeting Enterprise Demands
@ivar_grimstad JDD 2014 JMS 2.0 @Stateless public class Foo {
! @Inject private JMSContext context; ! @Resource(lookup=“jms/MyQueue”) private Queue queue; }
@ivar_grimstad JDD 2014 Compatibility
@ivar_grimstad JDD 2014 Mixing Spring 4 with Java EE 7
@ivar_grimstad JDD 2014 Java EE 7 vs Spring 4
@ivar_grimstad JDD 2014 Spring 4 vs Java EE 7
@ivar_grimstad JDD 2014 Java EE 7 Container Java EE 7
Application (WAR) bean bean @Inject
@ivar_grimstad JDD 2014 Spring 4 Container Spring 4 Application (WAR)
Spring 4 Context bean bean @Autowired
@ivar_grimstad JDD 2014 So What about Mixing Spring and Java
EE?
@ivar_grimstad JDD 2014 Java EE 7 -> Spring 4 Container
Java EE 7 Application (WAR) bean Spring 4 Context bean bean bean @Inject @Inject @Autowired
@ivar_grimstad JDD 2014 Spring 4 -> Java EE 7 Container
Spring 4 Application (WAR) bean Spring 4 Context bean bean bean @Autowired @Inject @Autowired
@ivar_grimstad JDD 2014 DEMO !
@ivar_grimstad JDD 2014 Integrate a Spring 4 Component in Java
EE 7 Application
@ivar_grimstad JDD 2014 Java EE 7 -> Spring 4 Container
Java EE 7 Application (WAR) resource simple @Inject Spring 4 Context awsome simple @Autowired @Inject
@ivar_grimstad JDD 2014 Java EE 7 -> Spring 4 Container
Java EE 7 Application (WAR) resource awsome simple Spring 4 Context @Autowired @Inject @Inject
@ivar_grimstad JDD 2014 Java EE 7 -> Spring 4 Container
Java EE 7 Application (WAR) resource awsome simple simple @Inject @Inject @Autowired X
@ivar_grimstad JDD 2014 Integrate a Java EE 7 Component in
Spring 4 Application
@ivar_grimstad JDD 2014 Spring 4 -> Java EE 7 Container
Spring 4 Application (WAR) awsome simple @Inject Spring 4 Context resource simple @Autowired @EJB
@ivar_grimstad JDD 2014 Spring 4 -> Java EE 7 Container
Spring 4 Application (WAR) awsome simple @Inject resource Spring 4 Context @Autowired @EJB
@ivar_grimstad JDD 2014 Spring 4 -> Java EE 7 Container
Spring 4 Application (WAR) awsome resource Spring 4 Context @EJB @Inject simple @Autowired @Autowired
@ivar_grimstad JDD 2014 Summary
@ivar_grimstad JDD 2014 Spring 4 and Java EE 7 solves
the same problem
@ivar_grimstad JDD 2014 Java EE 7 require less configuration and
dependencies
@ivar_grimstad JDD 2014 Spring 4 is more portable
@ivar_grimstad JDD 2014 Using Spring 4 from Java EE is
easier
@ivar_grimstad JDD 2014 Mixing is possible
@ivar_grimstad JDD 2014 …but…
@ivar_grimstad JDD 2014 Favor one framework over mixing
@ivar_grimstad JDD 2014 Sources https://github.com/ivargrimstad/spring-javaee
@ivar_grimstad JDD 2014 cybercom.com