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.
Being presented with my “10 year pen” at a departmental meeting on Monday seems like a good excuse for a bit of a retrospective on my career with IBM…
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.
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.
A question from a colleague had me wondering about the following restriction stated in the WebSphere Application Server Version 6.1 pre-reqs:
IBM WebSphere MQ 5.3 CSD 12 and IBM WebSphere MQ 5.3.1 for z/OS + PK10303 are supported for client mode connections only.
WebSphere Application Server has shipped with JAR files for the WebSphere MQ JMS provider since Version 5.0 as they were, at the time, required for the embedded messaging provider. However, if those JAR files do not match the version of WebSphere MQ you are using (as is the case with WebSphere Application Server V6.0 and WebSphere MQ V6) you may see error messages such as java.lang.NoSuchFieldError: msgToken. As documented on the support site and in the InfoCenter, on the server-side the correct thing to do is update the MQ_INSTALL_ROOT WebSphere variable to point to your real WebSphere MQ installation. What I haven’t seen documented anywhere is what to do in the case where you are using the WebSphere Application Server client container. In that scenario, you need to modify the JMS_PATH environment variable defined in the launchClient batch file in the application server bin directory.
I’ve mentioned one of my colleague Paul Titheridge’s articles before (on JMS Application Server Facilities) and he’s just started a new related series which is well worth taking a look at. This time Paul has turned his attention to the myriad of connection pool properties provided by WebSphere Application Server and what they mean when using WebSphere MQ as the JMS provider. As before, Paul has provided some thoroughly worked examples to help explain the implications of changing different values.
Andrew is plugging the draft of his Redbook Connecting Enterprise Applications to WebSphere Enterprise Service Bus over on SOA Tips ’n’ Tricks and rightly so as it’s well worth a look. If you thought that WebSphere ESB was just about SOAP/HTTP then this book should set you straight. It covers details of integration via WebSphere MQ, JDBC and HTTP and connecting to CICS. I’ve been working on the labs for the corresponding ITSO Workshop rolling out later this year.
Nepotism rules so here is a plug for an article by two of my close colleagues Peter Crocker and Ben Thompson on Integrating WebSphere DataPower SOA Appliances with WebSphere MQ.
There are two new articles on developerWorks covering connectivity between WebSphere ESB and messaging. The first, is Part 4 of Rachel and Andre’s series which takes a look at the new Websphere MQ binding in Version 6.0.2. The second article shows how to use the JMS bindings with JMS providers other than the default messaging provider or WebSphere MQ i.e. what WebSphere Application Server refers to as generic JMS providers.
I headed down to Bedfont early this morning for the WebSphere User Group meeting. Such is the traffic on the M3 that I missed the start but arrived in time for Jim Caldwell’s keynote presentation. Jim is the IBM Director of WebSphere Application Infrastructure and had some interesting things to say about many parts of the portfolio from WAS CE to WebSphere XD. Two products were mentioned that I’ve never really paid much attention to in the past. WebSphere Real Time is a Java environment for real-time applications, providing for sub-second response times free from the usual vagaries of garbage collection. Meanwhile, WebSphere Remote Server is targetted at the retail market, providing a J2EE runtime for the store with remote management capabilities.
Many of the presentations at the conference are repeats from our internal services conference earlier this year which means I have some spare time to catch up on other work. One session I did go to today was Eric Herness (Chief Architect for WebSphere Business Integration) presenting the new content in Version 6.0.2 of WebSphere Process Service and ESB. I think it’s safe to say this is a refresh pack with more than a few functional enhancements!
Of my various publications, the one which seems to bring in the most questions at the moment is that relating to message groups in WebSphere MQ and how these are exposed through the JMS API. I should therefore confess that there are a couple of issues with the approach that the article describes.
This is my usual weekly roundup of what’s new and interesting on developerWorks. This week we start with something for the WebSphere Application Server developer. When abstracting configuration properties out of code they often end up in a simple properties file. This is fine if the values are static but, if they need updating, you either need to redeploy the application containing the file or else put the file somewhere separate from the application. (If taking the latter approach then the config directory is a good place for the file as then you call leave the application server to replicate it across the nodes.) Perhaps a better approach is to configure a resource environment provider as described in this article, enabling properties to be defined administratively.
Today sees the release of WebSphere MQ SupportPac MR01. This provides the source for a WebSphere MQ channel exit which can be configured with a list of host names and port numbers to which the channel will attempt to connect. The intention is that this exit can be used when using a WebSphere MQ link to connect a clustered Service Integration Bus messaging engine to a queue manager. The messaging engine can now failover to another cluster member and the queue manager will still be able to connect.
The final major piece of functionality that I shall cover in this series of posts looking at deliverables made by Hursley in to WebSphere Application Version 6.1 is WebSphere MQ Servers. In Version 6.0 of the Application Server, WebSphere MQ could either be accessed directly from an application using the WebSphere MQ JMS provider or via the service integration bus by using a foreign bus and WebSphere MQ link. In Version 6.1, it is possible to add a WebSphere MQ queue manager, running on z/OS and at Version 6 (CSD 1 or greater), directly as a member of the bus.
Rather surprised to discover that developerWorks had published my article on Grouping messages using the WebSphere MQ Java and JMS APIs given that the last time I had seen it was when I submitted a first draft! Managed to persuade them to correct some of the more glaring errors that were introduced during the editorial process. I guess I’ll just have to put up with the revised writing style.