Hi, in this post we are going to do some house keeping to WebSphere Messaging Engine. In some cases messages got stucked in committing or removing state (IBM calls them indoubt messages). When that happens, it is impossible to manage them via administration console.
Service Integration > Buses > xyzServiceBus > Messaging Engines > abcMEBus > Queue Points > queueA > Runtime > message > delete etc...
So we need to use wsadmin.sh and some commands. I always use the wsadmin.sh under the DMGR profile. So start the wsadmin.sh and connect to DMGR, type your username and password if your cell is secure. What we need first is to get the correct message id. Use below command;
$AdminControl invoke [$AdminControl queryNames type=SIBMessagingEngine,*] getPreparedTransactions
This will give us a very long string, expect something like
!V0FTRAAAACQAAAFC72342347HesQAAAAIAAj8tAnvvXi34ge4rh5tjhe4f43e3wov5krh54i-r62ZrKqTBuEAAAAAAA2AAABQu*x3rEAAAACAAI-LQJRGDRHDRGS7714qL*ZK432fw4r2eeIv6*tmayqkwbhAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAC
Did you get such an id? Good. Now we are going to use this id in another command.
$AdminControl invoke [$AdminControl queryNames type=SIBMessagingEngine,*] commitPreparedTransaction msgid
Do not use quoation or anything just paste the message id we got from previous command as a whole instead of where I wrote msgid in italic.
This will commit any stuck messages in any state, if this does not solve your problem we have another parameter for rolling back the message.
$AdminControl invoke [$AdminControl queryNames type=SIBMessagingEngine,*] rollbackPreparedTransaction msgid
This will rollback, but I usually don't need to use it, committing manually solves almost all stuck messages.
Have a nice debugging.
Showing posts with label Scripting. Show all posts
Showing posts with label Scripting. Show all posts
Thursday, 3 April 2014
Friday, 11 September 2009
Tess Ferrandez's Blog

What comes to your mind if the subject is ASP.NET and debugging?
To me it is Tess Ferrandez, ASP.NET Escalation Engineer (Microsoft). In her blogs she addresses the "memory issues", "performans issues", "crash scenarios", "debugging" etc...
Espcially crash scenarios are interests of mine. They are so well written and handy. Many to learn many to discuss she offers. If you call your self an ASP.NET developer, scratch that, if you are even slightly interested in anything that uses IIS or even ASP or, hmm scratch that too.
Sigh, you need to see her blog and decide for yourself. It is so informative and well written, I can't even describe how helpful it is. In her own words;
"This blog is intended to help people that develop applications with the .net framework resolve issues on production system, mainly using Windbg.exe from http://www.microsoft.com/whdc/devtools/debugging/default.mspx along with sos.dll that ships with the debugging tools."
You can also follow her on Twitter too.
Thursday, 11 June 2009
SoapUI 3.0 Beta 2
It has been released, with a lot of fixes. That's good but what is really new? Let's take a look;
~Added native installers for Mac OS X and Linux
~Fixed moving of TestCases with properties
~Added [mocking] Multithreaded onResponse/afterRequest MockService scripts
~Added [mocking] Ability to specify local host to bind to
There a lot of new big features and fixes other than these 4. However these are the ones that I am really interested in. I am anxious to see the final version.
For the official site: Click Here!
~Added native installers for Mac OS X and Linux
~Fixed moving of TestCases with properties
~Added [mocking] Multithreaded onResponse/afterRequest MockService scripts
~Added [mocking] Ability to specify local host to bind to
There a lot of new big features and fixes other than these 4. However these are the ones that I am really interested in. I am anxious to see the final version.
For the official site: Click Here!
Labels:
Scripting,
Software,
Technology,
Testing
Saturday, 6 June 2009
'"Hosts" File Edit'er
Ok. I am making words up. But I am too drunk to think straight. I am sick of Windows' administrator rights and stuff. Everytime it asks me that permission thingie to edit that file, I get iritated, so I wrote this tiny little script. And sharing it with you, it's pretty simple write an IP address and then write the name for it. It will add it to hosts file. So you won't need editing it or any free dns or something like it. Just give your user `the right` from security tab to access to that stoopeed file and use my script. That's it. If you don't already know what I am talking about, you should ignore this post. Here's the tiny .VBS script.
Dim Stuff, FileSys, WriteStuff
ip=inputbox("IP?")
domain=inputbox("Domain?")
Stuff = ip & " " & domain
Set FileSys = CreateObject("Scripting.FileSystemObject")
Set WriteStuff = FileSys.OpenTextFile("c:\windows\system32\drivers\etc\hosts", 8, True)
WriteStuff.WriteLine(Stuff)
WriteStuff.Close
SET WriteStuff = NOTHING
SET FileSys = NOTHING
Notice that there is no exception handling or something, I assumed you are smart enough to execute this properly. Thanks for watching.
Scripting is even funnier, when you are drunk. I should try Sed&Awk...
Dim Stuff, FileSys, WriteStuff
ip=inputbox("IP?")
domain=inputbox("Domain?")
Stuff = ip & " " & domain
Set FileSys = CreateObject("Scripting.FileSystemObject")
Set WriteStuff = FileSys.OpenTextFile("c:\windows\system32\drivers\etc\hosts", 8, True)
WriteStuff.WriteLine(Stuff)
WriteStuff.Close
SET WriteStuff = NOTHING
SET FileSys = NOTHING
Notice that there is no exception handling or something, I assumed you are smart enough to execute this properly. Thanks for watching.
Scripting is even funnier, when you are drunk. I should try Sed&Awk...
Thursday, 28 May 2009
Best HP QTP Blog
One address for everything you need;
Guy has everything. In fact; not just QTP, think about the whole solution, there are a nice selection of blogs/websites, tips, tricks, examples, etc... It is practically the best source for me right now. Whatever I am looking for it is either in the help menu of the HP tools or there in that blog. It is that simple, know this site, and the help of the tool itself. You even don't need google =] .
Labels:
Scripting,
Software,
Technology,
Testing
Subscribe to:
Posts (Atom)