2. @dvlc_ | #TomEE
Goals
• Pick up where “hello world” leaves off
• Application Dev and Ops techniques
• Largely Java EE Generic
• Some TomEE flair
• TomEE Tools and Packaging
• Not a TomEE introduction
• Plenty of those out there
3. @dvlc_ | #TomEE
Apache TomEE Recap
• Java EE certified version of Tomcat
• Java EE 7 in progress
• Pronounced, “Tommy” (not “Tommy-e”)
• Built from All-Apache Components
• Footprint: 30MB zip, 100~MB Memory
4. @dvlc_ | #TomEE
Steps
• Basic single service project
• Setup TomEE Maven Plugin
• Enable SSL, Basic Auth and @RolesAllowed
• Configuration with Sabot
• Monitoring with @Monitor
5. @dvlc_ | #TomEE
Steps
• Basic single service project
• Setup TomEE Maven Plugin
• Enable SSL, Basic Auth and @RolesAllowed
• Configuration with Sabot
• Monitoring with @Monitor
6. @dvlc_ | #TomEE
Basic Project
• step-0
• Hello world
• 1 JAX-RS service
• 1 Arquillian Test
7. @dvlc_ | #TomEE
Steps
• Basic single service project
• Setup TomEE Maven Plugin
• Enable SSL, Basic Auth and @RolesAllowed
• Configuration with Sabot
• Monitoring with @Monitor
8. @dvlc_ | #TomEE
TomEE Maven Plugin
• step-1
• Allows Fat Jar, tomee:exec
• Setup and Run, tomee:run
• Build a Server, tomee:build
• Add, remove jars and webapps
9. @dvlc_ | #TomEE
Steps
• Basic single service project
• Setup TomEE Maven Plugin
• Enable SSL, Basic Auth and @RolesAllowed
• Configuration with Sabot
• Monitoring with @Monitor
10. @dvlc_ | #TomEE
Setup SSL and @RolesAllowed
• step2 and step3
• Self-signed cert
• SSL Connector enabled
• conf/tomcat-users.xml added
• WEB-INF/web.xml added
• @RolesAllowed for authorization
11. @dvlc_ | #TomEE
Steps
• Basic single service project
• Setup TomEE Maven Plugin
• Enable SSL, Basic Auth and @RolesAllowed
• Configuration with Sabot
• Monitoring with @Monitor
12. @dvlc_ | #TomEE
Configuration with Sabot / CDI
• step4
• CDI Extension
• Converts Any* Java Type
• @Inject @Config(“some.property”)
• Properties for each env *in* the webapp
• conf/system.properties added denoting environment
13. @dvlc_ | #TomEE
Steps
• Basic single service project
• Setup TomEE Maven Plugin
• Enable SSL, Basic Auth and @RolesAllowed
• Configuration with Sabot
• Monitoring with @Monitor