Leaving Sun! :(
It was so great working at Sun. I worked on so many areas and learnt so many things
- Starting from JDBC driver development
- Transactions, design and performance
- Admin infrastructure - Synchronization, Load Balancer administration, Web Services Management, Monitoring etc.
- Update Center backend and APIs to name a few.
I am sad to leave Sun, but change can be a good thing.
My email address is moc.liamg@mahtanawsiv.hsitas (spelt backwards to avoid spam). Wish me luck!
Posted at 11:43AM Mar 23, 2007 by sv96363 in General | Comments[2]
Verisign trial Cert
For Update Center project we plan to sign the hosted jars and they are verified on the client side. This way only trusted jars can be downloaded and installed by the GlassFish Users. I wanted to test this code with a trial certificate. Verisign makes this process very easy.
The list of SSL certficate packages are available on verisign website . I clicked on the Trial button to generate a trial certficate. Once the contact information is filled out. A form is shown asking the type of server platform, use of the certficate and the CSR. The following steps create the CSR. First a key pair needs to be generated. The following generates a key name "mykey" in the specified mykeystore file.
chandu(sv96363):~ -> keytool -genkey -keystore ~/public_html/mykeystore
-keyalg rsa -alias mykey
Enter keystore password: changeit
What is your first and last name?
[Unknown]: www.java.net
What is the name of your organizational unit?
[Unknown]: Application Server
What is the name of your organization?
[Unknown]: Sun
What is the name of your City or Locality?
[Unknown]: Santa Clara
What is the name of your State or Province?
[Unknown]: California
What is the two-letter country code for this unit?
[Unknown]: US
Is CN=www.java.net, OU=Application Server, O=Sun, L=Santa Clara,
ST=California, C=US correct?
[no]: yes
Enter key password for <mykey>
(RETURN if same as keystore password):
Then the CSR is obtained as follows:
chandu(sv96363):~ -> keytool -certreq -keystore ~/public_html/mykeystore -alias mykey
Enter keystore password: changeit
-----BEGIN NEW CERTIFICATE REQUEST----- MIICdzCCAjUCAQAwczELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRQwEgYDVQQHEwtTYW50YSBD bGFyYTEMMAoGA1UEChMDU3VuMRswGQYDVQQLExJBcHBsaWNhdGlvbiBTZXJ2ZXIxFjAUBgNVBAMT DVVwZGF0ZSBDZW50ZXIwggG3MIIBLAYHKoZIzjgEATCCAR8CgYEA/X9TgR11EilS30qcLuzk5/YR t1I870QAwx4/gLZRJmlFXUAiUftZPY1Y+r/F9bow9subVWzXgTuAHTRv8mZgt2uZUKWkn5/oBHsQ IsJPu6nX/rfGG/g7V+fGqKYVDwT7g/bTxR7DAjVUE1oWkTL2dfOuK2HXKu/yIgMZndFIAccCFQCX YFCPFSMLzLKSuYKi64QL8Fgc9QKBgQD34aCF1ps93su8q1w2uFe5eZSvu/o66oL5V0wLPQeCZ1FZ V4661FlP5nEHEIGAtEkWcSPoTCgWE7fPCTKMyKbhPBZ6i1R8jSjgo64eK7OmdZFuo38L+iE1YvH7 YnoBJDvMpPG+qFGQiaiD3+Fa5Z8GkotmXoB7VSVkAUw7/s9JKgOBhAACgYBy4ONz1v6OT+JT23T+ TPDvI0gjREzrXfampRS93eEYzXxfcVDjfSPa1QvugG7puBaK/ZCVYg5ewEHSG2YBL+VV8ix6XWLQ l2p4cGuiabimuwbVrHgL9fr0vpxA3+uPVrHVI3/+34kvzp8+rdWYMCunw/xsRajzt9mrr5Srs+ZY KqAAMAsGByqGSM44BAMFAAMvADAsAhRXvF8S8VIqiyPkAtRMfwdi/uvluwIULtTEGcqgM97tgEZ7 GprfupartWw= -----END NEW CERTIFICATE REQUEST-----
Almost immediately I got an email containing my trial cert. I saved the trial cert as uc_cert.cer. I import this trial certificate along with <a href="http://www.verisign.com/support/verisign-intermediate-ca/Trial_Secure_Server_Root/index.html"> trial Root CA</a> certifcate.
keytool
–import –trustcacerts –keystore ~/public_html/mykeystore -alias mykey -file ~/public_html/uc_cert.cer
keytool
–import –trustcacerts –keystore ~/public_html/mykeystore -alias mykey -file ~/public_html/trial_root.cer
Now a jar file can be signed as follows:
jarsigner Test.jar mykey
Then it can be verified as follows:
jarsigner -verify -verbose -certs Test.jar
Posted at 10:10AM Jan 17, 2007 by sv96363 in Java |
Update on Update Center (GlassFish) and lessons from Java Update
The engineers working on Update Center Project are excited to finish the milestone 2 of the project. Initial GUI is up and running. Next week, we will finish the Desktop tray implementation and we will also integrate into the GlassFish Application Server.
I also looked at Java Update functionality over this weekend. It is pretty cool. There was an update available, so a tool tip balloon appeared as below on my computer. When I clicked on the ballon, I get an option to Download or be reminded later. (screen shot shown below)
.
I like that fact it asks you, when again to remind me about the update. I can choose a time ranging from 30 mins to 3 days. This is very convienent. In Update Center project we may think about doing this too.
.
Just like the Update Center project - options could be set to either manual option, download or just inform about the updates. As you can see in the following menu - "Check for updates automatically" can be turned on or off. Notification could be either "before downloading" or "before downloading and before installing". Unlike Update Center, there is no way to automatically download and install updates. Sometimes this could be very useful. . Not let me talk about the settings. Automatic update setting could be either daily, weekly or monthly. The default is day 0 at 4 p.m. I am assuming that is 1st day of the month.
.
Update Center should also have monthly option, rather than every week. Every week scan not required for many users. I also liked the proxy settings menu in Java Update. It looks like the following: . I like the fact that they let you choose either system settings or the brower settings. We will support proxy configuration script option in Update Center in future. Finally if you do not like to the System tray icon to disappear- you can uncheck the following option:
. Just to recap, in the Java Update- I liked the remind me later feature, ability to set monthly update checks and more flexible proxy configuration. Please take a look at the Update Center GUI mockups, let us know how we can improve the look and feel the Update Center GUI.
Posted at 08:09PM Dec 06, 2006 by sv96363 in Java |
Change a GlassFish domain to be cluster aware domain
GlassFish V2 supports Clustering including Load balancing, scalability and Failover. If you built GlassFish V2 and setup the domain using configur-runtime maven goal, it creates a PE style domain. Even if you run configure-cluster goal after that newer domains are always going to be PE style domains. Work around for this is to remove ${glassfish.home}/bin directory and re-do maven configure-cluster. This will make sure you have the correct cluster aware EE (Enterprise Edition) domains.
Posted at 11:53AM Oct 30, 2006 by sv96363 in General |
Feature rich NetBeans Update Center
I tried NetBeans Update Center a while back, however I did not blog about its features till now. The Update Center project for GlassFish will borrow code from NetBeans Update Center and add Desktop integration of Update Center, so that new modules and updates can be notified to the user.
The first screen of NetBeans Update Center Wizard looks like the following:
NetBeans shows all the Update Centers (for example NetBeans Update Center, Third Party Update Center etc), so that the users can pick only the Update Centers of their choice. If user already has an update (NBM file), user can install this update/module at this point. User can set proxy server information by clicking on "Proxy Configuration" button. I liked the fact that the default is to use the system proxy settings.
I click on "Next" button to select the modules and updates for the Update Centers. All the updates and new modules show with different icons. NetBeans does not all the existing modules here. I guess NetBeans has a ModuleManager to look at the current modules and their installed versions. User can also uninstall from the ModuleManager menu. It would be nice if NetBeans provides a link to ModuleManager from Update Center. I can click on the update to see the available version and the installed version. I can choose these using "Add", "Add All" button to be installed.
I selected CVS client and CVS Version System. NetBeans quickly downloads these components.
At any points these download process can be stopped. However it can not be resumed. It would be nice enhancement for large updates/modules in the order of few Mega bytes or more. If the internet connection is dropped, user does not have to start from the beginning. GlassFish Update Center is planning to use Sun Download Manager so that we provide this functionality. NetBeans NBM modules come with the certificate of the module developer. User can check the certificate for validity and trustworthiness of the module/update and make a decision to get this or not. A screenshot of the certification verification looks like the following:
To summarize I liked all the NetBeans Update Center features. Smart download, Desktop Integration (notify in case of updates or new modules) will further enhance user experience. Better integration between Module Manager and Update Center would also be a major plus. It would be nice, if user could also rollback an update easily.
Posted at 11:24AM Oct 19, 2006 by sv96363 in General | Comments[1]
Do you like Automatic Updates feature in Windows?
I looked at Windows Automatic Updates feature to see how we can come up a nice design for Update Center in GlassFish. Like other products (Apple's and Google's Updaters) windows also shows the latest available updates with all the details. A sample updates windows looks like the following:
Microsoft identifies each update with an ID like KB918899 etc along with giving a long description about the update and the link to get more information. I am assuming the ID KB918899 is the knowledgebase article number rather than update ID. Lot of updates have variable sizes. For example KB918899 is mentioned as 1.5 MB - 4.4 MB. I rather want to see the exact size/maximum size of the update or atleast more explanation. I rather also want to see the updates be classified into categories - like Security Updates, Funcationality Updates (bugs) etc. I clicked on the "Change automatic updates settings" to look at the preferences menu. A sample preferences looks like the following:
I liked preferences menu better than Google's Updater for the following reason. Rather than showing 3 preferences ( Auto Download and Install, Notify and OFF) Microsoft has 4 preferences (Auto Down and Install, Auto Download and Notify, Just Notify and OFF). Google gives an option to user, so he can either allow or disallow collection of statistics. Microsoft does not give this option to user. It collects these statistics anyway. However Microsoft clearly states what kind of statistics it is collecting and why? I never saw such details from Google. Here is Microsoft's statistics collection policy:
Microsoft does not attempt show the installed software updates in the Automatic Updates menu. In GlassFish we also want to give similar 4 option preference menu to the users. If any comments or ideas on this subject please email to dev@updatecenter.dev.java.net. Thanks for reading.
Posted at 08:33AM Oct 18, 2006 by sv96363 in General |
How good is Google Updater?
Last week I looked at the Apple's Software Update feature. I want to summarize Google's Updater experience this week. This may help us in designing the Update Center user interface. Google Updater has a toolbar icon. If you click on it shows you the current status of the Google's software. The screen shot looks like the following:
On my computer I already had Norton Antivirus 2004 installed. Google could update that software automatically. It had asked me to un-install before it could install the 2005 version.
You can look at the current installed software and the details like install size, date, option to run, option to uninstall and option to get more software. The screen shot for the installed software looks like the following:
One interesting fact is that it "Software installed or detected by Google Updater". Even though I did not install Norton Antivirus 2004 through Google Updater, it shows it. Because Norton Antivirus is part of Google Update Center. Thats why the install date of the Norton Antivirus is in 2004, where as others is in 2006. I tried clicking on the "Get more software" link. I get the following in a browser window:
I was bit confused by the terminology here. This page says there is "no new software", however it shows the additional software links for Google Video, Picassa, Google screen saver etc. It meant that there are new versions, when it said "no new software". To confirm this fact, I clicked on the updates tab. As I expected it shows that there are no updates (even though there are more software available for download). The screen shot looks like the following:
The most important tab is Preferences tab. You can control the behavior of Updater here. If you are behind firewall/proxy, you need to setup the proxy information here. The screen shot looks like the following:
The default is Updater checks for the updates and installs them automatically. It also notifies the user, if there is another update. By default Updater shows up in the system tray.
I did not like the fact that the term 'new software' is used in exchange of 'newer software update' and I do not like the default of 'Automatically update software' rather than notifying the user. The version of Google Updater is very interesting too version 1.2.567.20382.beta.en. :). The version name is bit longer than I am used to. :). I am interesting in learning more about what type of anonymous usage statistics that Google intend to collect, once that option is enabled. Over all I liked the Google Updater.
Posted at 08:24AM Oct 12, 2006 by sv96363 in Java | Comments[1]
Learning from Software Update feature on Mac
Some of GlassFish engineers including me working on providing the auto update (update center) feature on GlassFish. That way users can get blue prints, frameworks, sample applications, additional modules or add on products as they are available on GlassFish, rather than downloading new builds and installing the whole new build.
So I thought I would look at he Software Update feature on Mac. I started from "System Preferences" icon/menu. If you are not very familiar with Mac, "System Preferences" is equivalent to "Control Panel" in windows. System Preferences has 4 categories - Personal, Hardware, Internet & Network and System. "Software Update" is available in the System section. Once I clicked on "Software Update", the screen looks like the following:
This main screen shows the time when last software update was successfully. You can also select how often to check for updates. The default seems to be weekly. I clicked on the installed updates. It shows the following screen:
It shows the installed components, the date & time of the install and versions. Nice thing is it allows open this information a log file. This feature will be useful, if you want to share what types of updates are installed on your computer.
I go back to Update Software tab, click on "Check Now" button. After a brief delay of showing the following screen
It comes back the list of the updates. It auto selects the recommended updates. For example in the following screen 4 out of 6 are selected. This screen also provides a brief description about the update. For example you can also look other 2 updates (which are currently unselected) and decide if you want to install them too. Airpot feature seems to fix connectivity and security issues. I chose this update, as I use wireless feature often and want to update to date with security features.
Another thing I liked about the Apple's Software Update feature is that it lets you download the updates in the background, can notify when the downloading of these updates is done. This way user does not have to wait for the download of the updates. I also the fact that restart required status shown, so I have a choice to select only "no restart required" updates when I do not want to restart the computer.
We have looked at Google pack and its updater too. We will be looking at Ubuntu update features in preparation for desing of Update Center feature in GlassFish. If you are interested, please provide feedback and paticipate.
Posted at 03:23PM Oct 06, 2006 by sv96363 in General |
Could not create domain? What/Who is the culprit?
If you are removing the glassfish sources to refresh your build to get the latest sources. Re-checkout of the sources and building the sources should go through fine. Nut you may run into the following issue during configure-runtime stage
configure-runtime:
[copy] Copying 1 file to /export/satish/install/tip-gf
[mkdir] Created dir: /export/satish/install/tip-gf/bin
[echo] Current Java Version 1.5.0_06
[copy] Copying 1 file to /export/satish/install/tip-gf/config
[copy] Copying 1 file to /export/satish/install/tip-gf/bin
[copy] Copying 1 file to /export/satish/install/tip-gf/bin
[copy] Copying 1 file to /export/satish/install/tip-gf/bin
[copy] Copying 1 file to /export/satish/install/tip-gf/bin
[copy] Copying 1 file to /export/satish/install/tip-gf/bin
[copy] Copying 1 file to /export/satish/install/tip-gf/bin
[copy] Copying 1 file to /export/satish/install/tip-gf/bin
[copy] Copying 1 file to /export/satish/install/tip-gf/bin
[copy] Copying 1 file to /export/satish/install/tip-gf/bin
[copy] Copying 1 file to /export/satish/install/tip-gf/bin
[copy] Copying 1 file to /export/satish/install/tip-gf/bin
[copy] Copying 1 file to /export/satish/install/tip-gf/bin
[copy] Copying 1 file to /export/satish/install/tip-gf/bin
[copy] Copying 1 file to /export/satish/install/tip-gf/bin
[copy] Copying 1 file to /export/satish/install/tip-gf/bin
[exec] Domain domain1 already exists in /export/satish/install/tip-gf/domains. Use a different domain name or the --domaindir option.
[exec] CLI130 Could not create domain, domain1
BUILD FAILED
File...... /export/satish/src/gf/glassfish/bootstrap/maven.xml
Element... ant:ant
Line...... 385
Column.... 76
exec returned: 1
Total time: 49 minutes 36 seconds
Finished at: Thu Sep 28 16:10:53 PDT 2006
If you guessed the reason, then you are smart :) and you can skip the rest of this blog. This is caused by an existing glassfish instance still running and is using the domains/domain1/autodeploy directory. GlassFish running instance crates .autodeploystatus file in the domain directory. Even though you removed this directory. The un-stopped running instance creates this file, if it is removed.
So stop the running instance and remove the domains directory. Then you are all set to a new version of GlassFish and ready to try out the newer builds.