Scorpion's Corner
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
/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0
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

Posted at 06:07PM Sep 18, 2009 by Narayana Rallabandi in Sun | Comments[0]
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"/>
</jms-service> - 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 !!!..

Posted at 11:21AM Sep 16, 2009 by Narayana Rallabandi in Sun | Comments[0]






