|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Mandy Chung's Blog
JavaOne 2008Posted by mandychung on May 05, 2008 at 10:31 PM | Permalink | Comments (0)There are the Java Modularity session and BOF on Wednesday (5/7/2008)at JavaOne: TS-6185: Modularity in the Java™ Platform BOF-5032: Modularity in the Java™ Platform At the session, Stanley and Alex, the spec leads of JSR 277, will share the technical details of the Java Module System. At the BOF, we will show some simple demos of the JAM modules and also show a JAM module importing OSGi bundles using the JDK built from the OpenJDK modules project and then open for Q&A. Looking forward to meeting you there. For those who are not attending JavaOne, we will update you in our future blogs. Supporting OSGi Bundles in the Java Module SystemPosted by mandychung on April 28, 2008 at 10:38 PM | Permalink | Comments (1)A draft specification for supporting OSGi bundles in the Java Module System is put together based on the past EG discussion in particular the proposals and inputs from Glyn Normington, Richard Hall, and Bryan Atsatt. It is expected to evolve based on further inputs from the JSR 277 Expert Group. With the OSGi expertise from the JSR 277 EG and their contributions, we expect that this specification can be finalized soon. Your feedback is welcome and please send them to jsr-277-comments@jcp.org. Just to highlight a few main points: One thing noteworthy: JSR 277 defines the framework and API for the Java Module System and also defines the JAM module system as the default module system implementation for the Java SE platform and the JAM file format as its distribution format. JSR 277 Early Draft (EDR2) is being updated to clearly separate the distinction between the Java Module System framework and the JAM module system implementation. We recognized the issue with the JSR 277 EDR that didn't clearly separate the framework/abstraction from the JAM module system implementation that led to confusion and also skeptic about the OSGi interoperability support. Bryan Atsatt also identified and raised this concern to the EG. We hope that the EDR2 will be available in a few weeks after JavaOne. In the mean time, the draft spec includes some spec clarification relevant for this support. In addition, Bryan has a nice blog about JSR 277 interoperation that serves very well to set up the context ready for the coming discussion (thanks Bryan). I'd also like to blog more about this work but probably after JavaOne when I get some time. JSR 277 and OSGi interoperabilityPosted by mandychung on April 18, 2008 at 11:54 AM | Permalink | Comments (1)I recently take on a new challenge and join the JSR 277 project working on JSR 277 and OSGi interoperability. There are lots to learn and I am trying to come up to speed as quickly and effectively as I can. Thanks to all the interests and excitements around this topic! I appreciate in advance the participation and contribution from the JSR 277 and 291 Expert Groups and the OSGi experts. Our goal is to ensure that existing OSGi bundles can be used in Java SE 7. Like everywhere else, resource has always been tight. But we are revamping the effort to move forward quickly. Stay tuned and please be patient with this new member on board :) Digress:
Hope we can show a demo on using VisualVM to monitor and manage Java modules some time soon!
New JDK Registration Capability in Java SE 6u5Posted by mandychung on March 06, 2008 at 03:23 PM | Permalink | Comments (5)JDK product registration is one of the most significant features in the new Java SE 6u5 release. This provides the ability to register the JDK installations through Sun Connection. Registering the JDK is optional. We would like the JDK registration to provide mutual benefits to both Sun and the developers. JDK Installation ExperienceThere is a change in the JDK installation flow for this feature. The above is the new panel of the Windows installer at the end of JDK installation. When you click "Finish", the JDK Registration Login page will be opened in a browser. To complete JDK registration, you will need to login your existing Sun Developer Network (or other Sun online account). If you do not have an existing account, you can create one during the registration process. After you login and the JDK is registered, you will see a "Thank You" page.
There is an offline JDK registration page located in the JDK install directory (<JDK>\register.html) along with two localized versions (Japanese and simplified Chinese) that allows you to register your JDK any time after installation. Technical DetailsThe registration process begins after the JDK installation completes where you get the last panel providing the information about JDK registration. When you click "Finish", the following happens: Step 1:
The completed list of data being collected is described at the JDK Product Information page. In the next release, additional system information may be collected and the JDK Product Information page will be updated accordingly. Step 2:
Thanks to the new java.awt.Desktop API added in Java SE 6 release which helps the implementation a lot. Known limitation: On Solaris and Linux, the JDK registration implementation is dependent on Gnome libraries. If those libraries are unavailable, the Desktop API is not supported and no browser will be opened. See the Swing Tutorial for details. Step 4: Step 5: JDK Registration and Service TagsMy previous blog gave an overview of the Service Tags technology. Service tag is a digital product identifier to enable product registration. JDK registration process generates a service tag for the JDK. The service tag information will then be uploaded to Sun Connection during registration. If the JDK is installed on a Service Tags enabled system (i.e. the Service Tags software has been installed on your system), the JDK service tag will be created in the service tag registry and the JDK will be discoverable with the Registration Manager client tool. JDK product registration is part of Sun's larger effort to support registration across its hardware and software products. NetBeans, Glassfish and many other Sun products also provide the ability to register the products. You can track and manage your registered products at Sun Inventory Channel. Sun Inventory Channel is one of the Sun Connection services and it is a free inventory management portal that provides a centralized repository to organize and manage your deployed products on your systems. Registering the JDK and other products will enable us to provide faster and efficient services and collaboration, for example:
References
Sun Service Tags and Inventory ChannelPosted by mandychung on February 19, 2008 at 12:05 AM | Permalink | Comments (1)Recently I have been working on a new Java SE project related to a Sun Connection Technology called Service Tags. I'd like to give a short introduction of the Sun Service Tags technology that you may find various interesting ideas of leveraging it. Sun Service TagsThe Sun Service Tags enable automatic discovery of the tagged systems and softwares on your systems or a local network. The JDK and JRE 6 update 4 will become discoverable when installed on Solaris and Linux service tag enabled systems. The Sun Service Tags are not limited for Sun products. You can create the service tags for your own products (hardwares, softwares, or services) and leverage the discovery capability for your environment to use.Discoverable products are registerable at Sun Connection Inventory Channel. I'll talk about the JDK product registration next in a couple of weeks. What is a Service Tag?Sun Service Tag is a XML-based unique identifer of a product instance containing a set of basic information about the product instance on a system. Below represents a service tag of a JDK instance.
The product_urn field of Sun products is in this format "urn:uuid:" followed with a 32 character long UUID but is not required by Sun Service Tags. You can also embed additional information about a product besides the basic one in the product_defined_instance_id field. Service Tag Enabled SystemTo enable service tags technology, you need to install the Service Tags Software that consists of:
Create your own service tagOnce you enable Service Tags on your system, you can add a service tag for any hardware, software or anything else you want to be tagged. For example, I have created a service tag for Skype just as an example by using thestclient utility (I installed Skype on my laptop for making international calls to my mom in Hong Kong) . You can do it in an interactive mode or with the -a option.
c:\Program Files\Sun\servicetag>.\stclient > a Enter instance URN (optional): Enter product (e.g. Sun Web Server): Skype Enter version (e.g. 6.1): 3.6 Enter product URN: A-unique-ID-for-Skype Enter product parent URN: A-unique-ID-for-its-parent Enter product parent (e.g. JES): Free software Enter product defined instance id: Enter product vendor (e.g. Sun): Skype Enter platform arch (e.g. SPARC): x86 Enter container (e.g. zone 0): global Enter source (e.g. genesis patch): SkypeSetup.exe Skype 3.6 added Product instance URN=urn:st:1f158110-de82-11dc-a0f1-000f1f14443e Press enter to continue
<service_tag>
<instance_urn>urn:st:1f158110-de82-11dc-a0f1-000f1f14443e</instance_urn>
<product_name>Skype</product_name>
<product_version>3.6</product_version>
<product_urn>A-unique-ID-for-Skype</product_urn>
<product_parent>Free software</product_parent>
<product_parent_urn>A-unique-ID-for-its-parent</product_parent_urn>
<product_defined_inst_id></product_defined_inst_id>
<product_vendor>Skype</product_vendor>
<platform_arch>x86</platform_arch>
<timestamp>2008-02-19 00:32:16 GMT</timestamp>
<container>global</container>
<source>SkypeSetup.exe</source>
<installer_uid>0</installer_uid>
</service_tag>
DiscoveryTo discover the tagged products on your system, you can start the Registration Manager client tool (a Java web start application also available at https://sunconnection.sun.com/inventory). ST discoverer and listener services allow the system to be discovered via the Registration Manager client tool. These network services only communicate the service tag information with the Registration Manager client tool and do not communicate with any other services on your system. These are the screenshots of the Registration Manager client tool looking up the tagged products on my laptop:
The first screenshot shows that you can configure the Registration Manager client tool to perform the discovery on a local subnet or one or more specified systems. Note that the Registration Manager performs no communication with Sun until you decide to perform the "registration" step. I will blog about product registration later. The second screenshot shows the list of tagged products on your system including my tagged Skype. Several Sun hardware and software products including JDK and NetBeans IDE are discoverable and more are being added over time. A service tag for the Windows OS is also created as part of the Service Tags software installation.
One of the most basic and difficult problems IT departments have today is to simply know what systems, softwares, and even services they have. Systems and softwares are installed by various team members at all times. Systems are shut down and new software is upgraded. Sun Service Tags and Inventory Channel give IT new tools to manage this complexity. For example, you can quickly determine what JDK and JRE instances (Java SE 6 update 4 and later releases) are installed on which systems in your environment. For More Information
|
May 2008
Search this blog:CategoriesJ2SEJavaOne Archives
May 2008 Recent EntriesSupporting OSGi Bundles in the Java Module System JSR 277 and OSGi interoperability | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|