03-11-2020
Thanks a TON stomp for sharing this, please keep it up
Thanks,
R. Singh
6 More Discussions You Might Find Interesting
1. UNIX Benchmarks
STEP 1: Get the source here:
https://www.unix.com/source/bm.zip
or
https://www.unix.com/source/unix_linux_bench.tar.gz
STEP 2: Unzip or Untar
STEP 3: make
STEP 4: Run
STEP: 5: Please login to www.unix.com and post test results along with platform info to:
Include (if you... (0 Replies)
Discussion started by: Neo
0 Replies
2. HP-UX
Hi,
I've a HP-UX 10x running on HP9000 box and also I have 3 scsi hdd(9Gb),
one of them is working. I need to check the other 2 hdd physically.
Is there an utility to check them from unix or another way to do it?
Thanks.... (5 Replies)
Discussion started by: efrenba
5 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I wanted to find out that in my database server which filesystems are shared storage and which filesystems are local. Like when I use df -k, it shows "filesystem" and "mounted on" but I want to know which one is shared and which one is local.
Please tell me the commands which I can run... (2 Replies)
Discussion started by: kamranjalal
2 Replies
4. Shell Programming and Scripting
I need a little clarification in understanding why there would be a need for a benchmark file when used with a backup script. Logically thinking would tell me that the backups itself(backuptest.tgz) would have the time created and etc. So what would be the purpose of such a file:
touch... (6 Replies)
Discussion started by: metallica1973
6 Replies
5. Solaris
Hi,
Couple of sentences for background: I'm a software developer, whose task was to create a server software for our customer. Software is ready for deployment and customer has a new T4-1 SPARC, but somehow it also became my task also to setup the server. I have managed to get the server is up... (13 Replies)
Discussion started by: julumme
13 Replies
6. AIX
I have an old IBM Power 5 9111-520 that has data on it but the system is failing. I need to move it to a more reliable server. The current system has two drives and no raid. I would like to setup my "newer" system with raid and two partitions then clone my setup over. What is the best way to do... (2 Replies)
Discussion started by: BDC80
2 Replies
LEARN ABOUT PHP
stomp_abort
STOMP_ABORT(3) 1 STOMP_ABORT(3)
Stomp::abort - Rolls back a transaction in progress
Object oriented style (method):
SYNOPSIS
public bool Stomp::abort (string $transaction_id, [array $headers])
DESCRIPTION
Procedural style:
bool stomp_abort (resource $link, string $transaction_id, [array $headers])
Rolls back a transaction in progress.
PARAMETERS
o $link
-Procedural style only: The stomp link identifier returned by stomp_connect(3).
o $transaction_id
- The transaction to abort.
o $headers
-Associative array containing the additional headers (example: receipt).
RETURN VALUES
Returns TRUE on success or FALSE on failure.
NOTES
Tip
Stomp is inherently asynchronous. Synchronous communication can be implemented adding a receipt header. This will cause methods to
not return anything until the server has acknowledged receipt of the message or until read timeout was reached.
EXAMPLES
Example #1
Object oriented style
<?php
/* connection */
try {
$stomp = new Stomp('tcp://localhost:61613');
} catch(StompException $e) {
die('Connection failed: ' . $e->getMessage());
}
/* begin a transaction */
$stomp->begin('t1');
/* send a message to the queue */
$stomp->send('/queue/foo', 'bar', array('transaction' => 't1'));
/* rollback */
$stomp->abort('t1');
/* close connection */
unset($stomp);
?>
Example #2
Procedural style
<?php
/* connection */
$link = stomp_connect('tcp://localhost:61613');
/* check connection */
if (!$link) {
die('Connection failed: ' . stomp_connect_error());
}
/* begin a transaction */
stomp_begin($link, 't1');
/* send a message to the queue 'foo' */
stomp_send($link, '/queue/foo', 'bar', array('transaction' => 't1'));
/* rollback */
stomp_abort($link, 't1');
/* close connection */
stomp_close($link);
?>
PHP Documentation Group STOMP_ABORT(3)