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
What Spring Developers Should Know About Jakarta EE
ivargrimstad
0
410
The Evolution of Enterprise Java with Jakarta EE 11 and Beyond
ivargrimstad
1
1.1k
What Spring Developers Should Know About Jakarta EE
ivargrimstad
1
1.4k
Duke on CRaC with Jakarta EE
ivargrimstad
1
1.2k
Boost Your Performance and Developer Productivity with Jakarta EE 11
ivargrimstad
0
1.5k
Jakarta EE Meets AI
ivargrimstad
0
1.6k
Boost Your Performance and Developer Productivity with Jakarta EE 11
ivargrimstad
0
2.9k
The Evolution of Enterprise Java with Jakarta EE 11 and Beyond
ivargrimstad
0
3.2k
Duke on CRaC with Jakarta EE
ivargrimstad
0
3k
Other Decks in Technology
See All in Technology
KubeCon + CloudNativeCon Japan 2025 に行ってきた! & containerd の新機能紹介
honahuku
0
120
Understanding_Thread_Tuning_for_Inference_Servers_of_Deep_Models.pdf
lycorptech_jp
PRO
0
160
高速なプロダクト開発を実現、創業期から掲げるエンタープライズアーキテクチャ
kawauso
2
6.7k
AI導入の理想と現実~コストと浸透〜
oprstchn
0
180
FOSS4G 2025 KANSAI QGISで点群データをいろいろしてみた
kou_kita
0
360
Beyond Kaniko: Navigating Unprivileged Container Image Creation
f30
0
130
Connect 100+を支える技術
kanyamaguc
0
180
LangSmith×Webhook連携で実現するプロンプトドリブンCI/CD
sergicalsix
1
190
How Community Opened Global Doors
hiroramos4
PRO
1
140
マネジメントって難しい、けどおもしろい / Management is tough, but fun! #em_findy
ar_tama
3
470
「クラウドコスト絶対削減」を支える技術—FinOpsを超えた徹底的なクラウドコスト削減の実践論
delta_tech
4
110
モバイル界のMCPを考える
naoto33
0
400
Featured
See All Featured
Principles of Awesome APIs and How to Build Them.
keavy
126
17k
Automating Front-end Workflow
addyosmani
1370
200k
Product Roadmaps are Hard
iamctodd
PRO
54
11k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
34
5.9k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
107
19k
Bootstrapping a Software Product
garrettdimon
PRO
307
110k
Typedesign – Prime Four
hannesfritz
42
2.7k
How STYLIGHT went responsive
nonsquared
100
5.6k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
138
34k
What’s in a name? Adding method to the madness
productmarketing
PRO
23
3.5k
It's Worth the Effort
3n
185
28k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
46
9.6k
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