Java SE 6 beta 2 released... Mustang 8 highlights

Source: Internet
Author: User
J2se5 itself has not set off a lot of waves. Now j2se6 has reached the beta2 version, which is also said to be the final version. So let's first understand its features. The original Article is from workshop? Forum = 276 & Thread = 165061

Chris posted on
Author: Chris from: Sun
Comments: 2 clicks: 401
Abstract:

The sixth version of the Java platform, Standard Edition (Java SE), codenamed Mustang, released the second beta version. This time, the second beta version was released four months later.

Document tools

Favorites
Post comments
Copy Link

The sixth version of the Java platform, Standard Edition (Java SE), codenamed Mustang, released the second beta version.

At the beginning of this year, Mustang released the first beta version, which opened the secret of Java SE 6.

This is the second beta release after four months.

What are the new things in Java SE 6 beta 2 (Mustang? What is worth developers' attention?

Simplified Web Services
Mustang simplifies the development and release of Web Services. XML and web services have always been the focus of Mustang .. mustang introduced JAX-WS (Java architecture for XML-Web Services) 2.0 and jaxb (Java architecture for XML binding) 2. 0 .. the streaming API for XML (Stax) also provides a two-way API, which can read or write XML through an event stream, including skipping a part, then directly focus on the capabilities of another small part of the document.

Scripting, integrated scripting language
Previously, Java developers must use the non-Java scripting language independently of Java. This headache will be eliminated by Mustang, and developers will use Perl, PHP, Python, JavaScript, Ruby and other scripting languages more easily. The new framework will allow people to operate arbitrary scripting languages and use Java objects.

Java se6 implements jsr223. This is a script framework that provides methods for the scripting language to access Java. You can find the script engine and call it to execute the script. This script API allows you to provide Java support for the script language. In addition, the web Scripting framework allows script code to generate Web Content in any servlet container (such as Tomcat.

Database, bind Derby
Bind the open-source embedded database Derby (javadb) to JDK 1.6. For details, see: bind JDK 1.6 to the open-source database Derby.

Richer desktop APIs
Mustang has more powerful desktop APIs for developers. developers can develop more powerful desktop applications, such as startup Interface Support, System Tray support, and jtable sorting.

Monitoring and Management
In Java SE 6, memory leakage is enhanced in analysis and diagnosis. When a java. Lang. outofmemory exception occurs, a complete stack information is obtained. When the heap is full, a log file is generated to record this fatal error. In addition, the JVM also adds an option to allow you to run scripts when they are full. (This provides another method to diagnose errors)

The enhanced JMX monitoring API allows an application to send an event notification when the mbean property value passes in a specific parameter. (The attribute values here can be in complex types)

For users of Solaris 10, the hotspot JVM provided by Solaris provides a way to track and display activities in the JVM through Solaris dtrace (which is a system debugging tool, including garbage collection, class loading, threads, locks, and so on.

Pluggable annotations
Annotations, a new feature introduced from Java SE 5, will continue to play an important role in Mustang ..

Compiler API: access the Compiler
For developers of Java development tools or web frameworks, using compilers to compile dynamically generated code is a common requirement.

Mustang implements JSR 199 and provides Java compiler APIs (application interfaces ), allow you to compile other Java source programs from a Java application-for example, some source code dynamically generated in the application ..

Security: Security
Java SE 6 Security Section, added XML-digital signature (XML-DSIG) APIs, integrated GSS/Kerberos operation API, JAAS authentication on LDAP.

Download Java SE 6 beta 2:
Http://java.sun.com/javase/6/download.jsp? Feed = JSC

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.