Tom EE appunti devoxx2012
-
Upload
solo-pervederelefoto -
Category
Documents
-
view
107 -
download
0
Transcript of Tom EE appunti devoxx2012
![Page 1: Tom EE appunti devoxx2012](https://reader035.fdocuments.us/reader035/viewer/2022081209/554fb4a1b4c90586258b5379/html5/thumbnails/1.jpg)
TomEEappunti dal Devoxx2012 di Nicola Pedot
![Page 2: Tom EE appunti devoxx2012](https://reader035.fdocuments.us/reader035/viewer/2022081209/554fb4a1b4c90586258b5379/html5/thumbnails/2.jpg)
Cos'è TomEE (pronunciato “Tommy”)
E' un server ad implementazione libera in Licenza Apache delle specifiche JEE 6 WebProfile
e qualche cosa di più...
![Page 3: Tom EE appunti devoxx2012](https://reader035.fdocuments.us/reader035/viewer/2022081209/554fb4a1b4c90586258b5379/html5/thumbnails/3.jpg)
3 Gusti
1. Java EE 6 WebProfile 2. WebProfile + rest3. WebProfile + rest + MQ + webservices
![Page 4: Tom EE appunti devoxx2012](https://reader035.fdocuments.us/reader035/viewer/2022081209/554fb4a1b4c90586258b5379/html5/thumbnails/4.jpg)
Gusto 1: Java EE 6 WebProfile
1. CDI - Apache OpenWebBeans2. EJB - Apache OpenEJB3. JPA - Apache OpenJPA4. JSF - Apache MyFaces5. JSP - Apache Tomcat6. JSTL - Apache Tomcat7. JTA - Apache Geronimo Transaction8. Servlet - Apache Tomcat9. Javamail - Apache Geronimo JavaMail
10. Bean Validation - Apache BVal
![Page 5: Tom EE appunti devoxx2012](https://reader035.fdocuments.us/reader035/viewer/2022081209/554fb4a1b4c90586258b5379/html5/thumbnails/5.jpg)
Gusti 2: WebProfile + rest
1. WebProfile2. JAX-RS - Apache CXF
![Page 6: Tom EE appunti devoxx2012](https://reader035.fdocuments.us/reader035/viewer/2022081209/554fb4a1b4c90586258b5379/html5/thumbnails/6.jpg)
Gusto 3: WebProfile + rest + MQ + webservices + connettori
1. WebProfile2. JAX-RS - Apache CXF3. JAX-WS - Apache CXF4. JMS - Apache ActiveMQ5. Connector - Apache Geronimo Connector
Inbound and outbound connections in Geronimo are managed through the J2CA connector framework. This covers JDBC, JMS, DataSources, EIS connectivity, and connection pools.
![Page 7: Tom EE appunti devoxx2012](https://reader035.fdocuments.us/reader035/viewer/2022081209/554fb4a1b4c90586258b5379/html5/thumbnails/7.jpg)
Cosa non è
Non è un tomcat + librerie varie.
E' stato completato ed ottimizzato.
![Page 8: Tom EE appunti devoxx2012](https://reader035.fdocuments.us/reader035/viewer/2022081209/554fb4a1b4c90586258b5379/html5/thumbnails/8.jpg)
A tomcat mancano per scelta
NoTransactionsupportNoConnectionPoolingsupport
ConnectionpoolingsupportshouldbetransactionawareNo@Resource
UserTransactionBeanManagerValidatorValidatorFactory
No@PersistenceUnitNo@PersistenceContextNo@InjectNo@EJB
![Page 9: Tom EE appunti devoxx2012](https://reader035.fdocuments.us/reader035/viewer/2022081209/554fb4a1b4c90586258b5379/html5/thumbnails/9.jpg)
A tomcat mancano per scelta
NosupportforGlobalJNDIjava:modulejava:appjava:global
Nosupportfor@Resource(lookup=”...”)Nosupportfor@DataSourceDefinitionNosupportfornew<env-entry>types:
java.lang.ClassEnums
NoIntegratedSecurity
![Page 10: Tom EE appunti devoxx2012](https://reader035.fdocuments.us/reader035/viewer/2022081209/554fb4a1b4c90586258b5379/html5/thumbnails/10.jpg)
TomEE è ottimizzato
Oltre a migliorie nella scelta pulita delle dipendenze.
All'avvio le librerie aggiuntive richiedono a Tomcat un tempo aggiuntivo per lo scan del file system alla ricerca delle proprie componenti, ripetuto per ogni libreria.
![Page 11: Tom EE appunti devoxx2012](https://reader035.fdocuments.us/reader035/viewer/2022081209/554fb4a1b4c90586258b5379/html5/thumbnails/11.jpg)
Punti forti
1. E' piccolo2. E' Tomcat3. E' certificato4. E' dotato di una comunità attiva
![Page 12: Tom EE appunti devoxx2012](https://reader035.fdocuments.us/reader035/viewer/2022081209/554fb4a1b4c90586258b5379/html5/thumbnails/12.jpg)
E' Piccolo
● Size: l'intero WebProfile è di 24Mb● Memory usage: ne richiede molto poca ha
passato il TCK senza cambiare i valori predefiniti di impostazione per la memoria della JVM
● Agility: il server in modalità embedded può eseguire un ciclo start / deploy / test / undeploy / stop cycle in 2-3 secondi.
![Page 13: Tom EE appunti devoxx2012](https://reader035.fdocuments.us/reader035/viewer/2022081209/554fb4a1b4c90586258b5379/html5/thumbnails/13.jpg)
E' Tomcat
Non ci sono problemi di compatibilità rispetto al più piccolo tomcat, è solido perchè da anni provato in molti contesti di produzione.
![Page 14: Tom EE appunti devoxx2012](https://reader035.fdocuments.us/reader035/viewer/2022081209/554fb4a1b4c90586258b5379/html5/thumbnails/14.jpg)
E' certificato
Ha superato con successo i tanto temuti e molto estesi test di compatibilità di specifica Oracle WebProfile TCK. Certificato con AmazonEC2molti t1.microlinuximages,100 spot instances in parallelo!ciascuna con 613 MB memoria maxsenza modificare i parametri preimpostati di memoria alla JVM
![Page 15: Tom EE appunti devoxx2012](https://reader035.fdocuments.us/reader035/viewer/2022081209/554fb4a1b4c90586258b5379/html5/thumbnails/15.jpg)
E' dotato di una comunità attiva
Il supporto è quello delle comunità Apache e l'interesse sta crescendo.
![Page 16: Tom EE appunti devoxx2012](https://reader035.fdocuments.us/reader035/viewer/2022081209/554fb4a1b4c90586258b5379/html5/thumbnails/16.jpg)
Grazie
per l'attenzione
![Page 17: Tom EE appunti devoxx2012](https://reader035.fdocuments.us/reader035/viewer/2022081209/554fb4a1b4c90586258b5379/html5/thumbnails/17.jpg)
Link
Apache TomEE Java EE 6 Web Profile (slide)goo.gl/gMIbx
Apache TomEE Java EE 6 Web Profile (site)http://tomee.apache.org/