Thursday, October 6, 2011

JavaOne Day 5

Another full day of JavaOne sessions.

And tons of rain.

Went to a session on moving from Java EE 5 to EE 6.
Discussion on what EE 6 includes (CDI, newer EJB/JPA, JAXRS), creating a war instead of an ear, removing EJB interfaces and less layers, JSF metadata and flash, Servlet 3 security authentication managed by container, JPA annotation for removing orphan from collection, cron scheduling annotation, Stateless annotation for REST JAXRS, and criteria API instead of JPA QL.

Session on API paradoxes by Netbeans architect. Dicussion on sustaining V1 of API to not break clients or use cases, process to change API, space in API for changes, handling incompatible changes for bug fix, handling versioning, behavior dependent on API consumer, moving deprecated code to optional module.

For lunch, had the same free meal from JavaOne / Mason Street. Potatoes, grapes, strawberry, wraps, soda. Again slow to get and waiting.

Played Frogger game on one of the glass top tables at the cafe. Got a new high score.

Session on Spring and WebLogic.
Touched on the WebLogic admin/monitoring web interfaces, especially those related to Spring. Used a demo parcel application using JMS with Java EE 5 and spring implementations.

EE6 best practices session! Remove 80% of legacy code!
Discussed how to cleanup code in switching to EE6. Remove interfaces unless needed. Remove DAO, less layers. Remove configuration if is default convention, not needed.
One of the best sessions, fun and entertaining.

CDI best practices session.
Review of CDI (in EE 6) based on Spring/Seam. Extended persistence context, begin and end conversation, EJB only for transaction manager and overhead.

Session on performance and scaling. Discussions on synchronization and locking (focus on path most used), volatile, thread local, concurrency version, data resizing, tools for memory and stack monitoring (mention of VisualVM, but mostly selling other tools), cache misses, more threads/CPU, false sharing. Not all that great.

Again, Loving Hut for dinner. This time with a different selection from the buffet and piece of chocolate cake for dessert.


And again the cable car back to the hotel.

No comments:

Post a Comment