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? @JMaghreb 2014
Search
ivargrimstad
November 05, 2014
Technology
0
100
Spring 4, Java EE 7 or Both? @JMaghreb 2014
JMaghreb 2014
ivargrimstad
November 05, 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
MasterMemory v3 最速確認会
yucchiy
0
330
Accessibility Inspectorを活用した アプリのアクセシビリティ向上方法
hinakko
0
120
普通のエンジニアがLaravelコアチームメンバーになるまで
avosalmon
0
670
20241218_マルチアカウント環境におけるIAM_Access_Analyzerによる権限管理.pdf
nrinetcom
PRO
3
150
OPENLOGI Company Profile for engineer
hr01
1
18k
React Routerで実現する型安全なSPAルーティング
sansantech
PRO
4
900
Azureの開発で辛いところ
re3turn
0
210
10年もののバグを退治した話
n_seki
0
140
I could be Wrong!! - Learning from Agile Experts
kawaguti
PRO
8
2.7k
ネットワーク可視化の世界
likr
7
5.7k
プロダクト組織で取り組むアドベントカレンダー/Advent Calendar in Product Teams
mixplace
0
670
スケールし続ける事業とサービスを支える組織とアーキテクチャの生き残り戦略 / The survival strategy for Money Forward’s engineering.
moneyforward
0
240
Featured
See All Featured
Building Better People: How to give real-time feedback that sticks.
wjessup
366
19k
Practical Orchestrator
shlominoach
186
10k
For a Future-Friendly Web
brad_frost
176
9.5k
The MySQL Ecosystem @ GitHub 2015
samlambert
250
12k
GraphQLとの向き合い方2022年版
quramy
44
13k
The Language of Interfaces
destraynor
155
24k
GitHub's CSS Performance
jonrohan
1030
460k
How to Think Like a Performance Engineer
csswizardry
22
1.3k
Building Flexible Design Systems
yeseniaperezcruz
328
38k
Into the Great Unknown - MozCon
thekraken
34
1.6k
The Straight Up "How To Draw Better" Workshop
denniskardys
232
140k
Visualization
eitanlees
146
15k
Transcript
@ivar_grimstad JMaghreb 2014 Spring 4, Java EE 7 or Both?
Ivar Grimstad
@ivar_grimstad JMaghreb 2014 @ivar_grimstad https://github.com/ivargrimstad https://www.linkedin.com/in/ivargrimstad http://lanyrd.com/profile/ivargrimstad/
@ivar_grimstad JMaghreb 2014 Contents Spring 4 Java EE 7 Combining
Spring 4 with Java EE 7
@ivar_grimstad JMaghreb 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 JMaghreb 2014 Spring Framework 4
@ivar_grimstad JMaghreb 2014
@ivar_grimstad JMaghreb 2014 XML ?
@ivar_grimstad JMaghreb 2014 Annotations and JavaConfig to the Rescue
@ivar_grimstad JMaghreb 2014 New in Spring 4
@ivar_grimstad JMaghreb 2014
@ivar_grimstad JMaghreb 2014 Java 8 Support
@ivar_grimstad JMaghreb 2014 @Repeatable @Fruit(1) @Fruit(2) class Bowl {} @Fruits({@Fruit(1),
@Fruit(2)}) class Bowl {}
@ivar_grimstad JMaghreb 2014 Callback Interfaces interface RowMapper<T> { T mapRow(ResultSet
rs, int rowNum); }
@ivar_grimstad JMaghreb 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 JMaghreb 2014 Groovy Bean Definition Language
@ivar_grimstad JMaghreb 2014 Core Container Improvements @Autowired private Foo<Integer> i;
@Autowired private Foo<String> s;
@ivar_grimstad JMaghreb 2014 Web Improvements @Controller @ResponseBody public Response foo()
{} @RestController public Response foo() {}
@ivar_grimstad JMaghreb 2014 WebSockets spring-websocket spring-messaging
@ivar_grimstad JMaghreb 2014 Java EE 7
@ivar_grimstad JMaghreb 2014 Overview
@ivar_grimstad JMaghreb 2014 Java EE 7 Focus Areas
@ivar_grimstad JMaghreb 2014 Developer Productivity
@ivar_grimstad JMaghreb 2014 Simplicity @Stateless public class Foo {}
@ivar_grimstad JMaghreb 2014 HTML 5
@ivar_grimstad JMaghreb 2014 WebSockets @ServerEndpoint public class Foo {} @ClientEndpoint
public class FooClient {
@ivar_grimstad JMaghreb 2014 Meeting Enterprise Demands
@ivar_grimstad JMaghreb 2014 JMS 2.0 @Stateless public class Foo {
@Inject private JMSContext context; @Resource(lookup=“jms/MyQueue”) private Queue queue; }
@ivar_grimstad JMaghreb 2014 Compatibility
@ivar_grimstad JMaghreb 2014 Mixing Spring 4 with Java EE 7
@ivar_grimstad JMaghreb 2014 Java EE 7 vs Spring 4
@ivar_grimstad JMaghreb 2014 Spring 4 vs Java EE 7
@ivar_grimstad JMaghreb 2014 Java EE 7 Container Java EE 7
Application (WAR) bean bean @Inject
@ivar_grimstad JMaghreb 2014 Spring 4 Container Spring 4 Application (WAR)
Spring 4 Context bean bean @Autowired
@ivar_grimstad JMaghreb 2014 So What about Mixing Spring and Java
EE?
@ivar_grimstad JMaghreb 2014 Java EE 7 -> Spring 4 Container
Java EE 7 Application (WAR) bean Spring 4 Context bean bean bean @Inject @Inject @Autowired
@ivar_grimstad JMaghreb 2014 Spring 4 -> Java EE 7 Container
Spring 4 Application (WAR) bean Spring 4 Context bean bean bean @Autowired @Inject @Autowired
@ivar_grimstad JMaghreb 2014 DEMO !
@ivar_grimstad JMaghreb 2014 Integrate a Spring 4 Component in Java
EE 7 Application
@ivar_grimstad JMaghreb 2014 Java EE 7 -> Spring 4 Container
Java EE 7 Application (WAR) resource simple @Inject Spring 4 Context awsome simple @Autowired @Inject
@ivar_grimstad JMaghreb 2014 Java EE 7 -> Spring 4 Container
Java EE 7 Application (WAR) resource awsome simple Spring 4 Context @Autowired @Inject @Inject
@ivar_grimstad JMaghreb 2014 Java EE 7 -> Spring 4 Container
Java EE 7 Application (WAR) resource awsome simple simple @Inject @Inject @Autowired X
@ivar_grimstad JMaghreb 2014 Integrate a Java EE 7 Component in
Spring 4 Application
@ivar_grimstad JMaghreb 2014 Spring 4 -> Java EE 7 Container
Spring 4 Application (WAR) awsome simple @Inject Spring 4 Context resource simple @Autowired @EJB
@ivar_grimstad JMaghreb 2014 Spring 4 -> Java EE 7 Container
Spring 4 Application (WAR) awsome simple @Inject resource Spring 4 Context @Autowired @EJB
@ivar_grimstad JMaghreb 2014 Spring 4 -> Java EE 7 Container
Spring 4 Application (WAR) awsome resource Spring 4 Context @EJB @Inject simple @Autowired @Autowired X
@ivar_grimstad JMaghreb 2014 Summary
@ivar_grimstad JMaghreb 2014 Spring 4 and Java EE 7 solves
the same problem
@ivar_grimstad JMaghreb 2014 Java EE 7 require less configuration and
dependencies
@ivar_grimstad JMaghreb 2014 Spring 4 is more portable
@ivar_grimstad JMaghreb 2014 Using Spring 4 from Java EE is
safer
@ivar_grimstad JMaghreb 2014 Mixing is possible
@ivar_grimstad JMaghreb 2014 …but…
@ivar_grimstad JMaghreb 2014 Favor one framework over mixing
@ivar_grimstad JMaghreb 2014 Use Cases
@ivar_grimstad JMaghreb 2014 Sources https://github.com/ivargrimstad/spring-javaee
@ivar_grimstad JMaghreb 2014 cybercom.com