RAD, WAS, and profiles

This week and last I’ve been teaching an EJBs with RAD6 class.  Now, the installation of RAD in the training centers was done the usual way.  That means they installed it on one machine and then distributed the image to all the others.

Normally that’s fine.  The problem with doing that with RAD is that installing RAD also installs the WebSphere Test Environment, which now is a fully functional version of WAS6.  One of the major changes between WSAD 5 and RAD 6 is that the test environment is no longer customizable by workspace any more.  Instead, the WAS environment remembers every app deployed to it from any workspace at any time.

That got me in trouble in Westborough for two reasons.  One is that I had deployed a series of my own sample apps during the servlets and JSPs class, but when I deleted them at the end of the week, WAS though they were still there and complained during the EJB class about missing EAR files.  Lovely.  Eventually, when the server started up I was able to access the admin console and undeploy them.

The more fundamental problem, however, is that the installation of the test environment builds a node whose name is based on the server name.  That meant that both last week and this week, all the machines had nodes with the exact same name.  Holy conflicts, Batman.  As usual, the problem showed up when we started trying to do JNDI lookups and threw ServiceUnavailable exceptions.
Last week we did some uninstalls and reinstalls of the product, which helped, but couldn’t be the right solution.  This week we didn’t have the installation files at all, so I had to find another way.

At long last, I found it.  That’s what profiles are for.  By creating a brand new server profile, a new name is generated based on the current name of the server.  Everyone was able to create a new profile, deploy apps to it, and run everything cleanly.

Boy I wish I’d known about that a long time ago.  At least now I get it.  I’m not sure if I want to recommend a different installation process or just assume that in each course we’ll create a new profile and move on.

The definitive answer is no doubt in the IBM set-up docs for their server-side classes.  I’m certified to teach them, but haven’t looked at the set-up docs yet.  I think I may have a set at home, though, that I got during the enablement class back in May.  I’ll have to check.  I seriously doubt that any training center is going to want to install RAD on each machine individually, though.

About Ken Kousen
I am a Java Champion and the author of the books "Modern Java Recipes" (O'Reilly Media), "Gradle Recipes for Android" (O'Reilly Media), and "Making Java Groovy" (Manning), as well as over a dozen video courses at Safari Books Online. I'm a regular member of the No Fluff, Just Stuff conference tour and have given talks all over the world. Through my company, Kousen IT, Inc, I've taught training courses to and worked with thousands of developers.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: