I’m really looking forward to the new series of Green Wing on Channel 4 tonight – the first series was hilarious. Very strange at first, and it took until at least the second episode before I “got it”, but it was easily the funniest comedy on TV last year (my DVD set should arrive early next week).
The other thing I’m looking forward to is the second series of new Doctor Who – which, it was announced, will start on Saturday 15th April. Splendid.
The list of plus points for moving to WordPress keeps ticking up. I just learned that the Atom feeds provided by Blogger for blogspot accounts are invalid.
I checked this site's feed and found that it also generates a couple of warnings, so WordPress isn't completely in the clear… but the feed is at least valid.
I'll have to update my pros and cons table at some stage.
Technorati tags: Blogger Google WordPress atom
Yesterday, I spent some time working with the Resource Adapter for MSMQ that ships with IBM WebSphere DataStage TX Extender for Message Broker. It has been some time since I did any work with MSMQ – probably since COM+ days, I don’t remember having worked natively with it in .NET before. Incidentally, I was using SharpDevelop for the C# coding.
All I wanted to do was to write a simple piece of code that took messages off a queue – rather like the amqsget sample that ships with WebSphere MQ would do for me. The DSTX map I was running was putting the messages onto the queue just fine, and I wanted to read them off again.
This turned out to be remarkably awkward… I’m not sure quite how this happened, but the messages that were being put on the queue were pretty much just plain text. MSMQ by default seems to want to wrap everything that gets put onto a queue as XML (using an XMLMessageFormatter). In MQ terms I suppose this is similar to the parser serialising a message to the queue at the end of a message flow in Message Broker. Since I wasn’t working with XML, this was irrelevant to me.
What I ended up doing was to receive the BodyStream of the message, not the Body. Here’s what I had to do in C# to read and display the plain text messages:
message.Formatter = new ActiveXMessageFormatter();
reader = new StreamReader(message.BodyStream);
msgBody = reader.ReadToEnd();
Console.WriteLine("Label: "+ message.Label + " Content: " + msgBody);
That doesn’t look like a lot of code, but it took me quite a while to get my head around the fact that I couldn’t dispense with all the Formatter stuff and just write:
Console.WriteLine("Label: "+ message.Label + " Content: " + message.Body);
I’m putting this here as an aide-memoire in case I ever have to do it again.
Technorati tags: MQ SharpDevelop MSMQ IBM DataStage WebSphere
There’s a discussion in the comments over at Gendal World about mixing topics in a blog.
I post on quite a variety of subjects, not all of which are likely to be interesting to every one of my readers. I think my posts fall into three broad groups: work / IBM / WebSphere, photography, and life / general / news. There’s actually more granularity than that, as can be seen in the list of tags in the right-hand sidebar.
One of the nice things about my move to WordPress is that it is possible to get an RSS feed for an individual category of my posts. So, if you were interested in my posts tagged IBM, you could subscribe to this feed. My photography posts are available as another RSS feed. Just choose the category from the list of tags, and then add
/feed/ to the end of the URL.
It’s entirely up to you whether you want to be more selective in your reading – just thought I’d draw your attention to this feature.