Thursday Mar 22, 2012

A tour of the GlassFish 3.1.2 DCOM support

While we've mentioned the DCOM support in GlassFish 3.1.2 several times before, you'll probably find Byron's DCOM blog entry to be useful if you're using Windows as a deployment platform for your GlassFish cluster.

ALT_DESCR

Byron discusses how DCOM is used to communicate with remote Windows nodes participating in a GlassFish cluster, what Java libraries were used to wrap around DCOM, what new asadmin commands were addd (in particular validate-dcom) as well as some tips to make this all work on your specific environment.

In addition to this blog post, you should considering reading the official product documentation :
Considerations for Using DCOM for Centralized Administration
Setting Up DCOM and Testing the DCOM Set Up

Monday Mar 07, 2011

GlassFish 3.1 SOTD #7 - Clustering Infrastructure

In this seventh post of the SOTD (Screencast Of The Day) series following the release of GlassFish 3.1, here is Tom's Clustering Infrastructure in GlassFish 3.1.

In this 7-minute demo Tom covers the use of local or ssh commands to create remote node and instances grouped in a cluster.

Tom also demonstrates deployment with a single command of applications to that cluster showing how cluster provisioning and application deployment can be fully carried out from a central location using the command-line but also how the Web Admin console offers the same set of features in a graphical environment.

To read more about the clustering infrastructure in GlassFish 3.1, you should check out the High Availability Administration Guide documentation (of course!) but also read this new "Clustering in GlassFish Version 3.1" article on the GlassFish site.

This screencast is hosted on the GlassFish YouTube Channel.

Wednesday Mar 02, 2011

GlassFish 3.1 SOTD #3 - From install to cluster in 10 minutes or so

In this third post of the SOTD (Screencast Of The Day) series following the release of GlassFish 3.1, here is Anissa's Centralized Administration in GlassFish 3.1.

This 11-minute demo shows :
• the installation of GlassFish 3.1
• the configuration of remote clustered instances (via SSH)
• the web admin console to configure the cluster and instances
• deployment of an application to the cluster
Very neat!

This screencast is hosted on the GlassFish YouTube Channel.

Sunday Feb 13, 2011

GlassFish deploy using REST. Get it? No, Post it!

The RESTful admin interface for GlassFish was introduced with the release of version 3.0, back in December 2009 but it seems that most people still see it as a monitoring tool only. Jason has just POSTed a blog entry on how to deploy applications to GlassFish using cURL to prove it's more than that.
To explore many more possibilities, just point your browser to http://localhost:4848/management/domain/

Original photo from http://www.flickr.com/photos/neezhom/4323903163/

While this entry details the options for a proper POST request with cURL to deploy or undeploy a WAR file, any HTTP client will do and that is what makes this RESTful admin interesting - there is virtually no software to install on the client admin side. In GlassFish 3.1, this feature has been enhanced both in terms of API (well, URI really) and implementation.

If you add to the mix the asadmin CLI, JMX, and the often-appraised web console, you can really pick your weapon of choice!

Tuesday Dec 14, 2010

To ssh or not to ssh? (with GlassFish 3.1)

ALT DESCR

With GlassFish 3.1, a good deal of the centralized administration (one of the corner-stones of clustering) seem to depend on the use of SSH. In a recent blog post, Joe Di Pol discusses the benefits of relying on SSH but also ways to work around it if your environment doesn't offer easy SSH configuration.

The blog is really a technical article that walks you through the basics of SSH if you're not fully familiar with it yet, and how to set it up (including the authentication part) on environments such as windows where such things don't come as easy as on other operating systems.

One of the neat things ssh enables is remote installation of GlassFish instances (asadmin install-node) and nodes (asadmin create-node-ssh). It also covers how you can do without SSH and yet still be able to talk to remote instances. So be sure to bookmark Joe's post if you're at all interested in GlassFish clustering.

Tuesday Aug 24, 2010

GlassFish RESTful administration progress in 3.1

ALT DESCR

Complete administration, from web console to rich command line (asadmin) has always been a strong set of features in GlassFish and often a key differentiator versus other application servers.

Jason Lee takes you in his blog entry through the basics and the recent development of a more recent administration feature - the RESTful admin interface.

As the name implies this feature exposes administrative and monitoring resources to HTTP clients with responses served in XML, HTML or JSON formats. Pretty much anything you can do with the web console or asadmin, you can do with this interface - observe pool usage, create data sources, deploy applications, etc.

Jason explains how this is all being enhanced in the current development of version 3.1 with dynamic instrumentation using asm and how you can use the __debug HTTP header for pretty-printing. Keep an eye on Jason's blog for more advanced topics. Grab a recent promoted build and try for yourself!

Thursday Sep 17, 2009

Elvis... or Mort? Monitoring and Admin Commands in GlassFish v3

ALT DESCR

I've been enlightened. A while ago - I just checked, it was actually 2006! - I read Cay's Elvis Meets GlassFish and I thought it was a cute reference to The King. Then yesterday I noticed that Byron's Mort Learns Monitoring and Administration Commands and I thought it was about Terri Prachett's Mort...

Well, turns out I was wrong and they are about Mort, Elvis and Einstein, which are personas for developer classes that were used at Microsoft (we had our own back in DevPro); check out Wesner Moise's note, Nikhil Kothari's explanation and Jeff Atwood's update...

So, now that I've been educated, check Byron's posts for Mort, the opportunistic developer:

Mort Learns JDBC
Mort learns JDBC Realm Authentication,
Mort learns Monitoring and Administration Commands

PS. Does anybody know where "Mort" comes from? The other two are clear, even to a guy that was not born in the US :-)

Wednesday Aug 19, 2009

Updated GlassFish v3 REST interface

Browser-based REST management of GlassFish

This is yet another update on the work going on in GlassFish v3 to provide a REST interface for management and monitoring. This time, Rajeshwar announces the availability of HTML rendering. This makes for a nice and simple interface for navigating through the rich set of monitoring data as well as for reading and modifying the GlassFish configuration, including deploying applications. Previous entries introduce the feature and cover the role played by Jersey.

If you want to try it for yourself, make sure you use a recent GlassFish v3 build (see Rajeshwar's entry or wait for promoted build 60) enable monitoring (set the appropriate sub-system level to LOW or HIGH). Also of interest is Ludo's recent and short presentation from Jazoon which introduces the REST interface feature and shows how to use a JavaFX client to use it (includes a demo too).

For the Mac OS users out there, this does not work in Safari because Safari prefers XML over HTML. So use Firefox instead. Of course you still have the option of using either cURL or wget which I'd argue makes GlassFish quite cloud-friendly (no ssh required).

Saturday Jun 06, 2009

GlassFish v3 - Platform Services and Remote Restart

ALT DESCR

GlassFish v3 includes all the benefits from its Java EE 6 compliance and its modular, services and OSGi-based design, but it is also the opportunity to address a number of long-standing RFEs and issues that were to hard to address on the old v2 architecture.

Byron recently reported on two of these RFEs. The first is Platform Services Support: it is now possible interact with Solaris/OpenSolaris SMF and Windows Services. Check Byron's writeup and give us feedback so we can try to incorporate it in our final September release.

The second feature is on the ability to do Remote Server Restart via the CLI or an HTTP-based request (I need to check with Byron if the feature made it into the admin console).

Check these out, and please give us feedback so GlassFish v3 is as useful to you as possible.

Monday Mar 16, 2009

Web Admin Console - feedback wanted

The web admin console is often mentioned (in our "stories" for instance) as a strong feature of GlassFish but the team doesn't want to stand still and is looking at evolving the console as part of GlassFish v3 (due later this year) and is asking for feedback.

The expected benefits are a more modern look and feel, bookmarkable pages, better performance, and a more extensible design to allow for customizations and more community contributions. Feature-wise, the document discusses deployment of non-war artifacts, Scripting support (monitoring of the jruby container for instance), grizzly configuration and more.

Feedback is expected before March 23rd, 2009 and should be shared on the GlassFish Forum. This has an impact on more than just GlassFish App Server so if you're a WebSpace user, a GlassFish ESB user, or an ISV building on top of GlassFish, make yourself heard!

Wednesday Jun 14, 2006

Running GlassFish on Port 80 on Solaris 10

Solaris Logo

Pretty much everybody who uses Unix has had the problem of having to run the AppServer as root just so it could have access to port 80. But Solaris 10 has a very simple solution to this problem, and Snjezana will show you how the usermod command solves this problem.

Check Snjezana's blog. Solaris 10 to the rescue!

Tuesday Feb 28, 2006

GlassFish Domains Explained

Diagram of Domains

Kedar explains the concept of an administrative domain in GlassFish as well as some of the motivation for the design. Great description and screenshots.

Domains show up early in the GlassFish QuickStart Guide; hopefully this blog will provide some context. BTW, Abhijit also mentioned recently that he was thinking of explaining the "why" of domains.