Tuesday February 24, 2009
GlassFish setup for 120 programmers in University of Copenhagen
Sidsel Jensen is a Sun
Campus Ambassador at University
of Copenhagen, Denmark. She configured GlassFish in her
department to be used by 120 freshman programmers. Starting with a
standard HP DL360 G5 rack server, installing Gentoo Linux, NetBeans for
deployment of web apps to a remote GlassFish, creating multiple domains
and even performance tuning the Application Server.
Read all the details in Gone
Fishing for GlassFish.
Thank you Sidsel for using GlassFish and sharing the steps with rest of
the community!
If you are interested in learning/talking about GlassFish at your
university, spotlight.dev.java.net/start
provides a comprehensive set of slides (with speaker notes), demos,
screencasts, training materials and other resources to get you started!
Technorati: glassfish
students
campusambassador
denmark
copenhagen
spotlight
Posted by Arun Gupta in General | Comments[5]
|
|
|
|
|
Sunday February 22, 2009
Sun Tech Days 2009, Hyderabad - Technology meets fashion and entertainment
A fashion show was organized for Sun
Tech Days Hyderabad attendees.
Check out some of the videos:
And some dance performances as well ..
And some more ...
And you can of course see the Tech Days team on the ramp ...
Technorati: sun
suntechdays
india
hyderabad
2009 fashionshow
dance
Posted by Arun Gupta in General | Comments[2]
|
|
|
|
|
Wednesday February 18, 2009
India has always had the largest number of attendees of all the Tech
Days, and this time is certainly no exception. 10,000+ attendees, the
passion for technology, the eagerness to share their work, and
everything else makes it certainly one of the most exciting venues for
Tech Days.
The Hyderabad
International Airport is certainly very impressive - big,
clean, and very 21st centurisque with a 8-lane freeway connecting to
the main city.
See a short video as the attendees were allowed to enter the Hyderabad International
Convention Center (the venue for Tech Days):
I got a chance to talk to the General Manager of the convention center
and very happy to
know that similar convention centers are planned for Pune (1/2 the size
of existing one), Mumbai (4x), and
Bangalore (2x) in the near future.
As part of the opening, there was an excellent performance by an
11-year old percussionist, enjoy the video here:
Absolutely stunning performance!
It was funny, I was standing right
next to the boy's parents while recording the video. Apparently the boy
was allotted 10 minutes and the parents were trying their best to
distract the boy right at the beginning of 11th minute :)
I presented on:
Enjoy a glimpse of Bangalore traffic during peak time!
Technorati: traveltips
india bangalore
india
traffic
Posted by Arun Gupta in photography | Comments[0]
|
|
|
|
|
Sunday February 15, 2009
Dilli Haat - An Exotic Arts & Craft Bazaar
"Haat" is a Hindi word that means a weekly marketplace where the
producer sells
the product themselves. As a result, the buyer can find out interesting
details about the product which are typically not available when
sold through retailer. This is equivalent to Farmers
Market where the
Farmers are replaced by local artisans.
Dilli
Haat
is one such place set up by Government
of India in New Delhi.
It has traditional clothes and jewelry, handicrafts, music
performances,
paintings, foods from different Indian states,
and a lot more. It's a great way to spend a weekend!
Explore the location by clicking on the map below:

Here are some pictures:
Friday February 13, 2009
Little India, Singapore in Pictures
Little India in Singapore is a great glimpse of Indian
culture in Singapore. It has access to everything Indian in a matter of
few streets: grocery, clothes, restaurants, music collections, temple,
jewelry, and anything else you can think.
Click on the map below to explore the exact location:

I spent my yesterday evening strolling through the streets of Little
India and took some pictures:
Thursday February 12, 2009
TOTD
#67 shows how to configure GlassFish High Availability using
Apache httpd + mod_jk on Mac OS X. Even though that's a standard and
supported configuration, there are several
advantages for replacing
Apache httpd with Sun Web Server and mod_jk with Load Balancer plugin
that comes with GlassFish.
This Tip Of The Day (TOTD) shows how
to configure Clustering and Load Balancing using GlassFish
v2.1, Sun
Web Server, Load
Balancer plugin on Windows Vista. This blog is using JDK 6 U7,
GlassFish v2.1 (cluster profile), Sun Web
Server 7 U4, and Load Balancer plug-in with Sun
GlassFish Enterprise
Server 2.1 Enterprise Profile (with HADB link).
Lets get started!

| <?xml version="1.0"
encoding="UTF-8"?> <!DOCTYPE loadbalancer PUBLIC "-//Sun Microsystems Inc.//DTD Sun Java System Application Server 9.1//EN" "file:///C:/Sun/WebServer7/https-LH-KRKZDW6CJE1V/config/sun-loadbalancer_1_2.dtd "> <loadbalancer> <cluster name="cluster1" policy="round-robin" policy-module=""> <instance name="instance1" enabled="true" disable-timeout-in-minutes="60" listeners="http://localhost:38080" weight="100"/> <instance name="instance2" enabled="true" disable-timeout-in-minutes="60" listeners="http://localhost:38081" weight="100"/> <web-module context-root="/clusterjsp" disable-timeout-in-minutes="30" enabled="true" error-url=""/> <health-checker interval-in-seconds="7" timeout-in-seconds="5" url="/"/> </cluster> <property name="response-timeout-in-seconds" value="120"/> <property name="reload-poll-interval-in-seconds" value="7"/> <property name="https-routing" value="false"/> <property name="require-monitor-data" value="false"/> <property name="active-healthcheck-enabled" value="false"/> <property name="number-healthcheck-retries" value="3"/> <property name="rewrite-location" value="true"/> </loadbalancer> |







Posted by Arun Gupta in Finance | Comments[4]
|
|
|
|
|
Tuesday February 10, 2009
TOTD #68: Installing Zones in Open Solaris 2008/11 on Virtual Box
The TOTD
#64 describes how to install Open Solaris 2008/11
using Virtual Box.
This Tip Of The Day (TOTD) is going
to explain how to install non-global zones
(aka Solaris Containers) on this Open Solaris image. Containers provide
an operating-system level virtualization technology.
Thanks for the
extensive discussion at zones-discuss
forums, Bill
Walker for lots of off-line support, and last but not the
least Marcelo
Arbore's nice blog showing how to install GlassFish
in an Open Solaris zone.
This blog is going to focus on installing couple of non-global
containers/zones in the Virtual Box image with all gory details. A
later blog will show how to leverage these zones to demonstrate GlassFish
High Availability.
Lets get started!
To begin with, there is one global zone always installed as shown below
(user
inputs highligted in bold):
| arun@opensolaris:~# zoneadm
list -vi ID NAME STATUS PATH BRAND IP 0 global running / native shared |
| arun@opensolaris:~# zonecfg
-z zone1 zone1: No such zone configured Use 'create' to begin configuring a new zone. zonecfg:zone1> create zonecfg:zone1> set zonepath=/export/home/zone1 zonecfg:zone1> set autoboot=true zonecfg:zone1> add net zonecfg:zone1:net> set address=192.168.0.99/24 zonecfg:zone1:net> set physical=e1000g0 zonecfg:zone1:net> end zonecfg:zone1> commit zonecfg:zone1> exit arun@opensolaris:~# zoneadm -z zone1 install A ZFS file system has been created for this zone. Authority: Using http://pkg.opensolaris.org/release/. Image: Preparing at /export/home/zone1/root ... done. Cache: Using /var/pkg/download. Installing: (output follows) DOWNLOAD PKGS FILES XFER (MB) Completed 52/52 7862/7862 72.41/72.41 PHASE ACTIONS Install Phase 12939/12939 PHASE ITEMS Reading Existing Index 9/9 Indexing Packages 52/52 Note: Man pages can be obtained by installing SUNWman Postinstall: Copying SMF seed repository ... done. Postinstall: Working around http://defect.opensolaris.org/bz/show_bug.cgi?id=741 Done: Installation completed in 165.652 seconds. Next Steps: Boot the zone, then log into the zone console (zlogin -C) to complete the configuration process arun@opensolaris:~# zoneadm -z zone1 boot arun@opensolaris:~# zlogin -C zone1 [Connected to zone 'zone1' console] 68/68 Reading ZFS config: done. Mounting ZFS filesystems: (6/6) |
| What type of terminal are you using? 1) ANSI Standard CRT 2) DEC VT100 3) PC Console 4) Sun Command Tool 5) Sun Workstation 6) X Terminal Emulator (xterms) 7) Other Type the number of your choice and press Return: 1 Creating new rsa public/private host key pair Creating new dsa public/private host key pair Configuring network interface addresses: e1000g0. |
| - Host Name for e1000g0:1
------------------------------------------------------ Enter the host name which identifies this system on the network. The name must be unique within your domain; creating a duplicate host name will cause problems on the network after you install Solaris. A host name must have at least one character; it can contain letters, digits, and minus signs (-). Host name for e1000g0:1 zone1 - Confirm Information for e1000g0:1 -------------------------------------------- > Confirm the following information. If it is correct, press F2; to change any information, press F4. Host name: zone1 |
| - Configure Security Policy:
--------------------------------------------------- Specify Yes if the system will use the Kerberos security mechanism. Specify No if this system will use standard UNIX security. Configure Kerberos Security --------------------------- [ ] Yes [X] No - Confirm Information ---------------------------------------------------------- > Confirm the following information. If it is correct, press F2; to change any information, press F4. Configure Kerberos Security: No |
| - Name Service
----------------------------------------------------------------- On this screen you must provide name service information. Select the name service that will be used by this system, or None if your system will either not use a name service at all, or if it will use a name service not listed here. > To make a selection, use the arrow keys to highlight the option and press Return to mark it [X]. Name service ------------ [ ] NIS+ [ ] NIS [X] DNS [ ] LDAP [ ] None - Domain Name ------------------------------------------------------------------ On this screen you must specify the domain where this system resides. Make sure you enter the name correctly including capitalization and punctuation. Domain name: sfbay.sun.com - DNS Server Addresses --------------------------------------------------------- On this screen you must enter the IP address of your DNS server(s). You must enter at least one address. IP addresses must contain four sets of numbers separated by periods (for example 129.200.9.1). Server's IP address: 10.0.2.3 Server's IP address: Server's IP address: |
| - DNS Search List
-------------------------------------------------------------- On this screen you can enter a list of domains that will be searched when a DNS query is made. If you do not enter any domains, DNS will only search the DNS domain chosen for this system. The domains entered, when concatenated, may not be longer than 250 characters. Search domain: Search domain: Search domain: Search domain: Search domain: Search domain: - Confirm Information ---------------------------------------------------------- > Confirm the following information. If it is correct, press F2; to change any information, press F4. Name service: DNS Domain name: sfbay.sun.com Server address(es): 10.0.2.3 |
| - Name Service Error
----------------------------------------------------------- Unable to find an address entry for zone1 with the specified DNS configuration. Enter new name service information? ----------------------------------- [ ] Yes [X] No |
| - NFSv4 Domain Name
------------------------------------------------------------ NFS version 4 uses a domain name that is automatically derived from the system's naming services. The derived domain name is sufficient for most configurations. In a few cases, mounts that cross domain boundaries might cause files to appear to be owned by "nobody" due to the lack of a common domain name. The current NFSv4 default domain is: "sfbay.sun.com" NFSv4 Domain Configuration ---------------------------------------------- [X] Use the NFSv4 domain derived by the system [ ] Specify a different NFSv4 domain - Confirm Information for NFSv4 Domain ----------------------------------------- > Confirm the following information. If it is correct, press F2; to change any information, press F4. NFSv4 Domain Name: << Value to be derived dynamically >> |
| - Confirm Information
---------------------------------------------------------- > Confirm the following information. If it is correct, press F2; to change any information, press F4. Time zone: Pacific Time (US/Pacific) |
| System identification is completed. |
| zone1 console login: root Password: Feb 8 16:12:10 zone1 login: ROOT LOGIN /dev/console Sun Microsystems Inc. SunOS 5.11 snv_101b November 2008 |
| root@zone1:~# ifconfig
-a lo0:1: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1 inet 127.0.0.1 netmask ff000000 e1000g0:1: flags=201000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,CoS> mtu 1500 index 2 inet 192.168.0.99 netmask ffffff00 broadcast 192.168.0.255 root@zone1:~# |
| arun@opensolaris:~$ zoneadm list -vi ID NAME STATUS PATH BRAND IP 0 global running / native shared 1 zone1 running /export/home/zone1 ipkg shared |
| root@zone2:~# ifconfig -a lo0:2: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1 inet 127.0.0.1 netmask ff000000 e1000g0:2: flags=201000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,CoS> mtu 1500 index 2 inet 192.168.0.98 netmask ffffff00 broadcast 192.168.0.255 root@zone2:~# |
| arun@opensolaris:~# zoneadm list -vi ID NAME STATUS PATH BRAND IP 0 global running / native shared 1 zone1 running /export/home/zone1 ipkg shared 2 zone2 running /export/home/zone2 ipkg shared |
Posted by Arun Gupta in General | Comments[0]
|
|
|
|
|
Monday February 09, 2009
LOTD #17: Sun GlassFish Enterprise Server Administration and Deployment Course - SAS 4455
![]() |
Interested in learning how to configure, administer,
and deploy web applications, EJB applications, and Web services on
GlassFish ? This 4-day instructor-led workshop (with numerous hands-on labs) introduces you to various Sun GlassFish Enterprise Server (GlassFish) concepts and functions ranging from introductory to advanced and provides you with hands-on experience via remote labs. You also learn to enable various advanced GlassFish features, such as in-memory replication, high availability database (HADB), load balancing, monitoring and logging, clustering, and security. |
Posted by Arun Gupta in web2.0 | Comments[0]
|
|
|
|
|
Friday February 06, 2009
GlassFish swimming to Singapore, Delhi, Bangalore, and Hyderabad - Feb 2009
I'll be traveling (again)
and this time to Singapore, Delhi, Bangalore, and Hyderabad over
the next couple of weeks. A few meetings are already planned
but there is buffer for squeezing any last-minute JUG visits, Rails
Meetup or meeting Campus
Ambassadors.
Here is my schedule:
![]() |
Singapore: Feb 12 & 13 |
![]() |
Delhi: Feb 14, 20, & 21 |
![]() |
Bangalore: Feb 15, 16, & 17 |
![]() |
Hyderabad: Feb 18 & 19 |
| And I'll be there at Sun
Tech Days in Hyderabad. Ask me anything about GlassFish :) Did you know James Gosling is going to be there ? Check out agenda, details and register today! |
![]() |
Posted by Arun Gupta in General | Comments[2]
|
|
|
|
|
Thursday February 05, 2009
Webinar Replay Available: GlassFish and MySQL-backed applications with NetBeans and JRuby-on-Rails
I presented a webinar on "Developing
GlassFish- and MySQL-Backed Applications with NetBeans and
JRuby-on-Rails" last
week.

The slides and a complete recording
of the webinar are now available here.
Technorati: webinar
glassfish
mysql netbeans
jruby rubyonrails
Posted by Arun Gupta in web2.0 | Comments[1]
|
|
|
|
|
Wednesday February 04, 2009
LOTD #16: Hotspot Flags, JRuby Version String, and JRuby/MRI Benchmark
This post shares 3 links that were recently published.
The first one is about the Favorite
Hotspot JVM Flags by Charlie.
See how you can use them for tweaking performance or investigating
runtime metrics.
The second one is about using JRuby
Version String. It explains the detailed meaning of the
version string printed by "jruby --version". If you read it carefully
then you know the date, hardware, platform, SVN revision and even state
of Charlie's local git-svn clone.
The third and the last one is about benchmark results between MRI and
JRuby with the following summary:
From my tests it appears
that MRI is faster in single threaded mode, but JRuby makes up for the
loss big time in the multi-threaded tests. It's also interesting to see
that the multi-threaded mode gives MRI(green threads) a performance
boost, but it's nowhere close to the boost that JRuby(native threads)
can squeeze out from using multiple threads.
Read Igor's
report for more results.
And while you are reading this entry, did you know that GlassFish
Gem 0.9.2 was recently
released ? Use it for running your Rails applications
seamlessly :)
All previous entries in this series are archived at LOTD.
Technorati: lotd
glassfish
v3 gem jruby ruby hotspot vm
Posted by Arun Gupta in web2.0 | Comments[1]
|
|
|
|
|
Monday February 02, 2009
Rails/Merb and GlassFish at Super Happy Dev House 30
![]() |
Supper Happy Dev House is "a premier monthly hackathon event that combines serious and not-so-serious productivity with a fun and exciting party atmosphere." |
Sunday February 01, 2009
Completed Kaiser Permanente San Francisco 1/2 Marathon - PR
I completed Kaiser
Permanente 1/2 marathon earlier today and the statistics are:
| Bib # | 2597 |
| Rank (in age group) | 130 of 517 |
| Rank (overall) | 858 out of 5817 |
| Chip time | 1:41:30 |
| Pace | 7:45 mins |

![]() |
![]() |
![]() |
![]() |
| Marathon / Half Marathon | Total Time | Pace |
| Kaiser Permanente San Francicsco 1/2 2009 | 1:41:30 | 7:45 |
| Silicon Valley 1/2 2008 | 1:45:42 | 8:04 |
| San Francisco 1/2 2008 | 1:52:44 | 8:25 |
| San Francisco Full 2007 | 4:04:33 | 9:20 |
| Silicon Valley Full 2006 | 4:06:57 | 9:25 |
| San Francisco 1/2 2005 | 1:48:50 | 8:18 |
Posted by Arun Gupta in Running | Comments[2]
|
|
|
|
|
Today's Page Hits: 3896
Total # blog entries: 1002