JavaOne debate: Java EE vs. Spring

Panelists at the conference debate merits of the rival programming technologies -- and the merits of using them together

The enterprise variant of Java faced off against the Spring Framework this week in a debate over which one developers should use for Java application development.

A panel of experts discussing Java EE (Java Platform, Enterprise Edition) got off on a bit of a tangent Wednesday, pitting the formal Java EE standard platform against the alternative Spring Framework, which has been downloaded several million times. The panel session took place at the JavaOne conference in San Francisco.

[ Oracle discussed its Java technology roadmap on Monday evening. | Keep up with app dev issues and trends with InfoWorld's Fatal Exception blog and Developer World newsletter. ]

"I would never put Spring in [with] Java EE 6 because it's too much overlap," said Adam Bien, a consultant, author, and speaker. Complexities could result such as use of both Spring and Java EE annotations, he said.

"For most projects, my personal opinion is separate things. Either Spring or Java EE 6," he said. Developers, however, could use Spring utilities on top of EE 6, Bien said.

But Reza Rahman, lead engineer at Caucho Technology, stressed competition amongst the two technology sets. "Java EE needs Spring as much as Spring needs Java EE," Rahman said.

Fundamental characteristics of Java EE are type safety and Java-centric configuration, said Rahman. Spring offers a different mindset -- developers must tell a container on an ad hoc basis what services are desired and how they will be delivered, he explained.

Interviewed afterward, Rahman cited Spring as having advantages in lower level integrations for its container over what Java EE now supports. Java EE, however, has ease of use benefits and requires less configuration, he said.

"Things just work out of the box," he said.

But the two technologies are not mutually exclusive. "I think people should take very seriously the possibility of using them together," Rahman said.

Bien said he did not think Spring and Java EE 6 will work together in mission-critical projects because users would have to buy support services from two different companies who "probably don't like each other."

Panelists also briefly discussed ambitions for a planned Java EE 7 release. Modularity has been cited as an improvement planned for the EE 7 specification. But modularity "can't be the only value proposition of Java EE 7," Rahman said. "That's far too little."

Developers of the specification need to be careful to not make modularity too complex, he stressed.

Rahman cited other possible improvements including better alignment with CGI (Common Gateway Interface), a higher level security API, and better compatibility between HTML5 and JavaServer Faces.

 "Maybe what could be the most significant feature of EE 7 would be to open up the JCP (Java Community Process)," said panelist Emmanuel Bernard, principal software engineer at JBoss. His suggestion drew a round of applause from the audience.

A debate has been ongoing in the industry about whether the JCP should continue to be dominated by a single vendor, in this case Oracle. Previously, Sun Microsystems led the JCP. Sun was acquired by Oracle early this year.

On Thursday, JavaOne featured whiz-bang technologies based on Java, such as the Livescribe "smartpen," which offers such capabilities as speech synthesis.

"This is a computer. It's a fully multimodal computer. We call it a smartpen," said Jim Margraff, Livescribe chairman and CEO.

Inventor and futurist Ray Kurzweil, meanwhile, gave a presentation on the growth of embedded technology and how it is spreading to new realms.

Kurzweil predicted, "There will be thousands, ultimately millions, of devices running Java inside your body."

This article, "JavaOne debate: Java EE vs. Spring," was originally published at InfoWorld.com. Follow the latest developments in business technology news and get a digest of the key stories each day in the InfoWorld Daily newsletter.

Read more about developer world in InfoWorld's Developer World Channel.

Join the PC World newsletter!

Error: Please check your email address.

Tags SpringSourceapplication developmentLanguages and standardsDeveloper WorldjavasoftwareOracle

Our Back to Business guide highlights the best products for you to boost your productivity at home, on the road, at the office, or in the classroom.

Keep up with the latest tech news, reviews and previews by subscribing to the Good Gear Guide newsletter.

Paul Krill

InfoWorld
Show Comments

Essentials

Lexar® JumpDrive® S57 USB 3.0 flash drive

Learn more >

Microsoft L5V-00027 Sculpt Ergonomic Keyboard Desktop

Learn more >

Mobile

Lexar® JumpDrive® S45 USB 3.0 flash drive 

Learn more >

Exec

Audio-Technica ATH-ANC70 Noise Cancelling Headphones

Learn more >

Lexar® JumpDrive® C20c USB Type-C flash drive 

Learn more >

Lexar® Professional 1800x microSDHC™/microSDXC™ UHS-II cards 

Learn more >

HD Pan/Tilt Wi-Fi Camera with Night Vision NC450

Learn more >

Budget

Back To Business Guide

Click for more ›

Most Popular Reviews

Latest News Articles

Resources

PCW Evaluation Team

Azadeh Williams

HP OfficeJet Pro 8730

A smarter way to print for busy small business owners, combining speedy printing with scanning and copying, making it easier to produce high quality documents and images at a touch of a button.

Andrew Grant

HP OfficeJet Pro 8730

I've had a multifunction printer in the office going on 10 years now. It was a neat bit of kit back in the day -- print, copy, scan, fax -- when printing over WiFi felt a bit like magic. It’s seen better days though and an upgrade’s well overdue. This HP OfficeJet Pro 8730 looks like it ticks all the same boxes: print, copy, scan, and fax. (Really? Does anyone fax anything any more? I guess it's good to know the facility’s there, just in case.) Printing over WiFi is more-or- less standard these days.

Ed Dawson

HP OfficeJet Pro 8730

As a freelance writer who is always on the go, I like my technology to be both efficient and effective so I can do my job well. The HP OfficeJet Pro 8730 Inkjet Printer ticks all the boxes in terms of form factor, performance and user interface.

Michael Hargreaves

Windows 10 for Business / Dell XPS 13

I’d happily recommend this touchscreen laptop and Windows 10 as a great way to get serious work done at a desk or on the road.

Aysha Strobbe

Windows 10 / HP Spectre x360

Ultimately, I think the Windows 10 environment is excellent for me as it caters for so many different uses. The inclusion of the Xbox app is also great for when you need some downtime too!

Mark Escubio

Windows 10 / Lenovo Yoga 910

For me, the Xbox Play Anywhere is a great new feature as it allows you to play your current Xbox games with higher resolutions and better graphics without forking out extra cash for another copy. Although available titles are still scarce, but I’m sure it will grow in time.

Featured Content

Latest Jobs

Don’t have an account? Sign up here

Don't have an account? Sign up now

Forgot password?