glassfish
  1. glassfish
  2. GLASSFISH-13690

[UB] can't configure static JMS ports via GlassFish

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.1
    • Fix Version/s: 3.1_dev
    • Component/s: docs
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      13,690

      Description

      I haven't been able to find a way to configure embedded or local JMS broker to use
      static ports via the GlassFish configuration in domain.xml. It is possible to
      setup a stand-alone JMS broker via the MQ commands to do this, but the properties
      that one needs to set to do this don't seem to be available via domain.xml.

        Activity

        Hide
        Satish Kumar added a comment -

        In the case of managed brokers -EMBEDDED or LOCAL mode of integration, the MQ
        port-mapper port is configured through the JMS_PROVIDER_PORT. Other ports can
        be configured by setting them into jms-host.properties (the property name
        should be the same as the one used by IMQ).

        So it appears that we are covered. Pl let me know if I am missing something
        here. What is not very clear through the bug description is what ports are
        being referred to here?

        Show
        Satish Kumar added a comment - In the case of managed brokers -EMBEDDED or LOCAL mode of integration, the MQ port-mapper port is configured through the JMS_PROVIDER_PORT. Other ports can be configured by setting them into jms-host.properties (the property name should be the same as the one used by IMQ). So it appears that we are covered. Pl let me know if I am missing something here. What is not very clear through the bug description is what ports are being referred to here?
        Hide
        Tom Mueller added a comment -

        Where does the jms-host.properties file go? In the domains/<domain>/config directory? The jms-
        host.properties file is not listed in the default config-files file, so it will not be synchronized to
        instances. Or is this a file that needs to go into the instance specific config directory?

        Where in the GlassFish documentation is the jms-host.properties file mentioned? I searched for it and didn't
        find it mentioned anywhere.

        The ports being referred to here are those that you see displayed if you telnet to the JMS_PROVIDER_PORT of
        an instance, e.g.,

        101 i1i1 4.5
        cluster_discovery tcp CLUSTER_DISCOVERY 0
        portmapper tcp PORTMAPPER 27676
        [imqvarhome=/fishpool/home/trm/test/glassfishv3/glassfish/nodes/localhost/i1/imq,imqhome=/fishpool/home/trm/t
        est/glassfishv3/mq,sessionid=2661675193862365184]
        jmxrmi rmi JMX 0 [url=service:jmx:rmi://glassfish-sparc-1/jndi/rmi://glassfish-sparc-1:27776/glassfish-sparc-
        1/27676/jmxrmi]
        admin tcp ADMIN 64053
        jms tcp NORMAL 64052
        cluster tcp CLUSTER 64054

        Here, the dynamic ports are: 64053, 64052, 64054

        Maybe this needs to be converted to a doc bug.

        Show
        Tom Mueller added a comment - Where does the jms-host.properties file go? In the domains/<domain>/config directory? The jms- host.properties file is not listed in the default config-files file, so it will not be synchronized to instances. Or is this a file that needs to go into the instance specific config directory? Where in the GlassFish documentation is the jms-host.properties file mentioned? I searched for it and didn't find it mentioned anywhere. The ports being referred to here are those that you see displayed if you telnet to the JMS_PROVIDER_PORT of an instance, e.g., 101 i1i1 4.5 cluster_discovery tcp CLUSTER_DISCOVERY 0 portmapper tcp PORTMAPPER 27676 [imqvarhome=/fishpool/home/trm/test/glassfishv3/glassfish/nodes/localhost/i1/imq,imqhome=/fishpool/home/trm/t est/glassfishv3/mq,sessionid=2661675193862365184] jmxrmi rmi JMX 0 [url=service:jmx:rmi://glassfish-sparc-1/jndi/rmi://glassfish-sparc-1:27776/glassfish-sparc- 1/27676/jmxrmi] admin tcp ADMIN 64053 jms tcp NORMAL 64052 cluster tcp CLUSTER 64054 Here, the dynamic ports are: 64053, 64052, 64054 Maybe this needs to be converted to a doc bug.
        Hide
        Satish Kumar added a comment -

        Setting target milestone...

        by jmshost.properties I was not referring to a file but the jmshost element in
        domain.xml and the properties bucket under it through which these ports can be
        configured.

        I agree this needs to be assigned to the docs team so that they can include
        some documentation around this

        Show
        Satish Kumar added a comment - Setting target milestone... by jmshost.properties I was not referring to a file but the jmshost element in domain.xml and the properties bucket under it through which these ports can be configured. I agree this needs to be assigned to the docs team so that they can include some documentation around this
        Hide
        Satish Kumar added a comment -

        Static ports can be configured by either setting them as part of the properties bucket in jms-service or the properties bucket for jms-host. For instance, the admin tcp port can be changed by running the following command:

        ./asadmin set server-config.jms-service.property.imq\\.admin\\.tcp
        .port=12345

        Telnet after running the command (Note: a restart is required for the changes to take effect)
        satish@calvin:~/sats/glassfish3/glassfish/bin$ telnet localhost 7676
        Trying ::1...
        Connected to localhost.
        Escape character is '^]'.
        101 imqbroker 4.5
        cluster_discovery tcp CLUSTER_DISCOVERY 0
        portmapper tcp PORTMAPPER 7676 [imqvarhome=/space/satish/sats/glassfish3/glassfish/domains/domain1/imq,imqhome=/space/satish/sats/glassfish3/mq,sessionid=5793367024399554304]
        jmxrmi rmi JMX 0 [url=service:jmx:rmi://calvin/jndi/rmi://calvin:8686/calvin/7676/jmxrmi]
        admin tcp ADMIN 12345
        jms tcp NORMAL 56522
        mqdirect2 none NORMAL 0
        jmsdirect none NORMAL 0
        cluster tcp CLUSTER 50726

        The property names for configuring static ports in MQ are in the MQ admin guide.

        Changing this to a docs issue since this needs to be a part of the GF admin guide.

        Show
        Satish Kumar added a comment - Static ports can be configured by either setting them as part of the properties bucket in jms-service or the properties bucket for jms-host. For instance, the admin tcp port can be changed by running the following command: ./asadmin set server-config.jms-service.property.imq\\.admin\\.tcp .port=12345 Telnet after running the command (Note: a restart is required for the changes to take effect) satish@calvin:~/sats/glassfish3/glassfish/bin$ telnet localhost 7676 Trying ::1... Connected to localhost. Escape character is '^]'. 101 imqbroker 4.5 cluster_discovery tcp CLUSTER_DISCOVERY 0 portmapper tcp PORTMAPPER 7676 [imqvarhome=/space/satish/sats/glassfish3/glassfish/domains/domain1/imq,imqhome=/space/satish/sats/glassfish3/mq,sessionid=5793367024399554304] jmxrmi rmi JMX 0 [url=service:jmx:rmi://calvin/jndi/rmi://calvin:8686/calvin/7676/jmxrmi] admin tcp ADMIN 12345 jms tcp NORMAL 56522 mqdirect2 none NORMAL 0 jmsdirect none NORMAL 0 cluster tcp CLUSTER 50726 The property names for configuring static ports in MQ are in the MQ admin guide. Changing this to a docs issue since this needs to be a part of the GF admin guide.
        Hide
        Mike Fitch added a comment -

        Added [UB], unbundled doc, indicator

        Show
        Mike Fitch added a comment - Added [UB] , unbundled doc, indicator
        Hide
        Mike Fitch added a comment -

        Instructions for setting broker properties have been added to the GlassFish Server Admin Guide. In the attached pdf, see:

        • "Setting Message Queue Broker Properties in the JMS Service Configuration" on page 337 to see how at the jms-service level
        • "To Create a JMS Host" on pages 339-340 to see how when creating a JMS host
        • "To Update a JMS Host" on page 341 to see how when updating a JMS host
        Show
        Mike Fitch added a comment - Instructions for setting broker properties have been added to the GlassFish Server Admin Guide. In the attached pdf, see: "Setting Message Queue Broker Properties in the JMS Service Configuration" on page 337 to see how at the jms-service level "To Create a JMS Host" on pages 339-340 to see how when creating a JMS host "To Update a JMS Host" on page 341 to see how when updating a JMS host

          People

          • Assignee:
            Mike Fitch
            Reporter:
            Tom Mueller
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: