I got tired of updating a dozen applications at once, across development, test, and production systems, from the WebSphere admin GUI.
So, here's a very simple wsadmin script, updateApp.py , based on Update an existing Enterprise A...

This script will iterate through a list of name/URL pairs and create new Cell-level URL Resources for them.
Yes, it might be nice to have it take a command-line pair as well. And/or a command-line file that contains pairs. And support creating the...

How to collect server hung or performance
issues information for OMNIbus WebGUI
The heap and thread dumps are essential when it comes to troubleshoot memory
leaks issue. The heap dump provides a snapshot of the JVM’s memory. The thread
dump provides...

While attempting to answer a question on StackOverflow , I experimented a little with some wsadmin commands , so I thought I'd record what I discovered. (I work with the Jython, rather than JACL, versions of the commands mostly because I like the idea of...

Hello everyone, I had some test automation I was working on ... and I needed to gather a good bit of WebSphere config information and publish it in a form that my automation could use. There were numerous reasons why wsadmin (a good solution in general) was...

Another quick post relating to developing script packages for IBM Workload Deployer, but also applicable to anyone using wsadmin . If one of your commands in a wsadmin script takes a long time to complete, you might receive a timeout from wsadmin which looks...

Just a quick one here, but I recently encountered a situation where we received a java.lang.OutOfMemoryError whilst developing a script to perform an automated installation of a large EAR file (>100mb) using wsadmin . In a standalone application server...

Still manually installing your builds? Want to automate that process and others, but low on free cycles to study wsadmin? No worries - here's a shortcut. WebSphere has a handy Command Assistance feature that will display the equivalent scripting command of the...

I sometimes need to set a custom JVM Property for one or more Application Servers and dislike the tedium of setting them one-at-a-time through the console.
Here's a Jython script for wsadmin to add a JVM Custom Property to a specified Application Server, or...

Texting can be fun
Sorry for the brief
hiatus , but I had
the opportunity to take a class, and my time to blog was significantly curtailed.
JTextField Revisited
The
other day ,
we took a quick look at a simple text input field (i.e.,...

Stop, or I'll shoot!
So far, we've seen a few of different things that we might be able to use in
a Jython Swing application, but lots more remain. Today, let's take a different approach.
Scripting from Scratch
In April, I had an article...

Lights! Camera! Action!
One of the questions that frequently arises is
Where do you find the details about the different Swing components?
Rather than using Google to find the documentation for a particular Swing
component, I make use of a...

Converting KeyEventDemo
Last time
we took a look at using a KeyListener , or at least a couple of the
KeyListener methods to "watch" a text input field. At the end of the article, I
mentioned the possibility of converting the KeyEventDemo...

Stroke, stroke, stroke...
Yesterday ,
we saw how to:
Add a JTextField component, and
a JLabel , component to the JFrame .
Define how to position components in a BorderLayout ,
Associate an ActionListener to be notified when the user...

This is a Text, this is only a text ...
Up to this point, we haven't had any way to get user input to the application.
Oh, OK, clicking a button is input, of a sort. But it is very limited. What
we need to do in order to make our programs more useful...

Getting the layout of the land
So far, our applications have been really simple. We've had applications that showed
Nothing
A message HelloWorldSwing
A button using text You're missing a button , and one with an image Do you like my shiny new...

Do you like my shiny new button?
Yesterday ,
we saw how easy it was to add a button to our application. Today, let's take a
closer look at the
JButton
and see what else we can do with it.
Constructor's ahead!
One of the really nice things...

Light's ... Camera ... Action!
So far, our applications have been ... boring. In fact, it wasn't until yesterday that we even saw anything at all within our application window. And then, it was only the wonderfully exciting Hello World message, which...

Converting (translating) from Java to Jython
I have found it much easier to learn a programming language by reading code. Lots of code. As I read, I do my best to try and understand why it was written the way it was. I know that I'm starting to understand...

The event-dispatching thread
So far, we have seen trivial examples. What makes them trivial? Well, basically, they are too simple. Huh? What does that mean? Well, if you look elsewhere for Java Swing examples, almost all of them will include some mention of...

Why do we use a JFrame?
The previous examples all use a javax.swing.JFrame. Why?
Well, the simple answer is that it's one of the few that is available for us, and it provides a framework for the work to be done. To understand this better, we need to...

Making Jython Swing scripts more useable by wsadmin
Previously, our wsadmin Jython scripts were executed using an interactive wsadmin session. Either by:
Entering the script line by line, or
Using a call to execfile() to execute the script
...