Monday, March 10, 2014

Bookmarklets for Integration Broker msgLog and errorLog

If you have a copy of Jim Marion's book, they you are probably familiar with the concept of bookmarklets.  In chapter 5 he provides an example of how to turn trace on and off from a bookmarklet calling an iScript.  If you are not familiar with the concept of bookmarklets, then you can read about them on wikipedia.  However, they are just JavaScript programs used to extend the user's experience.

I use them in DataPower, IBM's SOA device to navigate to commonly used tools, such as the xpath finder and I use them in PeopleSoft to turn trace on and off and to navigate to the msgLog.html and errorLog.html for integration broker.

To create a new bookmarklet in Chrome, right click on the bookmark and select "New Page"




Then add a descriptions like msgLog and past this JavaScript funtion in the url:

javascript:void(window.open(window.location.href.replace(/(^[^:]*:\/\/[^/]*).*$/g,'$1') +'/PSIGW/msgLog.html').focus())



Repeat this for the errorLog.html and add the following JavaScript to the url:

javascript:void(window.open(window.location.href.replace(/(^[^:]*:\/\/[^/]*).*$/g,'$1') +'/PSIGW/errorLog.html').focus())