- Web Services
- Scripting
- Database
For a great out-of-the-box development experience with database applications, the Java SE 6 development kit – though not the Java Runtime Environment (JRE) – co-bundles the all-Java JDBC database, Java DB based on Apache Derby. No more need to find and configure your own JDBC database when developing a database application! Developers will also get the updated JDBC 4.0, a well-used API with many important improvements, such as special support for XML as an SQL datatype and better integration of Binary Large OBjects (BLOBs) and Character Large OBjects (CLOBs) into the APIs.
- More Desktop APIs
Much has been said about this spoonful of sugar (to go with the Desktop team's cake), so we will only skim a little. GUI developers get a large number of new tricks to play like the ever popular yet newly incorporated SwingWorker utility to help you with threading in GUI apps,JTable
sorting and filtering, and a new facility for quick splash screens to quiet impatient users.
- Monitoring and Management
The really big deal here is that you don't need do anything special to the startup to be able to attach on demand with any of the monitoring and management tools in the Java SE platform. Java SE 6 adds yet more diagnostic information, and we co-bundled the infamous memory-heap analysis tool Jhat for forensic explorations of those core dumps.
"For those of you deafened by your screaming inner geek, roll up your sleeves and give it a try."
Java SE Platform Lead
- Compiler Access
Really aimed at people who create tools for Java development and for frameworks like JavaServer Pages (JSP) or Personal Home Page construction kit (PHP) engines that need to generate a bunch of classes on demand, the compiler API opens up programmatic access tojavac
for in-process compilation of dynamically generated Java code. The compiler API is not directly intended for the everyday developer, but for those of you deafened by your screaming inner geek, roll up your sleeves and give it a try. And the rest of us will happily benefit from the tools and the improved Java frameworks that use this.
- Pluggable Annotations
It is becoming a running joke in Java technology circles, at least some that contain us, that for every wished-for feature missing in Java technology, there's a budding annotation that will solve the problem. Joke no more, because Java tool and framework vendors can put a different smile on your face, defining their own annotations and have core support for plugging in and executing the processors that do the heavy lifting that can make custom annotations so cool.
- Desktop Deployment
Those of you deploying applications to the desktop will soon discover that it's a tale of a large number of smaller changes that add up to a big difference to existing applications: better platform look-and-feel in Swing technology, LCD text rendering, and snappier GUI performance overall. Java applications can integrate better with the native platform with things like new access to the platform's System Tray and Start menu. At long last, Java SE 6 unifies the Java Plug-in technology and Java WebStart engines, which just makes sense. Installation of the Java WebStart application got a much needed makeover.
- Security
You can have all the security features you like in the platform — and this release adds a few more, like the XML-Digital Signature (XML-DSIG) APIs for creating and manipulating digital signatures — but if you don't have well supported security administrators, your security may be at risk. So Java SE 6 has simplified the job of its security administrators by providing various new ways to access platform-native security services, such as native Public Key Infrastructure (PKI) and cryptographic services on Microsoft Windows for secure authentication and communication, Java Generic Security Services (Java GSS) and Kerberos services for authentication, and access to LDAP servers for authenticating users.
- The -lities: Quality, Compatibility, Stability
You probably knew that Sun has done regular feature releases of the Java SE platform over the last 10 years. So we certainly feel like we've built up some expertise in this area, such as the ever growing 80,000 test cases and several million lines of code testing conformance (being just one aspect of our testing activity). You probably noticed that, unlike the last release, people have been downloading binary snapshots for the last 20 (not just 6) months. And what's more, they've been filing bugs. So, before we even got to beta, we'd fixed a number of quality and regression issues. Doesn't that add up to a better product? Oh, and by the way, performance is looking better than J2SE 5.0.
All developers get first-class support for writing XML web service client applications. No messing with the plumbing: You can expose your APIs as .NET interoperable web services with a simple annotation. Not your style? Want to handle the XML directly? Knock yourself out: Java SE 6 adds new parsing and XML to Java object-mapping APIs, previously only available in Java EE platform implementations or the Java Web Services Pack.
You can now mix in JavaScript technology source code, useful for prototyping. Also useful when you have teams with a variety of skill sets. More advanced developers can plug in their own scripting engines and mix their favorite scripting language in with Java code as they see fit.
Perhaps You Thought you couldn't program with a scripting language and Java together. Which will you be trying ?
1、Web Services. 優(yōu)先支持編寫 XML web service 客戶端程序。你可以用過簡單的annotaion將你的API發(fā)布成.NET交互的web services. Mustang 添加了新的解析和 XML 在 Java object-mapping APIs中, 之前只在Java EE平臺實現(xiàn)或者Java Web Services Pack中提供.
2、Scripting. 現(xiàn)在你可以在Java源代碼中混入JavaScript了,這對開發(fā)原型很有有用,你也可以插入自己的腳本引擎。
3、Database. Mustang 將聯(lián)合綁定 Java DB (Apache Derby). JDBC 4.0 增加了許多特性例如支持XML作為SQL數(shù)據(jù)類型,更好的集成Binary Large OBjects (BLOBs) 和 Character Large OBjects (CLOBs) .
4、More Desktop APIs. GUI 開發(fā)者可以有更多的技巧來使用 SwingWorker utility ,以幫助GUI應(yīng)用中的多線程。, JTable 分類和過濾,以及添加splash閃屏。
5、Monitoring and Management. Mustang 添加更多的診斷信息,綁定了不是很知名的 memory-heap 分析工具Jhat 來查看內(nèi)核導(dǎo)出。
6、Compiler Access. compiler API提供編程訪問javac,可以實現(xiàn)進程內(nèi)編譯,動態(tài)產(chǎn)生Java代碼。
7、Pluggable Annotation. Java tool和framework 提供商可以定義自己的 annotations ,并且內(nèi)核支持自定義annotation的插件和執(zhí)行處理器
8、Desktop Deployment. Swing擁有更好的 look-and-feel , LCD 文本呈現(xiàn), 整體GUI性能的提升。Java應(yīng)用程序可以和本地平臺更好的集成,例如訪問平臺的系統(tǒng)托盤和開始菜單。Mustang將Java插件技術(shù)和Java Web Start引擎統(tǒng)一了起來。
9、Security. XML-數(shù)字簽名(XML-DSIG) APIs 用于創(chuàng)建和操縱數(shù)字簽名); 新的方法來訪問本地平臺的安全服務(wù),例如本地Microsoft Windows for secure authentication and communicationnative 的Public Key Infrastructure (PKI) 和 cryptographic services, Java Generic Security Services (Java GSS) 和 Kerberos services for authentication, 以及訪問 LDAP servers 來認(rèn)證用戶.
10、The -ilities: 質(zhì)量,兼容性,穩(wěn)定性。 80,000 test cases 和數(shù)百萬行測試代碼(只是測試活動中的一個方面). Mustang 的快照發(fā)布已經(jīng)被下載15個月了,每一步中的Bug都被修復(fù)了,表現(xiàn)比J2SE 5還要好。