Monday Jan 10, 2011

New video - Closed network setup

If you're interested in leveraging the GlassFish Update Center feature while running inside the firewall, we have a new screencast covering setting up an IPS server inside your company network, populating it with GlassFish packages and hooking existing or new installs of GlassFish into it.

This follow-up to an earlier post on Update Center benefits includes the portion on getting the packages as an archive from My Oracle Support, the successor to sunsolve.

This original screencast, and this other one offer brief intros to the Update Center for managing GlassFish features.

We now have 400+ subscribers and 65 videos on the YouTube GlassFish Channel. Thanks for your support!

Sunday Oct 31, 2010

JavaEE 6 SDK - Now Bundled with Java SE 6u22

Oracle (like Sun) provides the Java EE 6 SDK in 4 main bundles: full or Web Profile, and with or without the JDK bundle. We just updated the JDK bundles to reflect the latest JDK: JavaSE 6u22, which includes performance improvements and security vulnerability fixes.

Although the JDK software is only available in the +JDK bundles, the top level about file (e.g. "about_sdk_web.html") has been updated and all bundles are impacted.

The effort to get this update depends on how you install it and whether you are downloading from scratch or not.  For example,  if you have the previous version and use the GlassFish update center, you will only need to update the module that has that about file; see snapshot.  And, if you are not using a +JDK bundle, that's all there is to the update.

For more details of the update process, see this older and longer entry describing the situation for JavaSE 6u21.  Related posts are tagged updatecenter.

PS: At the time of writing this note, the JavaEE SDK download page still seems to have the u21 bundles, but the Update Center repositories have already been updated.

Tuesday Sep 07, 2010

Java EE 6 Update 1 with JDK 6 U21 - and Using the Update Tool

We have released new Java EE 6 SDK w/ JDK 6 bundles using JDK 6 U21 (the good one, not this one). All bundles, including the non-JDK bundles which have not changed since June 17, 2010, are now at OTN; check the SDK download page, or navigate directly to the SDK w/ JDK bundles for Web Profile and Full Platform.

All the IPS packages have been refreshed; those for SDK w/ JDK have the new JDK components while those for the SDK w/o JDK have changed only very slightly. Since I normally use a Mac, I use an SDK w/o JDK; in that case, the only file changed is the about_sdk.html in the sdk-branding IPS component (or about_sdk_web.html in sdk-branding-web for web profile).

If you have installed the Java EE 6 SDK and enabled its Desktop Notifier, the update machinery will (eventually) detect the new packages, which will activate the following sequence:

First you will see the notifier; you can either dismiss it, or you can click on it to continue the update process

Next you will be presented an overview of the available updates.  There may be more than one, depending on what you have installed in your machine. For each one, you will be shown the size of the download (3.4KB in this case - since it is just one file in one component) and you will be asked to accept the license.

You can also manage the details for the installation process... and you are given an opportunity to look at the Ads :-)

The next step is the actual download, and a report on its completion.

At this point you can ask for details of the installed software. For example, you can go look at what components have been installed and their properties, or what AddOns are available, or what repositories you are using.

As you can see, this is all very painless. The upgrade is almost a no-op in this case but the same exact process will be used for larger updates and, since IPS underlies all the GlassFish 3 distributions, this also applies to the Commercial Distributions from Oracle.

The Oracle official documentation has very good explanations for all these tasks (thanks, Scott!); see Chapter 10: Extending and Updating GlassFish Server, specially Upgrading to Oracle GlassFish Server from the Oracle GlassFish Server Open Source Edition and Updating Installed Components. Commercial patches are installed in exactly the same way - which, compared to the previous approach, has customers really happy.

Sunday Jul 25, 2010

Closed Networks and the GlassFish Update Center

One of the best features about all the versions of GlassFish 3 is how easy it is to update it through the IPS-based Update Center. The same GUI and CLI tools can be used to upgrade from 3.0 to 3.0.1, to Add or Remove components and to switch from the Open Source to the Oracle's Commercial release.

The same machinery is also used to install Commercial Patches, where it provides an experience that is much easier than in v2. With the transition to Oracle it's taken a bit to get the v3 patch pipeline, but eventually you will see the same frequency as with the v2 patches.

This all normally works through the standard repositories at Oracle but sometimes your computer has limited internet connectivity, so, what do you do? The solution is to create a local repository. This is actually Very Easy to Do (tm). And a local repository is also useful for many other things.

As you noticed if you followed the links, all these topics are now described in the, recently updated, Administration Guide; check out the Extending and Updating the GlassFish Server.

Tuesday Dec 15, 2009

Javadocs and Tutorial Available at GlassFish Update Center

ALT DESCR

The GlassFish documentation team has uploaded the javadocs and the tutorial information to the Update Center and it is available through the Update Tool. Paul describes the actions in his note. If you want to check out the screenshots, check out:

  • Updates Detected (img)
  • You will be asked to shut down the server - you can do that w/in the admin console.
  • Then go start the UpdateTool - manually, can't launch (yet?) from the admin console.
  • Select the packages to install (img)
  • Then you will see the Progress Bar of the UT (img)
  • And then you can go point your browser to the Tutorial and the JavaDoc pages that have been laid up in your disk.

Still some work to do to improve the flow of the experience, but this is moving in the right direction.

Attentive readers will notice: (a) There used to be a way to run the update tool within the admin console while the server was running, but that was not safe, so it was removed relatively late in the v3 cycle. (b) The update center repository only has Volume 1 (basics) of the tutorial; we will push Volume 2 there "soon", in the meantime you can get it from here.

Ah! And plenty of documents at docs.glassfish.org, and the javadocs are also available here, thanks to Rajiv.

Friday Nov 13, 2009

Updated Repositories for GFv3 Prelude

GlassFish v3 is not just modular but the components can be updated through IPS-based UpdateCenter machinery. The Update Center team has been evolving tracking the IPS changes and adding refinements of their own; newer releases, like GFv3Preview, have been running recent UC, but the repositories for GFv3Prelude were running an older version of UC.

Last week the Glassfish team pushed Update Center Toolkit 2.2u2 to the Prelude repositories. In normal conditions you should not notice the change but if you visit the repository directly you will see new graphics and additional facilities (like package search) plus improved performance and metrics.

GFv3 FCS is around the corner and we are seeing very high interest in the release. At that point we expect the bulk of the GlassFish downloads to switch to being served from the IPS repositories - and we will find out if our capacity planning has been accurate :-)

Wednesday Sep 02, 2009

GlassFish v3 Preview Updated

ALT DESCR

It took a bit longer than anticipated, but we have updated the repositories behind GlassFish v3 Preview (STABLE from glassfish.sun.com). You are most likely to notice this through the see new SoftwareUpdate tool, but you might also see it through the GUI UpdateTool or the embedded UpdateTool, or do it manually via the CLI.

Full details in Alexis writeup and Abhijit's announcement.

The whole thing has been working very well for me in recent builds but this is software, so please let us know if you experience any issues.

Friday Aug 21, 2009

News from the Web Stack: Update Center install and Django

IPS WebStack screencast

Jeff's blog entry on installing Web Stack using IPS (a new feature in 1.5) now has a screencast version (4 min. ogg format, use Firefox 3.5 or VLC 1.0), courtesy of Brian. The GlassFish Web Stack (see recent 1.5 release) uses the same packaging technology as the GlassFish App Server and as OpenSolaris (where the technology initially came from).

IPS, also known as pkg(5), offers a packaging system and tools (both command-line and graphical) to install and manage images. Check the IPS tag for more coverage (mainly applied to GlassFish AS).

Earlier in the week Brian had also posted a detailed entry on how to setup Django using WebStack on Solaris, together with a screencast (also in .ogg format). This one uses the "native" Python implementation and the Apache web server. For details on how to run Django with Jython on GlassFish, visit Vivek's blog which has all the details for you (the GlassFish v3 update center now has a jython container available as an add-on).

Also don't forget that Hudson is now part of the GlassFish Web Stack and thus now a supported product.

Sunday Aug 09, 2009

Get Ready for the Software Update Tool

We have been converting our distributions to leverage the new IPS format. Recent conversions to IPS include OpenMQ 4.4 and some distributions of GFv2.1 but the distribution with the largest volume remains GFv3 Preview.

The current release of GFv3 Preview uses pkg.sun.com/glassfish/v3/stable/. These packages were last updated before J1 (except docs) but we will soon push out an update based on an stable promoted build and when that happens you are likely to encounter the New SoftwareUpdate Tool.

ALT DESCR

The SoftwareUpdate tool provides a simplified interface to the standard UpdateTool, normally activated via a PopUp Notice. A single click Starts a Search for all the Apps that can be updated. Once Completed, choose the Apps you want to update, accept the license terms, and install.

The SoftwareUpdate tool will report on the progress of the install: [1], [2], [3]. Once Completed you are done. The underlying machinery is the same used in the UpdateTool, and you can peek into the details, both before installing and after installing, but the SoftwareUpdate experience is faster and simpler, and more appropriate for most users.

IPS is one of the key new technologies that we are leveraging for GlassFish v3; related entries are tagged IPS. If you want more technical details, Christophe has a very good Presentation as part of the IPS Best Practices wiki. Also check the UC2 Blogs.

Thursday Jul 23, 2009

Jersey 1.1.1 EA - Now in an Update Center Repository

ALT DESCR

Jersey 1.1.1-ea (see Announcement) is now available at the GlassFish.org DEV Update Center repository. This means you can update your GlassFish to this development module with a couple of clicks.

Follow the same instructions as for the latest Mojarra/JSF to discover and install the module; see our previous post for details.

The Update Center technology and repositories leverage IPS and GFv3's modularity (built on OSGi) to make updates, upgrades and additions very easy. The technology supports multiple repositories, local, intra-net, or remote and can be used not just to deliver updates to GlassFish but also all sorts of functionality on it, from Sun, its partners, your partners, your group, your IT shop, etc...

This is a significant change to the way we currently address these tasks and we are still improving all the pieces of this chain. I'm considering organizing a couple of online webinars on the topic later in the summer to get more details out but also to get your feedback and do some additional brainstorming.

Sunday Jul 19, 2009

Mojarra 2.0 beta2 Implements PFD for JSF 2.0

ALT DESCR

There is a new beta for Mojarra 2.0, the RI of JSF 2.0 (relnotes, news, downloads).

Mojarra 2.0 is bundled in GlassFish v3 and the new release of Mojarra is included in recent Promoted Builds; an alternative is to use the Update Center and only update JSF.

The Update Crenter is accessed through an update tool; either the one bundled in the GlassFish console or the unbundled one. To do that, first ensure that you have http://pkg.glassfish.org/v3/dev as your preferred repository and then check on available updates. You will get a long list; you can then unselect all the components (using (Command-Modifier)-U on my mac) and then select JSF only. Then you just need to install the new packages.

Thanks to Jim for the tip. Ah!, also note that Mojarra can also be used in other containers; install and configure it manually.

Thursday Jul 02, 2009

GlassFish Adoption Report for May '09

ALT DESCR

I've posted the May 09 GlassFish Adoption Report. Some growth from April 09, but not back to the March 09 peak; probably some seasonal drop, possibly some impact from the Oracle announcement.

The full report includes the usual download data for run-time and tools bundles, a comparison with JBoss downloads, GeoMap, Registration and Update Center.

I expect to post the June report next week.

Sunday Jun 28, 2009

How Things Work - IPS and GF v3 Packages, continued

Alexis has posted additional entries in his GlassFish à la carte series. Part I and Part II (also see Review) showed how to get a minimal distro and add components to it, including some containers; Part III shows how to create a Custom Layered Distro from GlassFish v3 using the IPS tools.

The distro only bundles pre-existing components; enough to run an ejb/jersey sample. I think that this layered distro arrangement may become quite common for distribution of packages for GFv3 and it nicely shows the power of the modularity in GFv3, IPS and the embedded IPS support in GFv3.

ALT DESCR

Alexis' examples show how to create the new package, add it to your own IPS repository, and then create a new domain to run the EJB-Jersey sample. The IPS setup is very easy thanks to the documents and binaries from IPS Best Practices project, plus the Package Prototype from Alexis.

To learn about IPS, check out Producing and Maintaining Packages (specially Christophe's Prezo) and MakePkgs. All the binaries you need are included in the IPS Toolkit.

The whole thing works like a champ; excerpting some of the key commands from my shell trascript:

# Created a directory for my local repo % pkg/bin/pkg.depotd -p 10001 -d /Users/pelegri/Software/my-repo # port no. and store dir. # downloaded package prototype and renamed it as pkg_proto_epll.py % cat >LICENSE.txt # need a LICENSE file! % pkg/bin/makepkgs -s http://localhost:10001/ -b ../Sample ../Sample/pkg_proto_epll.py % bin/pkg set-publisher -P --enable -O http://pkg.glassfish.org/v3/dev dev.glassfish.org % bin/pkg set-publisher --enable -O http://localhost:10001 localRepo % bin/updatetool # screenshot % bin/pkg install sample-distro # pretty much all done % bin/asadmin create-domain --instanceport 8080 --adminport 4848 mydomain % bin/asadmin start-domain mydomain # download the jersey-ejb sample WAR file % bin/asadmin deploy ../../jersey-samples/jersey-ejb-1.1.1-ea-SNAPSHOT.war % open http://localhost:8080/jersey-ejb/ # screenshot

Saturday Jun 13, 2009

How Things Work - IPS and GF v3 Packages (GlassFish à la Carte)

You probably know that the new, modular, GlassFish v3 is built from (OSGi) components that can be updated using IPS. We assemble these pieces into ready-to-go JavaEE 6 Web Profile and full JavaEE 6 bundles but they can also be used to create à la carte distributions, as Alexis shows in his latest posts.

I recommend you to at least try the first example to get a better understanding of how all these technologies work together. The beauty of GFv3 is that everything is very small and fast - I'm writing this entry from a public WiFi site with pretty moderate connectivity and I'm spending more time waiting on BSC than running the example.

ALT DESCR

Part I starts with a IPS toolkit image from IPS Best Practices. The toolkit image is 5MB (most of it is the python 2.4 runtime) and has no GlassFish in it. From there, the next step is to download the GF v3 nucleus (2.41MB), which automatically brings in Felix (564KB), Grizzly (943KB) and HK2 (565KB); the IPS packages include the relevant OSGi modules.

The rest of that entry shows how to install the updatecenter IPS pkg (that is the biggest package because of python graphical toolkit) and how to use it to add the management pkg, and then creates and starts a domain.

Part II in the series shows first how to install the GFv3 Web Container; then it mirrors Jerome's recent entry on GF v3, OSGi and Spring (that portion gets a bit complex and I see that Jerome already published a simpler version). Part III will continue the main theme of creating an a la carte GF v3 that has the components you want and is yet extensible.

Wednesday May 13, 2009

GlassFish Adoption Report for Apr '09

ALT DESCR

I just posted the Apr'09 report on GlassFish Adoption. All indicators are positive but a bit down from March 09; most of the drop seems seasonal (spring break) but there might be some impact from the IBM rumor and the Oracle announcement.

The full report includes the usual download data for run-time bundles, tools(+run-time) bundles (second month for the Eclipse Bundle) and a comparison with JBoss downloads. I also report on data from the GeoMap, Registration and Update Center.