{"id":3016,"date":"2018-03-17T19:21:04","date_gmt":"2018-03-17T15:51:04","guid":{"rendered":"http:\/\/www.serveridol.com\/?p=3023"},"modified":"2018-03-17T19:21:04","modified_gmt":"2018-03-17T15:51:04","slug":"how-to-change-default-jms-port-on-glassfish-server","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/how-to-change-default-jms-port-on-glassfish-server\/","title":{"rendered":"How to change default JMS port on Glassfish server"},"content":{"rendered":"<p dir=\"ltr\" style=\"text-align: left;\">Yesterday I was doing a task to fecilitate another Glassfish instance on the same IP but on using different port. I have modified all the ports those are mentioned specifically in <strong>domain.xml<\/strong> file. But yo u remember, I have another Glassfish server installed on the same hosting using default port values. While I\u2019m verifying the ports which Glassfish initiated, found that JMS default port was not been changed and using the <strong>default port 7676<\/strong> till now. So I can not accommodate another Glassfish instance. But I could not see these port number defined no where in that domain.xml file. So I\u2019m confused and become helpless<\/p>\n<p dir=\"ltr\" style=\"text-align: left;\">Today I was turned to look at the asadmin commands to listout the variable of ports and found it\u2019s still using 7676 and knowing that it can be changed only using asadmin command. So I\u2019 m looking in to that option.<\/p>\n<p dir=\"ltr\" style=\"text-align: left;\"><strong>Solution<\/strong><\/p>\n<p dir=\"ltr\" style=\"text-align: left;\"><strong>Before<\/strong><\/p>\n<div class=\"codecolorer-container text vibrant\" dir=\"ltr\" style=\"overflow: auto; white-space: nowrap; border: 1px solid #9f9f9f; width: 435px; text-align: left;\">\n<div class=\"text codecolorer\" style=\"padding: 5px; font: normal 12px\/1.4em Monaco, Lucida Console, monospace; white-space: nowrap;\">[root@~]# \/var\/glassfish-mysqltest\/bin\/asadmin get \\* | grep 7676<br \/>\nconfigs.config.default-config.system-property.JMS_PROVIDER_PORT.value=37676<br \/>\nconfigs.config.default-config.admin-service.jmx-connector.system.port=27676<br \/>\nconfigs.config.default-config.jms-service.jms-host.default_JMS_host.port=37676<br \/>\nconfigs.config.server-config.jms-service.jms-host.default_JMS_host.port=7676<\/div>\n<\/div>\n<p dir=\"ltr\" style=\"text-align: left;\">Execute this command<\/p>\n<div class=\"codecolorer-container text vibrant\" dir=\"ltr\" style=\"overflow: auto; white-space: nowrap; border: 1px solid #9f9f9f; width: 435px; text-align: left;\">\n<div class=\"text codecolorer\" style=\"padding: 5px; font: normal 12px\/1.4em Monaco, Lucida Console, monospace; white-space: nowrap;\">\/var\/glassfish-mysqltest\/bin\/asadmin set configs.config.server-config.jms-service.jms-host.default_JMS_host.port=37676<\/div>\n<\/div>\n<p dir=\"ltr\" style=\"text-align: left;\"><strong>After <\/strong><\/p>\n<div class=\"codecolorer-container text vibrant\" dir=\"ltr\" style=\"overflow: auto; white-space: nowrap; border: 1px solid #9f9f9f; width: 435px; text-align: left;\">\n<div class=\"text codecolorer\" style=\"padding: 5px; font: normal 12px\/1.4em Monaco, Lucida Console, monospace; white-space: nowrap;\">[root@ ~]# \/var\/glassfish-mysqltest\/bin\/asadmin get \\* | grep 7676<br \/>\nconfigs.config.default-config.system-property.JMS_PROVIDER_PORT.value=37676<br \/>\nconfigs.config.default-config.admin-service.jmx-connector.system.port=27676<br \/>\nconfigs.config.default-config.jms-service.jms-host.default_JMS_host.port=37676<br \/>\nconfigs.config.server-config.jms-service.jms-host.default_JMS_host.port=37676<\/div>\n<\/div>\n<p dir=\"ltr\" style=\"text-align: left;\">That\u2019s it I can able to change the JMS default port to<strong> 37676<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Yesterday I was doing a task to fecilitate another Glassfish instance on the same IP but on using different port. I have modified all the ports those are mentioned specifically in domain.xml file. But yo u remember, I have another Glassfish server installed on the same hosting using default port values. While I\u2019m verifying the &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[34,36],"tags":[],"class_list":["post-3016","post","type-post","status-publish","format-standard","hentry","category-server","category-36"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/3016","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=3016"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/3016\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=3016"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=3016"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=3016"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}