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
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
31
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
600
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
980
Duke on CRaC with Jakarta EE
ivargrimstad
0
980
Developing Specifications - Jakarta EE: a Real World Example
ivargrimstad
0
840
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
1.1k
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
1.1k
What Spring Developers Should Know About Jakarta EE
ivargrimstad
0
1.1k
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
1.1k
Other Decks in Technology
See All in Technology
モダンUIでフルサーバーレスなAIエージェントをAmplifyとCDKでサクッとデプロイしよう
minorun365
4
220
Embedded SREの終わりを設計する 「なんとなく」から計画的な自立支援へ
sansantech
PRO
3
2.5k
超初心者からでも大丈夫!オープンソース半導体の楽しみ方〜今こそ!オレオレチップをつくろう〜
keropiyo
0
110
OpenShiftでllm-dを動かそう!
jpishikawa
0
130
AIエージェントを開発しよう!-AgentCore活用の勘所-
yukiogawa
0
170
小さく始めるBCP ― 多プロダクト環境で始める最初の一歩
kekke_n
1
450
All About Sansan – for New Global Engineers
sansan33
PRO
1
1.4k
【Ubie】AIを活用した広告アセット「爆速」生成事例 | AI_Ops_Community_Vol.2
yoshiki_0316
1
110
クレジットカード決済基盤を支えるSRE - 厳格な監査とSRE運用の両立 (SRE Kaigi 2026)
capytan
6
2.8k
ブロックテーマ、WordPress でウェブサイトをつくるということ / 2026.02.07 Gifu WordPress Meetup
torounit
0
190
【Oracle Cloud ウェビナー】[Oracle AI Database + AWS] Oracle Database@AWSで広がるクラウドの新たな選択肢とAI時代のデータ戦略
oracle4engineer
PRO
2
170
30万人の同時アクセスに耐えたい!新サービスの盤石なリリースを支える負荷試験 / SRE Kaigi 2026
genda
4
1.3k
Featured
See All Featured
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
76
What’s in a name? Adding method to the madness
productmarketing
PRO
24
3.9k
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
1
910
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
1
330
The Limits of Empathy - UXLibs8
cassininazir
1
220
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.6k
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
330
Navigating Weather and Climate Data
rabernat
0
110
Reflections from 52 weeks, 52 projects
jeffersonlam
356
21k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
7.9k
Fireside Chat
paigeccino
41
3.8k
Designing Experiences People Love
moore
144
24k
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