↓ Skip to main content

WebSphere Application Server

Messaging Administration Guide

·1 min
I’ve largely given up posting links to interesting content on this site - see my delicious feed for that. However, many of my original posts related to messaging and WebSphere Application Server and hence I suspect a reasonable proportion of those who stumble across this site are interested in that subject. Consequently, I feel it’s appropriate to advertise the new WebSphere Application Server V7 Messaging Administration Guide. This document covers both the default messaging provider and WebSphere MQ support. Don’t be misled by the title - although it does provide detailed information on the administration of resources, the background information on concepts and topologies is equally relevant to developers and architects. The document also has a good section on securing the default messaging provider.

Free WebSphere Application Server

·1 min
This one’s doing the rounds of various IBM related blogs but I think it’s sufficiently momentous for me to give it a mention in case you haven’t seen it elsewhere. WebSphere Application Server for Developers provides a free development runtime environment using the full WebSphere Application Server V7 product. What you don’t get is support but feel free to ask questions on the developerWorks forum.

Service Integration Bus Destination Handler

I’ve previously plugged the Service Integration Bus Explorer and IBM Client Application for JMS as useful tools to have in your WebSphere messaging kitbag. Thanks go once again to Dave Screen, this time for bringing the Service Integration Bus Destination Handler to my attention. This provides a very configurable mechansim for carrying out actions on a set of messages either on a one-off basis (via client or web application) or on a scheduled basis. Particularly useful operations include dumping messages, moving messages from one destination to another, and resurrecting messages from the exception destination. The readme file available in the download provides lots of detailed instructions and examples.

WebSphere MQ non-ASF in WAS

Application Server Facilities (ASF) are the part of the JMS specification originally designed, amongst other things, to allow application server’s to retrieve messages for delivery to message-driven beans. Now WebSphere MQ’s ASF implementation had one significant flaw when it comes to multiple consumers pulling messages from the same queue. Each consumer was effectively browsing the queue looking for suitable messages and, when they found one, they then attempted to take a lock in order to consume the message. Unfortunately, inbetween the browse and the lock there’s a good chance that another consumer would have nipped in and stolen the message. This inefficient behaviour meant that you were unlikely to see linear scalability when adding multiple MDB consumers to a deep queue. As a result, some customers have switched their WebSphere Application Server listener port service to use non-ASF mode (the custom properties required for this can be found in the InfoCenter). This use a standard message consumer to poll the queue for messages - the downside being that you need a separate thread for each consumer.

New WebSphere blogs

There has been a recent push to get more of the WebSphere development team out in to the blogosphere in the run up to the release of V7 of the Application Server. The standard form seems to be to advertise new blogs on the WebSphere Community Blog. So far there is one covering WebSphere and Java Persistence, and likely to be of particular interest to readers of this blog, one on WebSphere and Messaging. Note that the latter doesn’t cover WebSphere MQ (see this blog if that’s your area of interest) but rather the default messaging provider in WebSphere Application Server. Expect to see lots of good material on some of the new features and make the most of the chance to interact with the development team. Whilst on the subject of new blogs, if DataPower is your bag then you can read all about a forthcoming book from some of my ex-ISSW colleagues here.

Messaging Engine Startup Problems

Another heads up for some Service Integration Bus education. On 17 September there is a free webcast entitled Messaging Engine Startup Problems given by Level 2 service and followed by a Q&A session. You can see a list of all the upcoming webcasts or, to receive information about events such as this, along with information about publications and support issues, sign up at My Support.

Graceful shutdown

·2 mins
Having done a little research on application server shutdown in order to answer a customer query I thought I would post my findings. WebSphere Application Server supports three shutdown modes: stop, stop immediate and terminate (in order of immediacy).

My first US patent

·1 min
Last week I had my first US patent issued: #7218708. The patent describes the use of the J2EE Connector Architecture to integrate a Java Message Service provider with an application server. This is something that is actually very easy to do with JCA 1.5 given the restriction of one JMS session per connection introduced by J2EE 1.4. However this patent describes a mechanism to use JCA twice (once at the connection level and once at the session level) that doesn’t require this restriction. This was first used in WebSphere Application Server V5 and continues to be used for the WebSphere MQ and generic JMS provider support today.

Dynamic JMS endpoints

In an earlier post I promised an example of where service integration bus mediations still have a role to play in a WebSphere ESB environment. WebSphere ESB currently only supports dynamic endpoints on an import or callout (those that can be changed at runtime by a mediation flow) for SCA and web service bindings. In this post I’ll show how a service integration bus mediation can be used to add dynamic behaviour to a JMS binding.

Mediation handler tooling broken

·1 min
Despite being sidelined by the arrival of WebSphere ESB, there are still times when it is useful to use the mediation support in WebSphere’s service integration bus (of which more in another post). It’s obviously a while since I’ve done it though as apparently the mediation handler tooling in Rational Application Developer has been broken since v7 was released. I’m told that the fix will finally make it in to 7.0.0.7.

Wednesday @ WSTC

The first slot of the day was one of those rare occasions where I wasn’t quite sure what to attend. In the end I opted for Alex Polozoff’s “Large Topology Tactics and Tradeoffs” presentation as I have great respect for his opinions. The emphasis here was not so much on the technology but the processes and the people. Most of it seemed common sense (at least to me) but the presentation should be a useful resource for anyone embarking on large scale WebSphere topologies.

Web messaging lack of service

·2 mins
Last week I spent a not entirely constructive hour or two with a customer trying to get them started with the web messaging service. This is a component of the Feature Pack for Web 2.0 which provides a bridge between the default messaging provider’s publish/subscribe capabilities and an Ajax (Comet) client. The InfoCenter contains a great quick start guide but it was missing one vital piece of information.

Jython scripting

·1 min
I’ve had the pleasure of working with my UKISA colleague Andrew Simms on a number of occasions. Some may have been luck enough to see his “Monty Jython’s Scripting Circus” presentation on the conference circuit recently. If not, fear not, as he now has a developerWorks article to set you on the path to being a Jython pro!

WebSphere MQ Java in J2EE

Thanks once again to Paul Titheridge, this time for pointing me to this technote covering the use of the WebSphere MQ Java APIs in a J2EE/JEE environment. It seems that IBM does now support the use of the WebSphere MQ Java interfaces in a WebSphere Application Server environment (check the supported software for your release) but this technote provides you with lots of reasons why you shouldn’t! The Java interfaces do have functionality that isn’t currently available in the JMS API (for example message segmentation and important parts of message grouping) but that needs to be weighed carefully against the drawbacks. JMS should always be the default option unless you have a very good reason not to use it.

Cleaning up dumps

·1 min
No - this has nothing to do with nappy changing! I’ve spent the past two weeks as part of the support team for a customer’s WebSphere Application Server environment. Although I know all the theory (I’m an IBM Certified System Administrator for Versions 5.0, 6.0 and 6.1) it’s not very often I spend long enough at any one customer to get my hands dirty. My Korn shell scripting, Jython and vi skills certainly improved rapidly during the time I was there!

JMS problem determination

·1 min
The JMS Problem Determination Redpaper covering WebSphere Application Server Version 6.1 was published at the start of the month. As the long list of authors indicates, Rich Coppen has done a fantastic job in getting input from the whole of the development team so this is a pretty comprehensive resource.

Messaging identities

·1 min
Given Alasdair has been kind enough to include me in the acknowledgements, that guarantees him a plug for his developerWork’s comment line entitled “Connect an application to the default messaging provider using the run-as identity”. This describes how to connect to the default messaging provider in WebSphere Application Server using the application’s current runtime run-as identity rather than, as is usually the case, the credentials administratively associated with the connection factory or resource reference. As always, just because something is possible, doesn’t mean you should do it, so please head Alasdair’s comments about what to consider before implementation.