Home | Previous Page | Next Page   MQ DataBlade Module > MQ DataBlade Functions > MQReceive() > 3 3 3

Examples

3

Example 1: 3

3
begin;
3EXECUTE FUNCTION MQReceive();
3commit;
3

Alternatively, the following syntax can be used: 3

3
insert into my_order_table VALUES(MQReceive());
3

This example receives the message at the head of the queue with 3the following parameters: 3

3 3

Example 2: 3

3
begin;
3EXECUTE FUNCTION MQReceive('MYSERVICE');
3rollback;
3

Alternatively, the following syntax can be used: 3

3
insert into my_order_table VALUES(MQReceive('MYSERVICE'));
3

This example receives the message at the head of the queue with 3the following parameters: 3

3 3

Example 3: 3

3
begin;
3EXECUTE FUNCTION MQReceive('MYSERVICE','MYPOLICY');
3commit;
3

Alternatively, the following syntax can be used: 3

3
insert into my_order_table VALUES(MQReceive('MYSERVICE', 'MYPOLICY'));
3

This example receives the message at the head of the queue with 3the following parameters: 3

3 3

Example 4: 3

3
begin;
3EXECUTE FUNCTION MQReceive('MYSERVICE','MYPOLICY','1234');
3commit;
3

Alternatively, the following syntax can be used: 3

3
insert into my_order_table VALUES(MQReceive('MYSERVICE', 'MYPOLICY', '1234'));
3

This example receives the message at the head of the queue with 3the following parameters: 3

3 Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]