ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum IndexIBM MQ API SupportMulti Instance QM for Messaging using the REST API IBM MQ

Post new topicReply to topic
Multi Instance QM for Messaging using the REST API IBM MQ View previous topic :: View next topic
Author Message
anil kumar
PostPosted: Wed Oct 10, 2018 5:42 am Post subject: Multi Instance QM for Messaging using the REST API IBM MQ Reply with quote

Acolyte

Joined: 22 Jan 2017
Posts: 62
Location: somewhere under the sky

Hi All,
I don't know if it is the correct discussion forum to post about new Messaging using the REST API in IBM MQ

we are using IBM MQ Version: 9.0.4.0 with multi-instance queue managers.
we are trying the new REST API feature provided with IBM MQ.
we are using the strmqweb command to start the web server and we are provided with URL's like this

Code:

  https://localhost:9443/ibmmq/rest/v1/
  https://localhost:9443/ibmmq/console/


we are using the https://localhost:9443/ibmmq/rest/v1/messaging/qmgr/QM1/queue/Q1/message with http post method to put messages into Queue and we are able to put messages into Queue without any issues
and the same way we are calling the HTTP DELETE method to get the messages from the queue.

all this setup works fine when we have only one queue manager but we have queue managers configured with Multi-instance when QM in server A goes down then QM in server B will become an active instance of the queue manager.

I'm little puzzled here about the rest API, I am able to see the web folder in both primary and standby server.

how do I work with the messaging REST API with Multi-instance queue manager?
any limitation, possible factors to consider anything please throw some lights
_________________
Anil Varma
Back to top
View user's profile Send private message
anil kumar
PostPosted: Thu Oct 25, 2018 6:29 am Post subject: Reply with quote

Acolyte

Joined: 22 Jan 2017
Posts: 62
Location: somewhere under the sky

just found how to covert the mqweb as window service, but still unable to find out how to use it for the multi-instance broker.
_________________
Anil Varma
Back to top
View user's profile Send private message
blorro
PostPosted: Tue Feb 19, 2019 6:34 am Post subject: Reply with quote

Acolyte

Joined: 09 Jan 2014
Posts: 50

anil kumar wrote:
just found how to covert the mqweb as window service, but still unable to find out how to use it for the multi-instance broker.


How did you cover running mqweb as a windows service ?

I think it might be challenging using multi-instance Queuemanagers in an active/passive setting since you cannot run two queue managers with the same name.
You would have to define the same queues on both queue managers, and do a retry on secondary queue manager if the first one running has gone *down*.
Certainly doable but not too pretty of a solution really.
I'd make sure that the first queue manager would have as much availablity as possible.
Have you checked why the first one goes down, or do you plan to take it down for servicing only and offload messaging to the secondary one ?
You can only have one primary queuemanager per server as far as i know, so multi-tenancy comes with it's challenges.
_________________
"Anything is possible, all the time."
Back to top
View user's profile Send private message
anil kumar
PostPosted: Wed Feb 20, 2019 3:32 am Post subject: Reply with quote

Acolyte

Joined: 22 Jan 2017
Posts: 62
Location: somewhere under the sky

i have used WLP commands to start the mqweb.bat file as a windows service the link to that is

https://www.ibm.com/support/knowledgecenter/en/SSEQTP_liberty/com.ibm.websphere.wlp.doc/ae/twlp_setup_new_server_winserv.html

Use the following command to start the server:
server startWinService serverName [options]

in our case the command would be Use the following command to start the server:
Code:

server registerWinService mqweb
server startWinService mqweb

note that we need to run this command in admin mode and location to run this command is mqinstallationdir/ibm/mq/web/bin
you will get some errors related to log '' folder issue then open the server.bat and check this statement
Code:

  !WLP_INSTALL_DIR!\bin\tools\win\prunsrv.exe  //IS//%SERVER_NAME% --Startup=manual --DisplayName="%SERVER_NAME%" --Description="IBM WebSphere Liberty Profile" ++DependsOn=Tcpip --LogPath="%WLP_INSTALL_DIR%\usr\servers\%SERVER_NAME%\logs" --StdOutput=auto --StdError=auto --StartMode=exe --StartPath="%WLP_INSTALL_DIR%" --StartImage="%WLP_INSTALL_DIR%\bin\server.bat" ++StartParams=start#%SERVER_NAME% --StopMode=exe --StopPath="%WLP_INSTALL_DIR%" --StopImage="%WLP_INSTALL_DIR%\bin\server.bat" ++StopParams=stop#%SERVER_NAME%


create log manually and run the commands as mentioned using above URL you can find service named mqweb in your windows services .


Code:
just found how to covert the mqweb as window service, but still unable to find out how to use it for the multi-instance broker.


i'm sorry on the above statement i was supposed to type multi instance queue managers here not broker .
i presume you already know about multi instance queue mangers but just in case for others URL to mult instance queue manger concept

https://www.ibm.com/support/knowledgecenter/en/SSFKSJ_9.0.0/com.ibm.mq.con.doc/q018140_.htm

is your question related to Multi instance queue mangers? concept if yes we use configuration as mentioned in the infocenter.
_________________
Anil Varma
Back to top
View user's profile Send private message
anil kumar
PostPosted: Wed Feb 20, 2019 3:35 am Post subject: Reply with quote

Acolyte

Joined: 22 Jan 2017
Posts: 62
Location: somewhere under the sky

are you using MQ web in live ? How are the results can you please share any of your experiences or issues or problems using MQ Web and MQ Rest
_________________
Anil Varma
Back to top
View user's profile Send private message
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexIBM MQ API SupportMulti Instance QM for Messaging using the REST API IBM MQ
Jump to:



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
Protected by Anti-Spam ACP


Theme by Dustin Baccetti
Powered by phpBB 2001, 2002 phpBB Group

Copyright MQSeries.net. All rights reserved.