Tuesday Oct 07, 2008
GlassFish is
everywhere...
from
Harvard
to
Hyderabad!
This time, it was
GlassFish@Chennai!!
This blog summarizes my experience of delivering a tech talk on
GlassFish to
Wipro employees in Chennai, on Sep 29th 2008.
(And for those who don't know,
Sparky
is the mascot for
GlassFish)
What I Covered
- An intro
GlassFish and Java EE
-
GlassFish v2 features and cool new technologies like
Shoal/GMS,
Project Metro, and
OpenESB.
- Demos: Creating a cluster, Adding cluster support to domains,
GlassFish with NetBeans...
- An introduction to
GlassFish v3 and new features
The talk was attended by 58 Wipro engineers who are working on various
Java EE technologies. Some of them had used
GlassFish and some of them
had only heard of it. There was a lot of interest about
GlassFish and
other projects such as Shoal and OpenESB.
A couple of the many questions I was asked
1) How do I change the load balancer policy (the algorithm that the
HTTP load balancer uses to distribute
load to the server instances in a cluster)?
Use the
asadmin
create-http-lb command and define the --lbpolicy option as
user-defined. Specify your load balancer policy in the --lbpolicymodule
option.
2) How does the monitoring/callflow output compare to the jProbe
profiler? What monitoring utlities are available?
See
here
for a comparison of
GlassFish Callflow vs other profilers. Any tool
that works with JMX data should be able to monitor
GlassFish. You can
use
JConsole
(bundled with JDK). Here's how to use
NetBeans
profiling tool and jprobe with GlassFish v3.
Pictures
With apologies for the poor quality...
The Audience
Stephan from Wipro introducing me
All in all, it was a great experience! Thanks to my managers and to
Sun Learning Services for the
great opportunity!
Wednesday Apr 16, 2008
If you are deploying web applications, you will most often want to provide "friendly" URLs to your end users. You do not want your end users to be typing long URLs to be able to view web pages.
GlassFish or Sun Java System Application Server helps you easily accomplish URL redirection even
without using the load balancer and without making any
changes to your web application.
This
article on
BigAdmin explains URL redirection in
GlassFish or Sun Java System Application Server quite clearly.
Friday Apr 11, 2008
I was reading about the persistent
Baital (or vampire) who continually caused difficulties for the legendary king
Vikramaditya with his puzzling tales and I was reminded that I should write the second part to
my earlier blog about recurring problems in GlassFish.
These two installation-related problems pop up really often!
Most Common Problems and Solutions
| Problem |
Solution
|
On Linux or Solaris, GlassFish or Sun Java System Application Server installation fails. Error message says the installer could not create the default domain.
|
Set your environment variable LC_CTYPE to "C".
|
GlassFish or Sun Java System Application Server installer freezes and does not allow you to continue installing after you provide the installation path.
|
This problem occurs because of a previous unclean/partial uninstallation. or failed installation. The solution is to delete Application Server-specific entries from the productregistry file:
* On Windows, the productregistry file is usually at c:\Windows\system32\productregistry. Do NOT delete this file. Search for all application server-specific entries and remove them.
* On Solaris, run /bin/prodreg and uninstall application server.
* On Linux or other non-Solaris Unix systems, the productregistry file is at var/tmp/productregistry. Delete all application server-related information.
|