apache tomee - events.static.linuxfound.org · • 100 spot instances • 613mb memory max • web...
TRANSCRIPT
![Page 1: Apache TomEE - events.static.linuxfound.org · • 100 spot instances • 613MB memory max • Web Profile TCK with JVM defaults • OSs Certified • Amazon Linux AMI 2011.09,](https://reader034.vdocuments.us/reader034/viewer/2022042219/5ec54102ecda8e73e420e97a/html5/thumbnails/1.jpg)
Apache TomEE!Java EE Web Profile and more on Apache Tomcat
Jonathan Gallimore and Jean-Louis Monteiro
![Page 2: Apache TomEE - events.static.linuxfound.org · • 100 spot instances • 613MB memory max • Web Profile TCK with JVM defaults • OSs Certified • Amazon Linux AMI 2011.09,](https://reader034.vdocuments.us/reader034/viewer/2022042219/5ec54102ecda8e73e420e97a/html5/thumbnails/2.jpg)
About us
16/11/14 Apache TomEE 2
Jonathan Gallimore
Senior Java EE Software Engineer Apache Software Foundation
Jean-Louis Monteiro
Senior Java EE Software Architect Apache Software Foundation
EJB 3.2 EG member Java EE teacher at University in France
![Page 3: Apache TomEE - events.static.linuxfound.org · • 100 spot instances • 613MB memory max • Web Profile TCK with JVM defaults • OSs Certified • Amazon Linux AMI 2011.09,](https://reader034.vdocuments.us/reader034/viewer/2022042219/5ec54102ecda8e73e420e97a/html5/thumbnails/3.jpg)
Java EE in few words
![Page 4: Apache TomEE - events.static.linuxfound.org · • 100 spot instances • 613MB memory max • Web Profile TCK with JVM defaults • OSs Certified • Amazon Linux AMI 2011.09,](https://reader034.vdocuments.us/reader034/viewer/2022042219/5ec54102ecda8e73e420e97a/html5/thumbnails/4.jpg)
J2EE, but it was before
Guess
Explain
Recommend
16/11/14 Apache TomEE 4
![Page 5: Apache TomEE - events.static.linuxfound.org · • 100 spot instances • 613MB memory max • Web Profile TCK with JVM defaults • OSs Certified • Amazon Linux AMI 2011.09,](https://reader034.vdocuments.us/reader034/viewer/2022042219/5ec54102ecda8e73e420e97a/html5/thumbnails/5.jpg)
Now, it’s Java EE
The opposite
16/11/14 Apache TomEE 5
![Page 6: Apache TomEE - events.static.linuxfound.org · • 100 spot instances • 613MB memory max • Web Profile TCK with JVM defaults • OSs Certified • Amazon Linux AMI 2011.09,](https://reader034.vdocuments.us/reader034/viewer/2022042219/5ec54102ecda8e73e420e97a/html5/thumbnails/6.jpg)
16/11/14 Apache TomEE 6
![Page 7: Apache TomEE - events.static.linuxfound.org · • 100 spot instances • 613MB memory max • Web Profile TCK with JVM defaults • OSs Certified • Amazon Linux AMI 2011.09,](https://reader034.vdocuments.us/reader034/viewer/2022042219/5ec54102ecda8e73e420e97a/html5/thumbnails/7.jpg)
What is Apache TomEE?
Pronounced « TOMMY », by the way ;-)
![Page 8: Apache TomEE - events.static.linuxfound.org · • 100 spot instances • 613MB memory max • Web Profile TCK with JVM defaults • OSs Certified • Amazon Linux AMI 2011.09,](https://reader034.vdocuments.us/reader034/viewer/2022042219/5ec54102ecda8e73e420e97a/html5/thumbnails/8.jpg)
2011 Java EE Web Profile
Tomcat + « Java EE » = TomEE certified
small
Apache stack
When did the story started?
16/11/14 Apache TomEE 8
![Page 9: Apache TomEE - events.static.linuxfound.org · • 100 spot instances • 613MB memory max • Web Profile TCK with JVM defaults • OSs Certified • Amazon Linux AMI 2011.09,](https://reader034.vdocuments.us/reader034/viewer/2022042219/5ec54102ecda8e73e420e97a/html5/thumbnails/9.jpg)
Web profile?
![Page 10: Apache TomEE - events.static.linuxfound.org · • 100 spot instances • 613MB memory max • Web Profile TCK with JVM defaults • OSs Certified • Amazon Linux AMI 2011.09,](https://reader034.vdocuments.us/reader034/viewer/2022042219/5ec54102ecda8e73e420e97a/html5/thumbnails/10.jpg)
Introduced in Java EE 6
Without legacy stuff
Cut Java EE in half
EARs are dead
The Web Profile to the rescue
16/11/14 Apache TomEE 10
![Page 11: Apache TomEE - events.static.linuxfound.org · • 100 spot instances • 613MB memory max • Web Profile TCK with JVM defaults • OSs Certified • Amazon Linux AMI 2011.09,](https://reader034.vdocuments.us/reader034/viewer/2022042219/5ec54102ecda8e73e420e97a/html5/thumbnails/11.jpg)
Apache TomEE flavors
16/11/14 Apache TomEE 11
Feature Tomcat TomEE Web Profile
TomEE JAX-RS
TomEE Plus
TomEE PluME
Servlets Yes Yes Yes Yes Yes
JSP Yes Yes Yes Yes Yes
JSF Yes Yes Yes Yes (Mojorra)
JTA Yes Yes Yes Yes
JPA Yes Yes Yes Yes (EclipseLink)
CDI Yes Yes Yes Yes
JAAS Yes Yes Yes Yes
JACC Yes Yes Yes Yes
Java Mail API Yes Yes Yes Yes
Bean Validation Yes Yes Yes Yes
EJB Yes Yes Yes Yes
JAX-RS Yes Yes Yes
JAX-WS Yes Yes
JCA Yes Yes
JMS Yes Yes
![Page 12: Apache TomEE - events.static.linuxfound.org · • 100 spot instances • 613MB memory max • Web Profile TCK with JVM defaults • OSs Certified • Amazon Linux AMI 2011.09,](https://reader034.vdocuments.us/reader034/viewer/2022042219/5ec54102ecda8e73e420e97a/html5/thumbnails/12.jpg)
Connectors
16/11/14 Apache TomEE 12
Proven Apache Stack
![Page 13: Apache TomEE - events.static.linuxfound.org · • 100 spot instances • 613MB memory max • Web Profile TCK with JVM defaults • OSs Certified • Amazon Linux AMI 2011.09,](https://reader034.vdocuments.us/reader034/viewer/2022042219/5ec54102ecda8e73e420e97a/html5/thumbnails/13.jpg)
Be simple
Be certified
Be Tomcat
Our 3 key drivers
16/11/14 Apache TomEE 13
![Page 14: Apache TomEE - events.static.linuxfound.org · • 100 spot instances • 613MB memory max • Web Profile TCK with JVM defaults • OSs Certified • Amazon Linux AMI 2011.09,](https://reader034.vdocuments.us/reader034/viewer/2022042219/5ec54102ecda8e73e420e97a/html5/thumbnails/14.jpg)
Feedback
![Page 15: Apache TomEE - events.static.linuxfound.org · • 100 spot instances • 613MB memory max • Web Profile TCK with JVM defaults • OSs Certified • Amazon Linux AMI 2011.09,](https://reader034.vdocuments.us/reader034/viewer/2022042219/5ec54102ecda8e73e420e97a/html5/thumbnails/15.jpg)
User stories
![Page 16: Apache TomEE - events.static.linuxfound.org · • 100 spot instances • 613MB memory max • Web Profile TCK with JVM defaults • OSs Certified • Amazon Linux AMI 2011.09,](https://reader034.vdocuments.us/reader034/viewer/2022042219/5ec54102ecda8e73e420e97a/html5/thumbnails/16.jpg)
Try it yourself
And let us know!
User stories
![Page 17: Apache TomEE - events.static.linuxfound.org · • 100 spot instances • 613MB memory max • Web Profile TCK with JVM defaults • OSs Certified • Amazon Linux AMI 2011.09,](https://reader034.vdocuments.us/reader034/viewer/2022042219/5ec54102ecda8e73e420e97a/html5/thumbnails/17.jpg)
How is it build?
![Page 18: Apache TomEE - events.static.linuxfound.org · • 100 spot instances • 613MB memory max • Web Profile TCK with JVM defaults • OSs Certified • Amazon Linux AMI 2011.09,](https://reader034.vdocuments.us/reader034/viewer/2022042219/5ec54102ecda8e73e420e97a/html5/thumbnails/18.jpg)
Apache Tomcat vs Apache TomEE
16/11/14 Apache TomEE 18
![Page 19: Apache TomEE - events.static.linuxfound.org · • 100 spot instances • 613MB memory max • Web Profile TCK with JVM defaults • OSs Certified • Amazon Linux AMI 2011.09,](https://reader034.vdocuments.us/reader034/viewer/2022042219/5ec54102ecda8e73e420e97a/html5/thumbnails/19.jpg)
Do we only add/remove files?
![Page 20: Apache TomEE - events.static.linuxfound.org · • 100 spot instances • 613MB memory max • Web Profile TCK with JVM defaults • OSs Certified • Amazon Linux AMI 2011.09,](https://reader034.vdocuments.us/reader034/viewer/2022042219/5ec54102ecda8e73e420e97a/html5/thumbnails/20.jpg)
No ..
The jars are there!!… that’s integration, right?
What is integration?
16/11/14 Apache TomEE 20
![Page 21: Apache TomEE - events.static.linuxfound.org · • 100 spot instances • 613MB memory max • Web Profile TCK with JVM defaults • OSs Certified • Amazon Linux AMI 2011.09,](https://reader034.vdocuments.us/reader034/viewer/2022042219/5ec54102ecda8e73e420e97a/html5/thumbnails/21.jpg)
CDI
JPA
JAX RS Servlets
JARs side by side don’t corporate
16/11/14 Apache TomEE 21
![Page 22: Apache TomEE - events.static.linuxfound.org · • 100 spot instances • 613MB memory max • Web Profile TCK with JVM defaults • OSs Certified • Amazon Linux AMI 2011.09,](https://reader034.vdocuments.us/reader034/viewer/2022042219/5ec54102ecda8e73e420e97a/html5/thumbnails/22.jpg)
CDI
JPA JAX RS
Servlets
Hardest part
It needs real integration code
16/11/14 Apache TomEE 22
![Page 23: Apache TomEE - events.static.linuxfound.org · • 100 spot instances • 613MB memory max • Web Profile TCK with JVM defaults • OSs Certified • Amazon Linux AMI 2011.09,](https://reader034.vdocuments.us/reader034/viewer/2022042219/5ec54102ecda8e73e420e97a/html5/thumbnails/23.jpg)
And it never stops…
16/11/14 Apache TomEE 23
![Page 24: Apache TomEE - events.static.linuxfound.org · • 100 spot instances • 613MB memory max • Web Profile TCK with JVM defaults • OSs Certified • Amazon Linux AMI 2011.09,](https://reader034.vdocuments.us/reader034/viewer/2022042219/5ec54102ecda8e73e420e97a/html5/thumbnails/24.jpg)
Spend your time writing applications …
Your choice …
16/11/14 Apache TomEE 24
![Page 25: Apache TomEE - events.static.linuxfound.org · • 100 spot instances • 613MB memory max • Web Profile TCK with JVM defaults • OSs Certified • Amazon Linux AMI 2011.09,](https://reader034.vdocuments.us/reader034/viewer/2022042219/5ec54102ecda8e73e420e97a/html5/thumbnails/25.jpg)
Not writing applications servers …
Or continue …
16/11/14 Apache TomEE 25
![Page 26: Apache TomEE - events.static.linuxfound.org · • 100 spot instances • 613MB memory max • Web Profile TCK with JVM defaults • OSs Certified • Amazon Linux AMI 2011.09,](https://reader034.vdocuments.us/reader034/viewer/2022042219/5ec54102ecda8e73e420e97a/html5/thumbnails/26.jpg)
That’s why we built TomEE
![Page 27: Apache TomEE - events.static.linuxfound.org · • 100 spot instances • 613MB memory max • Web Profile TCK with JVM defaults • OSs Certified • Amazon Linux AMI 2011.09,](https://reader034.vdocuments.us/reader034/viewer/2022042219/5ec54102ecda8e73e420e97a/html5/thumbnails/27.jpg)
Boot time!
Maven
IDE
lightweight
Simple Memory footprint
All integrated
All Tomcat available
All what you love
16/11/14 Apache TomEE 27
![Page 28: Apache TomEE - events.static.linuxfound.org · • 100 spot instances • 613MB memory max • Web Profile TCK with JVM defaults • OSs Certified • Amazon Linux AMI 2011.09,](https://reader034.vdocuments.us/reader034/viewer/2022042219/5ec54102ecda8e73e420e97a/html5/thumbnails/28.jpg)
Heavily tested
• First our tests (lots) – Integration tests using Arquillian as well
• Certified Amazon EC2 (100 instances) • t1.micro linux images • 100 spot instances • 613MB memory max • Web Profile TCK with JVM defaults
• OSs Certified • Amazon Linux AMI 2011.09, EBS boot, 32-bit EC2 t1.micro • Amazon Linux AMI 2011.09, EBS boot, 32-bit EC2 m1.small • Amazon Linux AMI 2011.09, EBS boot, 32-bit EC2 c1.medium
16/11/14 Apache TomEE 28
![Page 29: Apache TomEE - events.static.linuxfound.org · • 100 spot instances • 613MB memory max • Web Profile TCK with JVM defaults • OSs Certified • Amazon Linux AMI 2011.09,](https://reader034.vdocuments.us/reader034/viewer/2022042219/5ec54102ecda8e73e420e97a/html5/thumbnails/29.jpg)
Conclusion
• TomEE • As simple as Tomcat • As fast as Tomcat • But … much more built-in
• Application • Ultra light – focus on the application • No configuration boiler plate
Ready to run!
16/11/14 Apache TomEE 29
![Page 30: Apache TomEE - events.static.linuxfound.org · • 100 spot instances • 613MB memory max • Web Profile TCK with JVM defaults • OSs Certified • Amazon Linux AMI 2011.09,](https://reader034.vdocuments.us/reader034/viewer/2022042219/5ec54102ecda8e73e420e97a/html5/thumbnails/30.jpg)
Lots of cool stuff
• Arquillian – very advanced adapters • Useful TomEE Maven Plugin • Security / cryptography • Multi-tenancy • Tons of examples to learn Java EE and TomEE
• Lots of ideas for upcoming spec releases – Abstract beans – Meta annotations – …
16/11/14 Apache TomEE 30
![Page 31: Apache TomEE - events.static.linuxfound.org · • 100 spot instances • 613MB memory max • Web Profile TCK with JVM defaults • OSs Certified • Amazon Linux AMI 2011.09,](https://reader034.vdocuments.us/reader034/viewer/2022042219/5ec54102ecda8e73e420e97a/html5/thumbnails/31.jpg)
Tools and platforms
![Page 32: Apache TomEE - events.static.linuxfound.org · • 100 spot instances • 613MB memory max • Web Profile TCK with JVM defaults • OSs Certified • Amazon Linux AMI 2011.09,](https://reader034.vdocuments.us/reader034/viewer/2022042219/5ec54102ecda8e73e420e97a/html5/thumbnails/32.jpg)
16/11/14 Apache TomEE 32