Thursday Sep 26, 2013

Session Report: 50 New Features of Java EE 7 in 50 minutes

 by Timothy Beneke

On Tuesday afternoon, noted Java EE authors Arun Gupta and Antonio Goncalves offered a whirlwind tour of new features in “Java EE 7: Fifty New Features of Java EE 7 in 50 Minutes”. Gupta is legendary at Oracle for his hard work and astute grasp of the Java EE platform. His blog offers a wealth of insight into Java EE and other Java matters. He is the author, most recently, of Java EE 7 Essentials published by O’Reilly. Goncalves is one of the most highly regarded writers on EE anywhere and the author of Beginning Java EE 7, published by Apress.

Java EE 7’s new features enhance HTML5 support, increase developer productivity, and further improve how enterprise demands can be met. Developers will write significantly less boilerplate code, have better support for the latest Web applications, and gain access to enhanced scalability and richer, simpler functionality. The session did a stellar job of spelling out the details to a packed house.

With four new components (WebSocket, JSON-P, batch, and concurrency), and three old ones significantly updated (JAX-RS, JMS, and EL), along with other significant changes to the platform, a lot of new functionality has been added.

They divided the new Java EE 7 features into 19 categories and explained an average of two to three features in each category.  Here were the categories:

CDI 1.1 (JSR 346)
Bean Validation 1.1 (JSR 349)
Interceptors 1.2 (JSR 318)
Concurrency utilities 1.0 (JSR 236)
JPA 2.1 (JSR 338)
JTA 1.2 (JSR 907)
EJB 3.2 (JSR 345)
JMS 2.0 (JSR 343)
Servlet 3.1 (JSR 340)
Web Socket 1.0 (JSR 356)
Expression Language 3.0 (JSR 341)
JSF 2.2 (JSR 344)
JAX-RS 2.0 (JSR 339)
JSON-P 1.0 (JSR 353)
Batch 1.0 (JSR 352)
JavaMail 1.5 (JSR 919)
JCA 1.7 (JSR 322)
Java Connector Architecture
Default Resources

Here are just a few of the high points:

CDI 1.1 (JSR 346) enables finer scanning control and the ability to veto the processing of a class or package. Bean Validation 1.1 (JSR 349) allows for method validation and the ability to pre/post conditions on method and constructors. Interceptors 1.2 (JSR 318) focused on the ability to associate an Interceptor associated with a constructor and the ability to prioritize interceptor bindings.

For Concurrency utilities 1.0 (JSR 236), the emphasis was on ManagedExecutor with a focus on:
* User threads in Java EE applications
* The ability to support simple and advance concurrency design patterns
* And to extend Concurrency Utilities API from Java SE (JSR 166y)

Further emphasis in concurrency was on ManagedThreadFactory and DynamicProxy.

Dynamic Proxy:
* Creates dynamic proxy objects, and adds contextual information available for applications running in Java EE environment
* It supports Classloading, JNDI, Security, …

Also covered as part of concurrency: ManagedExecutor
* User threads in Java EE applications
* Support simple and advance concurrency design patterns
* Extend Concurrency Utilities API from Java SE (JSR 166y)
– java.util.concurrent package

In addition: ManagedScheduledExecutor
* Managed version of ScheduledExecutorService
* Submit delayed or periodic tasks

For JPA 2.1 (JSR 338), standardized database schema generation and the ability to define additional indexes in schema generation were emphasized. JTA 1.2 (JSR 907) was praised for its capacity for transaction management on Managed Beans as a CDI interceptor binding; in addition, it offers CDI scope whose lifecycle is scoped to the currently active JTA transaction.

They discussed WebSocket and annotated server endpoint which enables full-duplex bi-directional communication over a single TCP connection.

JSON Builder creates an object model (or an array) in memory by adding elements. JsonParser is an event-based parser that can read JSON data from a stream.

All in all, it was an impressive display of Java SE 7 expertise.

Java EE 7 Essentials by Arun Gupta

Beginning Java EE 7 by Antonio Goncalves

Be sure to check out Parleys.com in early October to listen to the entire session. It's well worth it.

Monday Sep 23, 2013

More on the JavaOne 2013 Strategy Keynote - IBM's Java Focus

John Duimovich, Java CTO and IBM Distinguished Engineer, took the stage at Sunday’s JavaOne 2013 keynote and stated that IBM had a new approach to this year’s JavaOne. They arrived at JavaOne with 20 developers of all ranks, giving 28 sessions -- and only one marketing person. This was consistent with a mantra he repeated throughout his keynote: “It’s a great time to be a developer.” Duimovich also commented several times that developers ultimately have a lot of power, a recognition that leads IBM to shape many policies around the needs and desires of developers.

“With so many frameworks, languages and tools available, developers have all they need to create great applications,” he observed. “With the cloud and PaaS it is easy to go to market and, in fact, possible to take a good idea, test it, and deploy it within a day.” This, he insisted, has changed the landscape for developers. Since Java is the leading platform being used to deploy to the cloud, along with Javascript and HTML5, IBM will continue to follow and invest in developers.

Systems of Interaction and Engagement
Duimovich identified an interesting turn of events. “There is a new class of application development out there now called systems of interaction, which are typically delivered via the cloud." “Systems of interaction” is a term that encompasses what has traditionally been called systems of record, which are what many Java developers work with in Java EE using containers and databases in such domains as business process-oriented bank accounts and HR systems.

He observed that there are new and growing open cloud ecosystems centered around such platforms and projects as CloudFoundry and OpenStack, offering the next “big thing” for developers -- the ability to access a whole open stack and write applications. “What’s different about IBM is that we are investing in open things a bit earlier in their life cycle,” said Duimovich. “We don’t wait until they are done and competing with us. We try to influence them early.”

New applications are being developed that offer systems of interaction which he characterized as user-centric applications specifically targeted to support user work flow.  These are mobile apps similar to what is in a phone or a car that bridge both systems of record and social networks. “So the application might take Twitter or Facebook into account, while bridging big data and bring together capabilities that drive user-focused applications,” explained Duimovich. “You are on the way to the airport and the app tells you the plane is late; you take off and the app tells you about the weather in the city of arrival. After that, you might be interested in where to buy new clothes because your luggage is still at the airline.”

Such applications have contextual “awareness” driving them. All of this is driven by the cloud as systems of record get pushed out to the cloud as services. “IBM has created an experimental platform that developers can try out called IBM BlueMix which is based on OpenSource and CloudFoundry,” said Duimovich. “It has runtimes and frameworks, like Java, and new ones like Node, and other scripting languages like Ruby.”

IBM BlueMix offers standard services such as database, caching, and messaging, but also includes new ones like social information, and location and geo-spatial database information. “This is all brought together so the enterprise can engage with their customers in a much richer way -- the way they do that is via the cloud.”

Java Innovation at IBM
He discussed the IBM WebSphere Liberty Buildpack, which is freely available for developers. It can be downloaded and pushed to any Cloud Foundry-based system. “This is our first step in making Java to PaaS deployment as easy as possible for developers.” Liberty is a Java profile that supports Java EE and is a container offering lots of features for clouds.

IBM has also been working on a multi-tenancy JVM, which means the VM can run and stack more VMs inside of it to save space and enable faster startup performance. This allows developers to manage life cycles independently. It’s intended for those who want to get more dense and efficient deployment on the cloud. “Just as peanut butter and chocolate go together – Liberty and multi-tenancy VMs are delicious,” said Duimovich.

He explained that running the Liberty profile and on the multi-tenancy JDK results in 2-3 times faster startup and twice as much density, so developers can stack twice as many instances on a machine than before without loss of performance.

Duimovich closed with some remarks about hardware innovation at IBM, and where the Java language may be headed in the future.

IBM BlueMix

IBM WebSphere Liberty Buildpack

Watch Keynote and Session Highlights on Demand

Friday Sep 13, 2013

Josh Juneau – Learning More at JavaOne

Jython expert Josh Juneau on Java development today.[Read More]

Friday Sep 06, 2013

Java Champion/Rock Star Adam Bien at JavaOne 2013

Java Champions are developers who have made important contributions to the Java community; JavaOne Rock Stars are developers who have given highly rated sessions at JavaOne. Adam Bien is both – and one of the most distinguished Java developers in the community. He is an Expert Group member for the Java EE 6/7, EJB 3.X, JAX-RS and JPA 2.X JSRs and is an architect and developer for Java SE and Java EE projects. He has edited several books about JavaFX, J2EE, and Java EE, and is the author of Real World Java EE Patterns—Rethinking Best Practices, and Real World Java EE Night Hacks.

Bien is a Top Java Ambassador 2012, and JavaOne 2009, 2011, 2012 Rock Star. If all this were not enough, he was, in 2010, named Oracle Magazine’s Java Developer of the Year.

His 2013 sessions include:

CON2196: “Lean and Opinionated Java EE 7 Applications”
CON2229: “Architecting Enterprise JavaFX 8 Applications”
CON2230:  “Unit Tests Don’t Break: Stress-Testing Java EE Applications”
CON2231: “Demystifying Java EE”
UGF10369: “Cool NetBeans Tips and Tricks for Java EE 7 Development”

Q: Tell us about your JavaOne sessions.

Bien: In “Cool NetBeans Tips and Tricks for Java EE 7 Development,” I will introduce my favorite NetBeans features. I think I may surprise some attendees with NetBean's productivity and effectiveness.

In “Architecting Enterprise JavaFX 8 Applications,” I would like to introduce a Model View Presenter Architecture with Dependency Injection based on a "framework," only containing two classes. I would also like to highlight the interaction with SceneBuilder, the JavaFX WYSIWYG editor, without being too heavily dependent on it.

In the session "Demystifying Java EE," I will discuss some recurring misconceptions about the concepts and inner workings of Java EE. There is no magic in Java EE – Java EE 7 is very effective, if you follow some rules.

In “Lean and Opinionated Java EE 7 Applications,” I will introduce opinionated approaches and best practices for the design and implementation of Java EE 7 applications. I'm probably going to shock some architects, but the developers should like this session.

In “Unit Tests Don’t Break: Stress-Testing Java EE Applications,” I plan to stress test a Java EE 7 application and monitor the results in real time. Stress testing is incredibly important and sometimes not even a part of the development cycle.

Q: In addition to your sessions, what do you have planned for JavaOne?

Bien: JavaOne is one of the few conferences where I attend other sessions -- from dawn to dusk. In recent years there was not always time to pick lunch. At NetBeans/GlassFish days before JavaOne I will probably meet some Java friends, while at the actual JavaOne I’ve never managed to do that. The technical content is too good and there is not enough time between the sessions.

Q: Tell us about what’s happening with Enterprise JavaFX 8 apps.

Bien: In the recent edition of airhacks.com I started with HTML 5, but most of the attendees waited for Java FX 8 news. There are a lot of Swing applications out there. Migration from Swing to JavaFX is one of the FAQs. Also JavaFX is "just" Java. You can develop now from the User Interface to the back end using the same language, tools, and environments. You can use the same debugger, profiler or memory analyzer for all of your application tiers and layers. JavaFX suits perfectly enterprise application needs.

Q: What have you been working on lately?

Bien: I’ve helped my customers implement Java EE 7 and JavaFX applications. Also, I ported lightfish.adam-bien.com to Java EE 7 and GlassFish v4 and was even able to simplify the code. I also ported Apache FTP Mina to JavaEE7: http://e2ftp.adam-bien.com

Q: What are your expectations for Java EE 7? For Java SE 8?

Bien: I was already very happy with Java EE 6, so Java EE 7 can only exceed my expectations. I'm using daily builds of JavaFX coming with JDK 1.8 for my "leisure" activities. Here I would expect more stability and even better performance. 

Q: How do you assess the state of Java today?

Bien: Java is more interesting for building apps, than ever. And the interest is huge. This year there is an increased tendency to sell out workshops, sessions and conferences. Java 8 together with Java EE 7 and JavaFX 8 will make it even more interesting.

Java has only one problem: its age. We tend to forget how performant, scalable, ubiquitous, and "cutting edge" the Java ecosystem actually is.

Q: What should Java developers understand about unit testing?

Bien: Don't overdo it. Statistics do not matter. Test complex stuff first -- and there is no difference between writing tests for Java SE and Java EE applications

Q: Tell us about ways NetBeans can be used for Java EE 7 development?

A: With NetBeans I'm still able to surprise seasoned developers with productivity without any magic. As a contractor/freelancer I really don't like to spend any time with IDE maintenance and setup. With NetBeans I'm able to set up my full Java EE environment in about a minute on Linux, Windows or Mac. Without any plugins, configurations or restarts. For that reason, I'm using NetBeans daily builds without any friction. What I like the most: NetBeans supports me with integrated code completion, JavaDoc, hints and occasional helpers on demand (like, e.g., creation of beans.xml or persistence.xml) without excessive code generation or opaque wizards. You can achieve 80% with two shortcuts: ctrl + space and alt + enter.

Adam Bien’s Blog

Friday Mar 08, 2013

The Tech Events over 2 days

Today is International Women's Day and Global Tech Women founder Deanna Kosaraju commemorates the event by organizing the Voices Global Conference, a live streaming event celebrating women in technology. Women technologists from over 20 countries present a collection of technical talks including software for data center, testing, breakthrough innovation frameworks, community building, humanitarian projects, leadership, and more. Attendees can participate in group discussions, network online or at local gatherings, and watch the sessions online. All the sessions are streamed live and recorded. Registration is open. 

Another conference starting today is Java Developers Conference (JDC) in Cairo, Egypt. The conference brings together 600 developers and students for the biggest Java conference in Middle East and North Africa today and tomorrow. The Egyptian Java User Group (EGJUG) is organizing the two-day forum for knowledge exchange with its 4 tracks and 40 sessions in English and Arabic. 

Oracle technologist Mike Keith presents "creating a configuration standard for Java EE". Architect Christ Bailey has a talk titled "From Java Code to Java Heap The Adventurous Developer's guide to JVM Languages." Software Architect and JCP member Mohamed Taman  presents "a hack session titled JEE7.next() revealing the power of Websocket, JSON APIs & HTML5." Technologist Jernej Kase talks about "increasing Java EE development productivity to the max - for free." 

Also this weekend, Daniel Sachse is organizing a Google hangout hack night Saturday March 9, 2013 at 10:00 a.m. PST. Participants are expected to contribute to a JSR about Java EE technologies such as CDI and JSF among others. 


Friday Nov 23, 2012

NetBeans at JavaOne Latin America 2012

The place to be in early December is Sao Paolo, Brazil, for JavaOne 2012 Latin America (pt_ BR site)--and the NetBeans team will be making the trip!

Drop-in on technical sessions and hands-labs that show the latest features of the NetBeans IDE in action. Watch demos of HTML5, CSS3 and JavaScript support in NetBeans IDE 7.3 (Release: Winter 2013) and find out how developers can easily and quickly create rich Web and mobile applications. Discover how the IDE provides the best and latest support for building JavaEE and JavaFX 2.0 applications, and join the conversation about what's up ahead for NetBeans development.

With over 50 technical sessions, tons of demos and labs, JavaOne Latin America is the conference to attend to enhance your coding skills and mingle with experts and developers from the Oracle and Java communities. Mark your calendars and check out NetBeans IDE in the following sessions!


Tuesday, December 4

12:15 - 13:15
Designing Java EE Applications in the Age of CDI
Speakers: Michel Graciano, Consultant, Summa Technologies do Brasil; Michael Santos, TecSinapse
Mezanino: Sala 14


Wednesday, December 5

10:00 - 11:00
Make Your Clients Richer: JavaFX and the NetBeans Platform
Speakers: Gail Anderson, Director of Research; Paul Anderson, Director of Training, Anderson Software Group, Inc.
Mezanino: Sala 12


Thursday, December 6

13:45 - 14:45
Unlocking the Java Platform with NetBeans
Speaker: John Jullion-Ceccarelli, Software Development Director, Oracle
Keynote Hall

15:00 - 16:00
Project EASEL: Developing and Managing HTML5 in a Java World
Speaker: John Jullion-Ceccarelli, Software Development Director, Oracle
Mezanino: Sala 14


See full conference schedule for detailed agenda.

Get more JavaOne news.

Friday Nov 16, 2012

Devoxx!!

 Announcing Devoxx London! Taking place on  March 26th and 27th, 2013 right before Devoxx  France on March 28th and 29th, this will be the first  edition of Devoxx UK!. The call for papers begins  on December 1st for Devoxx in London and Paris.  Speakers will be able to present at the two  conferences in the same week. Oracle committed  to fully sponsor the three Devoxx conferences in  2013 with a platinum sponsorship. Over 5,000 developers are expected to attend those conferences.

Five dancing NAO robots welcomed attendees at the keynote. Stephan Janssen offers the JUGs to replicate Devoxx4Kids workshops using his content and web infrastructure.  He recommended organizing kid events because “the workshops were really fun and such rewarding experience.” Stephan also announced the redesign of Parleys with Html 5 and GlassFish. Friendlier to speakers, they will be able to post their slides online before their talks and then sync the talk's sound track with the slides.

Nandini Ramani, VP of product development explained in her keynote address the growing role of Java from enterprise application development to cloud computing to embedded machine-to-machines systems. “Java continues to drive the applications and devices that enrich our interactivity with the world around us” she said.

The Java platform has expanded its reach with the OS X and Linux ARM support on Java SE and Java embedded with two new releases, Java SE embedded and Java Embedded Suite 7.0 middleware platformComing up next year is JDK 8, which will include Project Lambda, Project Nashorn and more. As part of that release, JavaFX will offer 3D and third-party component integration. At Devoxx, the slick and interactive schedules were designed with JavaFX. The earliest version of the Java EE 7 SDK is available for download and has WebSocket support, improved JSON support and more. 

Stephen Chin arrived on stage with his bike, ending his European NightHacking tour. Check the hacking sessions online here

About

Insider News from the Java Team at Oracle!

duke
javeone logo
Links


Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
2
5
6
7
12
13
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today