Friday Feb 08, 2013

Living out of Oracle Unbreakable Linux on your laptop!

I started living out of Oracle's Unbreakable Linux for the past 1 month on my official laptop! And I could successfully do it after few tweaks and escapades, had to install and configure a couple of times prior, but finally I could live without going back to my windows after stabilization of the OS. 

If you get used to it, I think you will not go back to windows!!! In any case try it out its worth trying :) 

[Read More]

Sunday Dec 20, 2009

GlassFish Cluster Installation Tips

When ever you go in for GlassFish Cluster deployment please ensure that you do the following before and after installation so that the setup works without any issues:

  • Install the latest version of JDK available
  • See that the machines that have the NodeAgents / Instances on the same subnet. Clustering doen't work with machines that are not on the same subnetwork.
  • Enable Multicasting with in the subnet where the cluster installation is taking place. -- SHOAL which is the backbone of the cluster requires multicast to be enabled. You can test the Multicast on the network by the simple instruction you can can find here and here. Not checking these 2 might result in either the instances not joining the network or session replication failure.
  • Install the GlassFish with latest patch available. -- This step ensures that lot of the bugs are fixed which might be discovered later in the production.
  • Once installed ensure that the sample cluster application that is bundled with the GlassFish is deployed and runs properly in the cluster. This sample is bundled with the <GlassFishInstallFolder>/samples/quickstart/clusterjsp folder.

These steps (which might take 30 mins.) ensure that the GlassFish Cluster Installation in the envisaged manner and saves lot of trouble shooting time.

Hope you find these steps useful. Happy Clustering!!!

Friday Sep 18, 2009

Glassfish Update Tool on MAC OS

There will not be any JAVA_HOME set by default on MAC OS and also it will not be in the standard folder way as in case of Windows / Solaris. The Default Java would be in the /System/Library/Frameworks/JavaVM.framework/Versions/ directory with each version like 1.3, 1.4 installed. Also the directory structure would be

narayana-rallabandis-macbook:1.5.0 narayanarallabandi$ pwd
narayana-rallabandis-macbook:1.5.0 narayanarallabandi$ ls -la
total 0
drwxr-xr-x   9 root             wheel   306 Jun  2 13:31 .
drwxr-xr-x  14 root             wheel   476 May 29 17:27 ..
drwxr-xr-x  11 root             wheel   374 May 29 17:27 Classes
drwxr-xr-x  35 root             wheel  1190 May 29 17:27 Commands
drwxr-xr-x  13 root             wheel   442 May 29 17:27 Headers
drwxr-xr-x  12 root             wheel   408 Jun  3 19:46 Home
drwxr-xr-x  45 _update_sharing  wheel  1530 May 29 19:00 Libraries
drwxr-xr-x  25 root             wheel   850 Jun  4 10:07 Resources
drwxr-xr-x   4 root             wheel   136 Jun  3 19:47 lib
narayana-rallabandis-macbook:1.5.0 narayanarallabandi$

So the default update tool which comes with glassfish would not work since the same has the command starting with ""$JAVA_HOME"/bin/java -Dcom.sun.updatecenter.home="$UPDATECENTER_HOME" -cp ....."

Execution will throw error ./bin/updatetool: line 13: /bin/java: No such file or directory
We can circumvent this by replacing "$JAVA_HOME"/bin/java " with "/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Commands/java" since the Java executable will be in the Commands folder of the JAVA_HOME

Wednesday Sep 16, 2009

Running Open MQ with Java CAPS Server and accessing the same in eManager

For running Open MQ as a seperate process and then hooking the same to the Java CAPS and monitor the same in the eManager you need to do the following things:

  • Download the Open MQ for the OS and start the Open MQ. This would start the MQ on the default port 7676.

  • Modify the domain.xml of the Java CAPS installation for the JMS to run as "REMOTE" instead of the default "EMBEDDED". We need to make modification in the following element

  • <jms-service addresslist-behavior="random" addresslist-iterations="3" default-jms-host="default_JMS_host" init-timeout-in-seconds="60" reconnect-attempts="3" reconnect-enabled="true" reconnect-interval-in-seconds="5" type="REMOTE">
            <jms-host admin-password="admin" admin-user-name="admin" host="narayana-rallabandis-macbook.local" name="default_JMS_host" port="7676"/>

  • Start the glassfish with Open MQ running as separate process...

  • Start eManager

  • Go to J2EE Section and add the Glassfish domain that is currently running.. You should able to see the Open MQ in the server section.

Hope this helps !!!..

Wednesday Apr 08, 2009

Glassfish Startup problem -- /etc/hosts entry

I had an opensolaris environment on which I was running GlassfishESB. Since I had to connect to a local Network I had to make some changes to the /etc/hosts file and add an entry to the same.

After that I tried to restart Glassfish it did not restart. It failed at the following point

ADM1079: Initialization of AMX MBeans started

It gave the following exception in server.log. I had to modify the hosts file to make the server start again.

[#|2009-04-08T15:57:28.501+0530|SEVERE|sun-appserver2.1|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;com.sun.enterprise.admin.server.core.JmxConnectorLifecycle@1ef3d12;com.sun.appserv.server.ServerLifecycleException: Cannot bind to URL [rmi://localhost:8686/management/rmi-jmx-connector]: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: localhost; nested exception is: Connection timed out];_RequestID=c39a90fc-8790-4b27-aa91-730bf7b8ba85;|Service com.sun.enterprise.admin.server.core.JmxConnectorLifecycle@1ef3d12 cannot be started! : com.sun.appserv.server.ServerLifecycleException: Cannot bind to URL [rmi://localhost:8686/management/rmi-jmx-connector]: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: localhost; nested exception is: Connection timed out]|#]

Monday Mar 16, 2009

Java CAPS tip on Open Solaris

I recently installed Java CAPS on Open Solaris 10. I observed that I could not access repository from browser.

I tried to look at the following in the process of debugging:

  • in the repository directory
  • tried to access localhost:12000
  • <hostname>:12000
  • <ipaddress>:12000

but all went in vain.

After a while of debugging I found that I installed punchin which erased the /etc/hosts file entries while installing the punchin client. After the entries are restored manually I could access the repository !

Hope this helps somebody who is having a similar issue.

Friday Feb 27, 2009


The latest version of  VirtualBox is released on Feb 16th. This blog item is right from the same box, I could use Windows Live Writer in Windows XP which is my guest system while the host system is Open Solaris.

The whole experience is truly amazing!!! You can have best of the worlds in each operating systems from single desktop..

Try it out today!

Thursday Feb 19, 2009

Day 2: Sun Tech Days - Hyderabad

Today's highlights from my perspective are

  • Matt Thompson's presentation on cloud computing -- Matt explained the bits and pieces of cloud computing, Sun's offering in cloud computing stack. The most interesting piece for the development community is how the computing going to transform the way we code. Project Kenai and Project Zembly.
  • Chck's presentation on Java FX, which is coherent, ordered and informative
  • Simons presentation was very informative on Java performance..

Project Kenai doe's just offer site for pushing in the code like sourceforge, but it offers the full development stage including desktop,offers for choosing OS, build environment, test environment all on the cloud apart from the development tools like Netbeans. This offers the developers to choose the environment they want to develop, test deploy with out paying a penny out of their pocket. Just have Internet connection and create a company with zero cost. Have a distributed team over the net use the Sun's cloud facility to host your idea.

Project Zembly is another innovation from Sun which gives the users the power to create the widgets for social applications and share them with their family, friends and the whole world. The demo by Vidya on stage with Matt proved that simple social application can be developed previewed just on the browser without any other paraphernalia like IDE, runtime to test on the developer's machine. So the Browser happens to be the dev place ..

And when we think of the possibilities which these 2 innovations can bring to the way we think about apart from other things to the software development its awesome!!!!

Out of the stalls from the students, I liked the one from MS Ramaiah college of Bangalore, which have done a POC on Network Management solution available on web services. I spoke to them regarding ideology of Network Virtualization in the Management paradigm.

Apart from that I had few good discussions with the attendees for the yesterday's session on Open-ESB. The questions centered around why should they choose Open-ESB while they have other alternatives also in open source. I would like to post the answers though in some other posts..

Evening entertainment is from Abhi which was simply scintillating and enthralling the crowed. I have some pics for you!



Wednesday Feb 18, 2009

Sun Tech days Day 1 at Hyderabad

Sun Tech days started today in a gala fashion today at HICC center defying the economic downturn. For Sun Hyderabad is important since the developer participation is resembles JavaOne the biggest developer conference in size, number of tracks its offering apart from hands on labs.

The presence of James Gosling for this event says how much important this event in India is for Sun. James delivered key note spoke on lot of technologies but the most interesting for me are the following in the following order:

  • Real time java -- because of the sheer technical challenges it poses like predictability. Just imagine how can you predict the Garbage collection in such a scenario or handling of thread priority ...
  • Ubiquitous computing and the power of Java
  • Java FX -- bringing the power of rich client experience that's much needed for Java plat form. The small game demo which he showed on his mobile apart from Chuck lee's another small presentation on FX again really were eye catchers...
  • Java 7 -- and what's coming there.

The crowd is still fantastic during these times and Sun I believe is very successful in pulling so much.. Kudos to the event organizers.

On a personal note I presented Open - ESB on Enterprise Track. Seemingly went well I 'll be posting the site so that you can download the preso!

The night party started with a wonderful performance from the trio (see below for pics)  and ended with a fashion show from Rahul's team which was received with enthusiasm from the crowd.



Glimpse of the crowed during the inaugural session


Father of Java speaking to Hyderabad Sun Tech Days crowed


The wonderful kids Siddhardh (11) on percussion, Raja Reddy on Guitar and Sastry on Casio

Wednesday Feb 11, 2009

Glassfish Portfolio Announced

Sun announced its Glassfish Portfolio which can be called its middle tier continuum yesterday. You can peek at whats there in that from the link: Sun GlassFish Portfolio - What's Inside

Though its a bit tough with respect what does it mean by each of the globes that are on the page currently, once you go through the details you can see that its almost akin to the previous JES stack. The additions being the ESB since the integration layer was not there previously and the communication server (SIP Servlet based). Apart from that it's  integrated web stack contains of popular open-source, Web-tier infrastructure
technologies such as Apache HTTP server, MySQL, memcached, PHP, and
Ruby optimized for the Solaris, OpenSolaris, and Linux platforms.

Some of the enterprise features like profiling with Enterprise Manager which comes with subscriptions (Sun offers for this portfolio flexible subscription-based pricing) .

Give it a try TODAY!!!

Tuesday Feb 10, 2009

A Week to go for Sun Tech Days at Hyderabad

The biggest tech event out side US for Sun is coming soon from 18th to 20th of February 2009.

For more information about Sun Tech Days and to view tentative agenda topics and registering for the event visit




Wednesday Dec 17, 2008

Integration Server Startup time issues

Its observed that when we develop applications on Java CAPS up till 5.1.3 the common size of the ear file happens to be 12 -15 MB. Its also observed that when we have normally applications more than 4 - 5 the domain startup time increases.  Generally we can not make any difference to the startup time of the domain.

The following are some of the tips which can possibly be followed to bring down the startup time.  You should not curse me if this doesn't work out smile_regular .


1. start the appserver in '-server' mode (JVM options). If this flag is not there, your app server JVM will spin trying to compile all the EAR code.

2. keep your Min and Max heap size the same (e.g. 2GB, what ever we have) to get more efficient heap size allocation and save on time.

3. Another thing to look out for is EAR file size... if all ear's have redundant jar's packaged within them, we can separate them and
put in /lib folder and not embedded in each EAR (class loading delay) --

4. Have you tried to deploy one app at a time and what effect it has on the startup time in case any specific app is taking much longer than
others? --- We can have some pointers here as to which application is taking more startup time.

5. Apart from above since these issues with respect to the performance needs to be seen in isolation we need to look at each of the ear with respect to the startup time. Since this can give a closure look at which application is causing the issue we can have a close look.

Why does the deployment take long time ? -- The application server a.k.a. IS is SJSAS 8.1 version. All the applications of the previous versions of the Java CAPS bundle the "rar" or the connector files with each of the ear file. Also the packaged applications used to create the resource connection pools etc. during the deployment time, which takes considerable time.

That said, I would recommend to move to SJSAS 9.1 for deployment since there has been lot of improvement with respect to startup time, resource pool management, cluster profile, performance etc.

I will cover moving to 6.0 in some other post believe me its simple.

Post your experiences with these options or any other options if there are any...

Monday Dec 01, 2008

How to run STCMS on new Glassfish as a Lifecycle module?

The question as to how to run the STCMS as a lifecycle module in my new version of Glassfish not the one bundled in the Java CAPS default Application Serveris answered in this post.

[Read More]

Saturday Nov 29, 2008

Where to look for the STCMS properties?

It would be helpful for the deploying fraternity if they know where the STCMS related properties and the data files are stored. Often it would be helpful in clearing the logs and also for debugging purposes.

STCMS by default will be installed in the Java CAPS installation in the directory glassfish/domains/domain1/addons/stcms/. This defalut installation folder will have the following subdirectories:

  • stcms1 (STCMS instance)
  • /stcms1/config (Where the configuration data is stored)
  • /stcms1/data (where data files are stored)
  • /stcms1/data/backup (where the backup data is stored)

The config folder in the above directory structure would contain the configuration files.

The file contains the details of the stcms installtion. This contains the property where the stcms db files are store. For example in the above case : STCMS.DB.Path=D:/EAITools/JCAPS6/appserver/domains/domain1/addons/stcms/stcms1/data. If we can have this on SAN drive we can probably achieve the Active/Passive clustering in case of STCMS too. This configuration need to be tested though.

What I mean by Active/Passive clustering here is: The standby instance of the STCms server must be started in a fail-over situation. The STCms service should be available but the client will need to reconnect.

It also contains few other propterties which could be of use for stcms tuning like segment size cache size etc.. The default values are STCMS.DB.BlockSize=0 and STCMS.DB.CacheSize=1024. We can modify these properties to suite to our need.

The data by default is stored as .dbs files (STCMS.DB.Suffix=dbs) and the same can be changed by changing the extension in the properties file.

Thursday Nov 27, 2008

Using latest NetBeans with Java CAPS Repository

For people working with the Repository version of the Java CAPS the bundled NetBeans is 6.1 if you want to use any NetBeans or play around with the latest version 6.5 here is the way.

1. Get the following .nbm files from the repository:

  • com-stc-log4j.nbm
  • com-stc-modules-repoupdatecenter.nbm
  • com-stc-repository3rdparty.nbm

2. Go to the NetBeans tools --> plugins and select downloaded tab and install the nbms. If needed restart the NetBeans so that it shows the repository.

3. Edit the CAPS Repository update center with your repository URL : Something like http://localhost:12000/repository/JCAPS6repository/data/files/InstallManager/catalog.xml.

[Trouble Shooting]
If you are unable to see the the nbms in the Available Plugins tab then try the URL in the browser it should show the XML for module updates. Normally you can see the repository URL from the repository while running. For the above catalog.xml it is http://localhost:12000/JCAPS6repository.

You need to remember whats the repository name you have given while installing the repository.

4. Once you see the nbms in the Available plugins section install those nbms and restart the NetBeans.

You are all set to use the Latest and greatest NetBeans with the Repository based Java CAPS. The value add I saw here is like we will have the latest features and other services like load generators etc with other improvements in the latest version of 6.5.

I observed with the previous versions if I update in the same way it doesn't used to show up the CAPS Component Library because there were some issues in the Apache loggers. But with the latest version of NetBeans 6.5 this issue doesn't seem to be there any more.

So enjoy the latest version of Design Time and let me know your feedback !!!


I was part of Sun R&D in Java CAPS and later Glassfish ESB. I moved from R&D to Consulting. I am currently working as a Solution Architect in Oracle Consulting Services (India). I was sharing my experience w.r.t. Java CAPS and other technologies during Sun period. Now in Oracle world I share my experiences with Oracle FMW product line as well as other Oracle Technologies and products.


« July 2014