Thank you all for your participation, it was very helpfull..
For futur readers I would like to summary.
material : NT on client and NT on server
MQS Objects definition :
* on server side :
- queue manager creation (crtmqm -q QM_ONE)
- start the queue manager (strmqm QM_ONE)
- start MQS commands (runmqsc QM_ONE)
- queue definition (DEFINE QLOCAL(Q_ONE))
- server-connection creation (DEFINE CHANNEL(CHANNEL_ONE) CHLTYPE(SVRCONN) TRPTYPE(TCP))
- stop MQS commands (end)
- set queue manager authorizations (setmqaut -n Q_ONE -t q -m QM_ONE -p "my NT network login" +all )
- set queue authorizations (setmqaut -m QM_ONE -t qmgr -p "my NT network login" +all )
- start a listener (RUNMQLSR -t tcp -m QM_ONE -p "port")
NB :
- always use uppercase for your objects definition
- becarefull that on the port you use there is only one listener (you can check with "netstat -an")
* on client side :
- define the client channel
(SET MQSERVER=CHANNEL_ONE/TCP/"server IP adress"("port"))
Now you are ready to communicate...
- put a message (amqsputc Q_ONE QM_ONE) (it's client side, use amqsput on server side)
- get the message (amqsgetc Q_ONE QM_ONE) (use amqsget on server side)
I hope I haven't made mistakes...
I'm still a newbie but now I'm newbie level 2
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum