milosev.com
  • Home
    • List all categories
    • Sitemap
  • Downloads
    • WebSphere
    • Hitachi902
    • Hospital
    • Kryptonite
    • OCR
    • APK
  • About me
    • Gallery
      • Italy2022
      • Côte d'Azur 2024
    • Curriculum vitae
      • Resume
      • Lebenslauf
    • Social networks
      • Facebook
      • Twitter
      • LinkedIn
      • Xing
      • GitHub
      • Google Maps
      • Sports tracker
    • Adventures planning
  1. You are here:  
  2. Home

Browse messages.

Details
Written by: Stanko Milosev
Category: IBM WebSphere MQ
Published: 23 October 2008
Last Updated: 12 December 2009
Hits: 9077

Question is, how to browse messages, without deleting them from MQ?

I did it with Delphi.

You will need to change GetMsgOptions, at me it is like:

MQGMO_DEFAULT : MQGMO = (StrucId:MQGMO_STRUC_ID;
Version:MQGMO_VERSION_1;
Options:MQGMO_NO_WAIT;
WaitInterval:0;
Signal1:0;
Signal2:0;
ResolvedQName:#0;
MatchOptions:(MQMO_MATCH_MSG_ID+MQMO_MATCH_CORREL_ID);
GroupStatus:MQGS_NOT_IN_GROUP;
SegmentStatus: MQSS_NOT_A_SEGMENT;
Segmentation:MQSEG_INHIBITED;
Reserved1:' ';
MsgToken:($0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0);
ReturnedLength:MQRL_UNDEFINED;
);

In MQIC.pas which I downloaded it from here, I changed MQGMO_DEFAULT to:

MQGMO_DEFAULT : MQGMO = (StrucId:MQGMO_STRUC_ID;
Version:MQGMO_VERSION_1;
Options:(MQGMO_BROWSE_NEXT + MQGMO_NO_WAIT);
WaitInterval:0;
Signal1:0;
Signal2:0;
ResolvedQName:#0;
MatchOptions:(MQMO_MATCH_MSG_ID+MQMO_MATCH_CORREL_ID);
GroupStatus:MQGS_NOT_IN_GROUP;
SegmentStatus: MQSS_NOT_A_SEGMENT;
Segmentation:MQSEG_INHIBITED;
Reserved1:' ';
MsgToken:($0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0,$0);
ReturnedLength:MQRL_UNDEFINED;
);

I added MQGMO_BROWSE_NEXT, but, before geting messages, you will need to open MQ for browsing messages, you will do it like this:

Open(MQOO_FAIL_IF_QUIESCING + MQOO_INPUT_SHARED + MQOO_BROWSE, strObjectName, intReason, bolOk);

And that is all...

The MQSC commands

Details
Written by: Stanko Milosev
Category: IBM WebSphere MQ
Published: 08 October 2008
Last Updated: 30 November -0001
Hits: 7065
If you want to run the MQSC commands use runmqsc

Finding locations that are within a certain radius distance

Details
Written by: Stanko Milosev
Category: MySQL
Published: 12 January 2020
Last Updated: 12 January 2020
Hits: 2893
This example I took from here. In my case I will display markers that are in distance of 25 kilometers from Longitude = 7 and Latitude = 50.
SELECT id, Longitude, Latitude, ( 3959 * acos( cos( RADIANS(50) ) * cos( radians( Latitude ) ) * cos( radians( Longitude ) - radians(7) ) + sin( RADIANS(50) ) * sin( radians( Latitude ) ) ) ) AS distance FROM gpslocation HAVING distance < 25 ORDER BY DISTANCE LIMIT 0 , 20;

Notice that number 50 is twice mentioned in query.

Windows 7.

Details
Written by: Stanko Milosev
Category: MySQL
Published: 17 September 2010
Last Updated: 30 November -0001
Hits: 8600

If you can't connect to MySQL over PHP from your localhost, then try something like:


In the Windows/System32/drivers/etc/hosts file remove the entry like this:
::1 localhost


and make sure you still have:
127.0.0.1 localhost


Taken from here.

  1. Union count.
  2. UTF8 export.
  3. PHP Strict Standards
  4. Xml in codeIs CodeHighlighter

Subcategories

C#

Azure

ASP.NET

JavaScript

Software Development Philosophy

MS SQL

IBM WebSphere MQ

MySQL

Joomla

Delphi

PHP

Windows

Life

Lazarus

Downloads

Android

CSS

Chrome

HTML

Linux

Eclipse

Page 83 of 168

  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87