Operating System - HP-UX
1753913 Members
8871 Online
108810 Solutions
New Discussion юеВ

Message Queues concepts needed in HP-UX

 
SOLVED
Go to solution
Shivakumar_3
Advisor

Message Queues concepts needed in HP-UX

Hello everybody,
can anybody explain me the concepts of MessageQueue in HP-UX.How i can create a Mqueue.HOW I CAN STORE A BUFFER IN A MESSAGE QUEUE.How can i view the content of the message queue(If i have stored some 10 messages in it).How i can access a Mqueue so that i can write the message in Mqueue to a file.Pls help me out
7 REPLIES 7
Mel Burslan
Honored Contributor

Re: Message Queues concepts needed in HP-UX

There is a confusion I am sensing in your question. What you are refering as mqueue is actually the mail queue of the system and you do not have to do anything special to insert something into this queue. Just send an email to the user who you want receive this message.

If you want to view the contents of the message, all you have to do is to look into the /var/spool/mqueue. You will see two files with almost the same name, with the exception of their first character. One of them is called the envelope information and the other one is the actual text sent over mail. They both are plain text files and you can view them using more, pg, cat or whatever application you prefer to use.

On the other hand, in unix, there is another concept called message queues, which is one of the mechanisms for interprocess communications (IPCS). Message queue idea is a place where two processes which need to communicate, leave messages from one to the other with priorities, so that higher priority messages get read first etc. It is not something for the user (even root) to view easily let alone messing with, like pushing and pulling messages.

See the man pages for system calls msgget and msgsnd/msgrcv for more information. These calls are mainly for processes and do not have any meaning to the naked eye.

________________________________
UNIX because I majored in cryptology...
Shivakumar_3
Advisor

Re: Message Queues concepts needed in HP-UX

Sorry Mqueue is nothing but message queues only.I did'nt know that Mqueue is mail queue because i am new to ipc concepts.
saju_2
Respected Contributor
Solution

Re: Message Queues concepts needed in HP-UX

Hi shiv

I think u r looking for the ipc message queues..

Pls check the belwo link
http://docs.hp.com/en/939/KCParms/KCparamTut.IPC.html
http://docs.hp.com/en/939/KCParms/KCparam.MesgParmsOverview.html


Also the man pages of mesg, msgmap, msgmax etc gives u detail information about it..

Regards
CS

Alex Lavrov.
Honored Contributor

Re: Message Queues concepts needed in HP-UX

Are you talking about IBM's MQS?

Alex.
I don't give a damn for a man that can only spell a word one way. (M. Twain)
Ranjith_5
Honored Contributor

Re: Message Queues concepts needed in HP-UX

Alessandro Pilati
Esteemed Contributor

Re: Message Queues concepts needed in HP-UX

Shiva,
here you can find other useful links:

http://www.ecst.csuchico.edu/~beej/guide/ipc/mq.html

http://66.102.9.104/search?q=cache:QrH7DD-nsSUJ:www.uni-leipzig.de/urz/zentraletechnik/U40130970004.ps+hpux+%22message+queues%22+IPC&hl=it

Here you can find some useful procedures that implements examples of Message queue management ( and many other hints ).

http://lib.daemon.am/Books/www.gerhardmueller.de/docs/UnixCommunicationFacilities/ip/node14.html

Best regards,
Alex
if you don't try, you'll never know if you are able to
Yogeeraj_1
Honored Contributor

Re: Message Queues concepts needed in HP-UX

hi,

You also have this facility on your database.

In Oracle, you also have the Advanced Queuing concept which allows Web-based business applications communicate with each other, producer applications enqueue messages and consumer applications dequeue messages.

Advanced Queuing provides database-integrated message queuing functionality. Advanced Queuing leverages the functions of the Oracle database so that messages can be stored persistently, propagated between queues on different machines and databases, and transmitted using Oracle Net Services, HTTP(S), and SMTP.

see: http://download-west.oracle.com/docs/cd/B10501_01/appdev.920/a96587/qintro.htm#65422

regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)