Apache TomEE - events.static.linuxfound.org · • 100 spot instances • 613MB memory max • Web...

33
Apache TomEE Java EE Web Profile and more on Apache Tomcat Jonathan Gallimore and Jean-Louis Monteiro

Transcript of Apache TomEE - events.static.linuxfound.org · • 100 spot instances • 613MB memory max • Web...

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,

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,

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,

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,

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,

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,

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,

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,

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,

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,

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,

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,

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,

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,

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,

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,

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,

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,

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,

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,

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,

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,

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,

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,

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,

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,

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,

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,

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,

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,

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,

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,

16/11/14   Apache  TomEE   32  

Page 33: 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,

Thank you!

@JLouisMonteiro [email protected] @JonGallimore [email protected] tomee.apache.org