Tuesday Apr 24, 2012

Spring to Java EE Migration – Part 4, the Finale

In a new article, now up on otn/java, titled “Spring to Java EE Migration, Part 4,” David Heffelfinger presents the final part of his series in which he demonstrates the ease of migration from the Spring Framework to Java EE. Here he compares equivalent functionality in Java EE and Spring in areas such as MVC design pattern implementation, data access, transaction management, and dependency injection.

He concludes the series with these remarks:

“In this series of articles, we developed a Java EE version of Spring’s Pet Clinic application. We saw how the advanced tooling provided by NetBeans enables us to quickly develop a Java EE application…. Once we were done building the Java EE version of the application, we compared it with the Spring version, noting that the original version has several dependencies whereas the Java EE version has none, because it takes advantage of all the services provided by the Java EE application server.

Finally, we compared how to implement similar functionality such as MVC and DAO implementation, transaction management, and dependency injection with Spring and Java EE. In every case with Spring, some XML configuration needs to be done besides adding annotations to the code. Java EE relies on convention, and in most cases, no XML configuration is needed in order to implement these services.

Although newer versions of Spring rely a lot less on explicit XML configuration than earlier versions, there are always a few little lines here and there that we need to add to an XML configuration file in order to get most of the Spring annotations to work, violating the DRY (don’t repeat yourself) principle...

Additionally, Spring applications tend to have several dependencies, because they are meant to run in a “lightweight” Servlet container such as Tomcat or Jetty and these containers don’t provide all the required functionality. In contrast, Java EE applications are meant to be deployed in a full-blown Java EE 6 application server such as Oracle GlassFish Server...

For these reasons, I always recommend Java EE over Spring for enterprise application development.”

Have a look at the article here.

Monday Mar 05, 2012

Oracle Supports Computer Science Education at SIGCSE

Oracle was a main sponsor of SIGCSE 2012 conference, the 43rd Technical Symposium on Computer Science Education of the Association for Computing Machinery (ACM), which gathered over a thousand computer science teachers and professors. Oracle Academy presented the Academy curriculum for schools and universities; Oracle Labs presented research and internship opportunities; and Oracle Technology Network discussed online resources, including Oracle's Java Magazine. 

Oracle also supported two social events, one for Alice project from  Carnegie Mellon University (CMU) and Greenfoot software from the University of Kent, UK. CMU announced the release of the Alice 3 previewfor the summer. Students will be able to learn Java basics with  Alice 3 and migrate their code to Netbeans IDE. 


Very popular was Microsoft Kinect Sensor and Greenfoot demo and workshop from the University of Kent.Watch the video! This project using Kinect with Greenfoot is easily duplicated. Just check out the online documentation for the installation requirements and steps to repeat. 


Monday Feb 27, 2012

New Java Curriculum

Today, Oracle Academy announced new Java curriculum for secondary schools, colleges and universities supporting hundreds of thousands of students. The training will include:

  • Java Fundamentals and Java Programming courses, designed especially for secondary schools and 2-year colleges
  • A comprehensive portfolio of Java courses for four-year colleges and universities
  • Training that supports teachers/faculty to deliver the Oracle Academy’s Java curriculum
  • Java competitions that help students develop and showcase their technology skills.
More on the announcement.

Friday Feb 03, 2012

Building Applications in JavaFX 2.0

In a new tech article up on otn/java, adapted from a series of innovative blog postings, Downstream's Senior Java Architect Daniel Zwolenski develops ways to build apps in JavaFX 2.0 -- from Spring to controller injection to client servers. The article is derived from several blogs wherein he explores ways to create applications in JavaFX 2.0, building upon a direct port of Oracle Chief Client Java Architect Richard Bair’s FXML+Guice dependency injection example into Spring.

As Zwolenski says, “Many developers still believe that Spring is all about XML configuration files, but it has evolved a lot since the early days. I’m going to use Spring’s annotation-based configuration to create a pure Java example (i.e., zero Spring XML) that looks almost identical to the Guice one.”

Zwolenski is the creator of JFX Flow which he describes as, “a free, open source framework for developing rich, interactive and user friendly web-style GUIs for desktops using JavaFX (2.0+). JFX Flow combines the powerful feature set of JavaFX (styling, animations, FXML, etc.) with a simple ‘web flow’ style framework that is easy to use and that fosters clean architectural patterns, especially when developing Java EE applications. JFX Flow is currently in Alpha release and may still have some bugs. The core framework is usable however, and the API is quite stable.”

Read the complete article here.


Friday Dec 16, 2011

Main Our Most Popular Tech Articles of 2011

You can stop holding your breath now. We have determined the Top 20 (meaning: most popular) Tech Articles Published by OTN in 2011!

What conclusions can we draw from this list? Well, for one: Traditionally, we publish a "Top 10" list at the end of the calendar year. But in 2011, there were so many popular articles published that this ceiling was too limiting.

Other conclusions:

  • Java developers love reading articles. Total domination of the page view numbers this year.
  • Adam Bien is not only a Java Champion, but a Page Views Champion as well. Neither Brittany Spears nor George Clooney would have been more helpful to us in that department.
  • You all seem fairly curious about Java 7, Java EE, and JavaFX.
  • If you have your own observations, let's see them in comments.

 Without further delay, here's the list:

  1. Fork and Join: Java Can Excel at Painless Parallel Programming Too! (Julien Ponge)
  2. Taking Your First Steps with Oracle Solaris 11 (Brian Leonard & Glynn Foster)
  3. Contexts and Dependency Injection in Java EE 6 (Adam Bien)
  4. Unit Testing for Java EE (Adam Bien)
  5. Neural Networks on the NetBeans Platform (Zoran Sevarac)
  6. Oracle Senior VP Steve Harris on Oracle’s Vision of Java (Janice J. Heiss)
  7. Oracle Database 11g Express Edition Quick Tour (Przemyslaw Piotrowski)
  8. Looking Ahead to Java SE 7 and 8: A Discussion with Oracle’s Java Language Architect, Brian Goetz (Janice J. Heiss)
  9. Working with Java SE 7 Exception Changes (Manfred Riem)
  10. Client-Side Improvements in Java 6 and Java 7 (Josh Marinacci)
  11. How I Simplified Oracle Database Installation on Oracle Linux (Ginny Henningsen)
  12. The DBA’s Guide to Setting Up Oracle RAC One Node and Oracle Data Guard (Martin Bach)
  13. Integration Testing for Java EE (Adam Bien)
  14. Build a .NET Application on the Oracle Database with Microsoft Visual Studio 2010 (John Paul Cook)
  15. Templating with JSF 2.0 Facelets (Deepak Vohra)
  16. Using Adobe Flex and JavaFX with JavaServer Faces 2.0 (Re Lai)
  17. Series: Oracle Exadata Command Reference (Arup Nanda)
  18. Better Resource Management with Java SE 7: Beyond Syntactic Sugar (Julien Ponge)
  19. Using Transitions for Animation in Oracle's JavaFX 2.0 (James L. Weaver)
  20. Scaling a PHP MySQL Web Application, Part 1 (Eli White)

Want to see your name on this list for 2012? We're always looking for good writers. Looking forward to seeing your proposals!


Originally posted on blogs.oracle.com/otn  by Justin Kestelyn 

Photo: Preetam Rai

Wednesday Nov 30, 2011

The JavaServer Faces 2.2 viewAction Component

Life just got easier for users of JavaServer Faces. In a new article, now up on otn/java, titled “New JavaServer Faces 2.2 Feature: The viewAction Component,” Tom McGinn, Oracle’s Principal Curriculum Developer for Oracle Server Technologies, explores the advantages offered by the JavaServer Faces 2.2 view action feature, which, according to McGinn, “simplifies the process for performing conditional checks on initial and postback requests, enables control over which phase of the lifecycle an action is performed in, and enables both implicit and declarative navigation.”

As McGinn observes: “A view action operates like a button command (UICommand) component. By default, it is executed during the Invoke Application phase in response to an initial request. However, as you'll see, view actions can be invoked during any phase of the lifecycle and, optionally, during postback, making view actions well suited to performing preview checks.”

McGinn explains that the JavaServer Faces 2.2 view action feature offers several advantages over the previous method of performing evaluations before a page is rendered:

   * View actions can be triggered early on, before a full component tree is built, resulting in a lighter weight call.

   * View action timing can be controlled.

   * View actions can be used in the same context as the GET request.

   * View actions support both implicit and explicit navigation.

   * View actions support both non-faces (initial) and faces (postback) requests.

Read the complete article here.

Wednesday Nov 16, 2011

The Big Announcement, This Year, at Devoxx 2011!

Stephan Janssen started the developer conference with his traditional "Welcome and Announcements" and this year announced Devoxx France, the new and only Devoxx conference outside of Belgium. It will take place in Paris, April 18 to 20, 2012. The Paris Java user group is organizing the 3 day conference. The conference is designed after Devoxx with Tools in Action, Labs, BOFs and Quickies and with one university day and 2 conference days. The model works well since Stephan turns down attendees every year. The content will be 75% in French and 25% in English. Call for papers opened today. Oracle will be a sponsor at the event!

Monday Oct 17, 2011

Greg Bollella and Eric Jensen on the Future of Cyber-Physical Systems with Embedded Java and Berkeley DB

At JavaOne 2011, Greg Bollella, Chief Architect for Embedded Java and Eric Jensen, Oracle Principal Product Manager and a former embedded developer, gave a session (25143) titled “Telemetry and Synchronization with Embedded Java and Berkeley DB”. Bollella has been a leader in the Embedded Java and real-time Java space since Java was first applied there.

The presentation offered a vision of the potential future of Cyber-Physical Systems (CPS), defined as, “a system featuring a tight combination and coordination between the systems computational and physical elements,” that was so powerful that even if the expectations turn out to be exaggerated, CPS technological change will, in a decade or so, significantly alter our lives in pervasive and unforeseeable ways. Bollella went so far as to say that CPS applications have the potential to dwarf the 20th Century IT Revolution.

He drew a contrast between where CPS applications are in use today and where they will be in use tomorrow.

Today: High confidence medical devices and systems; assisted living; process control (metal smelting, chemical plants, refineries); traffic control and safety; advanced automotive systems; energy conservation; environmental control (electric power, water resources, and communications systems); distributed robotics (telepresence, telemedicine); defense systems; manufacturing; smart structures; home automation; building automation; transportation (rail, air, water, road); retail systems (point of sale and monitoring); entertainment industry; mining; industrial control (power generation).

Tomorrow:  Distributed micro-power generation; highly advanced autonomous driver assistance features; networked autonomous automobiles; networked building automation systems; cognitive radio (distributed consensus about bandwidth availability); large-scale RFID-based servicing systems which could acquire the nature of distributed real-time control systems; autonomous air traffic control; advanced industrial and home networked robotics; intelligent traffic control systems; intelligent autonomous power (gas/electricity); distribution systems; networked personal medical monitoring devices.

A lot to take in – the technology all around us growing in intelligence! In 2009, 3.9 billion embedded processors were shipped – the number is expected to double to roughly 8 billion by 2015. Some predict that by 2025 the number will be well into the trillions. And currently, an estimated five times more embedded software is written than all other software today. If the reality is anywhere close to the projections and estimates, we are in for an interesting ride on some intelligent transport.

Telemetry

Bollella went on to discuss telemetry, a term frequently used by NASA and defined as a technology that “allows remote measurement and reporting of information”. Central to telemetry is the idea that the information does not persist on the device after measurement. Uses of telemetry in the automotive realm include streaming operational data from the vehicle to the manufacturer’s IT system for analysis, services for vehicle operator, failure prediction, and feedback to design teams on wear and failure rates. For industrial automation, telemetry is used for failure prediction and to process monitoring and reporting

Synchronization

Bollella explained that his use of synchronization is idiosyncratic to database technology and involves two synchronized databases containing the same set of data and relationships. Any change in one database appears (after some indeterminate delay) in the other. The information on the device persists on the device as long as it does on the backend

The use cases for synchronization are widespread and include:

•    Healthcare: Telemedicine, Home health systems, Mobile health practitioners
•    Industrial: Manufacturing, Mining
•    Energy: Smart Grid, Energy Management
•    Entertainment: TVs, set top boxes, automotive rear-seat entertainment
•    Distribution/Shipping: Everything from local deliveries to transoceanic cargo shipments
•    Government: Border Control, Resource Management, Customs, Immigration, Land Management, Forest Service, etc
•    Law Enforcement/Military: Police officers and soldiers in the field, also aboard Naval vessels
•    Retail: Real time inventory linked to point-of-sale transactions
•    Distribution/Shipping: Everything from local deliveries to transoceanic cargo shipments

Bollella acknowledged that serious development challenges remain. The current state of CPS connectivity is poor, with the vast majority being standalone. Given the highly connected world of social networking, mobile devices, and the web, this might be surprising. But it is important to consider that these are two technological areas have evolved in environments with different demands. CPS is focused on real-time, predictability, safety, security, and fault tolerance; the Web is a different matter.

CPS requires real-time with predictable control loops -- there are no standard communication protocols or Ethernet or “IP-over” functionality on devices. There are harsh environments, especially in spacecrafts, that can affect wired Ethernet, and there exists incompatibility of data formats and communication protocols with IT standards.

Perhaps of greatest importance, there has been little perceived need for CPS connectivity with devices. But this is changing rapidly, and with it, obstacles are being overcome as one of the major trends in embedded is connectivity development. Bollella admitted that there were a lot of unknowns going into the future, but the challenges are not insurmountable.

Oracle’s Eric Jensen took over and gave some details about the Oracle Berkeley DB and the Oracle Database Mobile Server, which he characterized as the best way to synchronize mobile or embedded applications that utilize SQLite or Berkeley DB with an Oracle backend. The embedded Java platform, when coupled with Berkeley DB and Database Mobile Server, has the ability to manage networks of embedded devices using existing enterprise frameworks in a way that could prove to be quite revolutionary

It will be interesting to look back in 10 years and see how much Cyber-Physical Systems have, or have not, changed the world.

JCP.next, JSR 348 -- Towards a New Version of the Java Community Process

At JavaOne 2011, Tuesday's mid-day JCP discussion, presented by Heather VanCura, Oracle Manager, JCP Program, and Patrick Curran, Chair, Java Community Process, Oracle, explored some big news about the JCP. Oracle's commitment to greater transparency, participation, and openness is coming through loud and clear in JSR 348, "Towards a new version of the Java Community Process" -- otherwise known as JCP.next.

The main improvements, at this stage, involve gaining greater transparency by requiring, rather than suggesting, that all development is done on open mailing lists and issue trackers.  Furthermore, the recruiting process for Expert Group members will be publicly viewable, and ways to disclose TCK testing process results will be investigated - currently, the public is rarely aware of the results of the TCK testing process. All of these developments are designed to result in a more public, open, accessible and transparent JCP.

JSR 348 passed through a Pubic Review Ballot in mid-September with results for the SE/EE Executive Community showing 14 YES votes, one Abstain (Google) and one non-vote (VMWare). Oracle expects the initial version of JSR 348 to be concluded in October 2011, offering simple changes that will be quickly implemented. A subsequent second JSR, to be filed soon afterward, will tackle more complex issues, including any changes required to the Java Specification Participation Agreement (JSPA).

The JSPA is defined by the JCP as "a one-year, renewable agreement between you [[the participant in the agreement]] and Oracle America. It entitles you to review and comment on JSRs during the Community Review period - after they are initially approved by their sponsoring Expert Group and before they are open for Public Review. The agreement carries an annual fee, depending on your Member category."

The success of the Java community depends upon an open and transparent JCP, so JCP.next is worthy of our praise and attention.

The Road to Java EE 7: Is It All About the Cloud?

PanelWith considerable enthusiasm I attended “The Road to Java EE 7: Is It All About the Cloud?” (23423) session, a panel of EE experts, late Wednesday morning at JavaOne 2011. I always find Java EE developers and architects to be among the smartest people around. Last year’s Java EE panel session, covered on otn/java and titled, “Where We Are and Where We’re Going” was fraught with more uncertainty about the future of Java EE. This year, it’s clear: Java EE is heading towards the Cloud. The session this year was packed even in a much larger room than last, with roughly three times the number of attendees as last year.

The panel consisted of the following people:
--Adam Bien, Consultant, Author, Java EE Expert
--David Blevins, Apache Software Foundation
--Emmanuel Bernard, JBoss Platform Architect, Red Hat
--Reza Rahman, Senior Software Engineer/Community Outreach Activist, Caucho Technology
--Linda DeMichiel, Java EE 7 Specification Lead, Oracle

The panel, moderated by Oracle’s Alexis Moussine-Pouchkine, Java EE Developer Advocate, Oracle France, addressed many issues, including:
• The current state of Java EE 6 adoption
• The motivations for Java EE 7
• What the cloud really means for Java EE 7
• Modularity in Java EE.next
• Better streamlined component models
• Status of ongoing work in the JCP
* Services and resources provisioning.
* Virtualization intersection between virtualization and PaaS?
* Meta-data: are XML deployment descriptors good after all?

Look for a detailed blow-by-blow account of the discussion on otn/java in coming weeks.
About

Insider News from the Java Team at Oracle!

duke
Links


Search

Archives
« May 2015
SunMonTueWedThuFriSat
     
1
2
3
4
9
10
11
15
16
17
21
23
24
25
26
27
28
29
30
31
      
Today