Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-5923

Unable to configure the secondaryBindPort port in the Service Binding Manager for JBoss Messaging

    XMLWordPrintable

Details

    • Workaround Exists
    • Hide

      Change the configuration files as mentioned in the description.

      Show
      Change the configuration files as mentioned in the description.
    • Hide
      CAUSE

      CONSEQUENCE

      FIX

      RESULT
      Show
      CAUSE CONSEQUENCE FIX RESULT
    • Not Yet Documented

    Description

      The secondaryBindPort is not specified in $JBOSS_HOME$/server/$PROFILE/deploy/messaging/remoting-bisocket-service.xml, it is commented out. And it cannot be configured from the Service Binding Manager

      The SBM bindings-jboss-beans.xml and remoting-bisocket-service.xml should be changed such as below to allow the port to be configured from the SBM.

      Add these to <JBOSS_HOME>/server/<profile>/conf/bindingservice.beans/META-INF/bindings-jboss-beans.xml:
      In the "org.jboss.services.binding.ServiceBindingMetadata" elementClass for the StandardBindings"StandardBindings" bean:

      <bean class="org.jboss.services.binding.ServiceBindingMetadata">
      <property name="serviceName">jboss.messaging:service=Connector,transport=bisocket</property>
      <property name="bindingName">secondaryBindPort</property>
      <property name="port">4458</property>
      <property name="description">Secondary Socket for JBoss Messaging 1.x</property>
      </bean>

      In the "SystemPropertyBinder" bean:

      <bean class="org.jboss.services.binding.SystemPropertyBinding">
      <constructor>
      <parameter>jboss.messaging.connector.bisocket.secondaryport</parameter>
      <parameter class="int">
      <value-factory bean="ServiceBindingManager" method="getIntBinding">
      <parameter>jboss.messaging:service=Connector,transport=bisocket</parameter>
      <parameter>secondaryBindPort</parameter>
      </value-factory>
      </parameter>
      </constructor>
      </bean>

      Specify this in <JBOSS_HOME>/server/<profile>/deploy/messaging/remoting-bisocket-service.xml:

      <attribute name="secondaryBindPort">${jboss.messaging.connector.bisocket.secondaryport}</attribute>

      Of course, "4458" can be any valid port.

      Attachments

        Activity

          People

            gaohoward Howard Gao
            rhn-support-bmaxwell Brad Maxwell
            Russell Dickenson Russell Dickenson (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: