9 Replies Latest reply on Mar 13, 2003 11:34 AM by jamoville

    Assigning RMI Port

    iaguirre

      We would like to know how and in which configuration file, the RMI port can be fixed and, by this way get JBoss workking through a Firewall.

      We are working with JBoss 2.4.3

      Thanks

      Idoia

        • 1. Re: Assigning RMI Port
          juergenheidak

          In the file standardjboss.xml under the /conf/default directory of the jboss installation can you define the port look for a tag named RMIObjectPort.

          Note that this tag ocurrs more than once.

          • 2. Re: Assigning RMI Port
            iaguirre

            Thank you for your answer.
            But, in older version of JBoss (v 2.2.1) JBoss used the following ports:
            Nameserver: default 1099
            RMI Used by Beans: default 4444
            Nameserver RMI: default 0: anonymous
            For the last port it was necesary to modify the jnp.properties configuration file adding a parameter:
            jnp.rmiPort=xxxx

            Do you know if something similar should be done with the actual versin of JBoss (v2.4.3). The jnp.properties doesn´t exist anymore.

            TIA
            Idoia



            > In the file standardjboss.xml under the /conf/default
            > directory of the jboss installation can you define
            > the port look for a tag named RMIObjectPort.
            >
            > Note that this tag ocurrs more than once.

            • 3. Re: Assigning RMI Port
              juergenheidak

              I'm sorry I know nothing about a jnp.rmiPort property :-(.

              • 4. Re: Assigning RMI Port
                conradt

                I'm using JBoss3.0.4 and had the same problem. I added the RmiPort attribute in the conf/jboss-service.xml like this:

                <!-- ==================================================================== -->
                <!-- JNDI -->
                <!-- ==================================================================== -->


                <!-- The listening port for the bootstrap JNP service. Set this to -1
                to run the NamingService without the JNP invoker listening port.
                -->
                1099
                4443


                • 5. Re: Assigning RMI Port
                  jamoville

                  I know how to do it with later builds of jboss so try this out and see if it works.
                  In your server/default/conf directory there should be a jboss-service.xml file. Open this file and look for this:



                  <!-- The listening port for the bootstrap JNP service. Set this to -1
                  to run the NamingService without the JNP invoker listening port.
                  -->
                  1099


                  You will need to add and attribute
                  1090

                  put this attribute directly under the "Port" attribute. The 1090 port can be any unused port.

                  Keep in mind that if you are using JMS through a firewall you will need to modify a different file. The jbossmq-service.xml file found in you deploy directory. You will have to change:
                  org.jboss.mq.il.oil.OILServerILService
                  to
                  org.jboss.mq.il.oil2.OIL2ServerILService
                  or don't modify this class name and use UIL

                  • 6. Re: Assigning RMI Port
                    jamoville

                    I know how to do it with later builds of jboss so try this out and see if it works.
                    In your server/default/conf directory there should be a jboss-service.xml file. Open this file and look for this:



                    <!-- The listening port for the bootstrap JNP service. Set this to -1
                    to run the NamingService without the JNP invoker listening port.
                    -->
                    1099


                    You will need to add and attribute
                    1090

                    put this attribute directly under the "Port" attribute. The 1090 port can be any unused port.

                    Keep in mind that if you are using JMS through a firewall you will need to modify a different file. The jbossmq-service.xml file found in you deploy directory. You will have to change:
                    org.jboss.mq.il.oil.OILServerILService
                    to
                    org.jboss.mq.il.oil2.OIL2ServerILService
                    or don't modify this class name and use UIL

                    • 7. Re: Assigning RMI Port
                      jamoville

                      I know how to do it with later builds of jboss so try this out and see if it works.
                      In your server/default/conf directory there should be a jboss-service.xml file. Open this file and look for this:



                      <!-- The listening port for the bootstrap JNP service. Set this to -1
                      to run the NamingService without the JNP invoker listening port.
                      -->
                      1099


                      You will need to add and attribute
                      1090

                      put this attribute directly under the "Port" attribute. The 1090 port can be any unused port.

                      Keep in mind that if you are using JMS through a firewall you will need to modify a different file. The jbossmq-service.xml file found in you deploy directory. You will have to change:
                      org.jboss.mq.il.oil.OILServerILService
                      to
                      org.jboss.mq.il.oil2.OIL2ServerILService
                      or don't modify this class name and use UIL

                      • 8. Re: Assigning RMI Port
                        jamoville

                        I know how to do it with later builds of jboss so try this out and see if it works.
                        In your server/default/conf directory there should be a jboss-service.xml file. Open this file and look for this:



                        <!-- The listening port for the bootstrap JNP service. Set this to -1
                        to run the NamingService without the JNP invoker listening port.
                        -->
                        1099


                        You will need to add and attribute
                        1090

                        put this attribute directly under the "Port" attribute. The 1090 port can be any unused port.

                        Keep in mind that if you are using JMS through a firewall you will need to modify a different file. The jbossmq-service.xml file found in you deploy directory. You will have to change:
                        org.jboss.mq.il.oil.OILServerILService
                        to
                        org.jboss.mq.il.oil2.OIL2ServerILService
                        or don't modify this class name and use UIL

                        • 9. Re: Assigning RMI Port
                          jamoville

                          I know how to do it with later builds of jboss so try this out and see if it works.
                          In your server/default/conf directory there should be a jboss-service.xml file. Open this file and look for this:



                          <!-- The listening port for the bootstrap JNP service. Set this to -1
                          to run the NamingService without the JNP invoker listening port.
                          -->
                          1099


                          You will need to add and attribute
                          1090

                          put this attribute directly under the "Port" attribute. The 1090 port can be any unused port.

                          Keep in mind that if you are using JMS through a firewall you will need to modify a different file. The jbossmq-service.xml file found in you deploy directory. You will have to change:
                          org.jboss.mq.il.oil.OILServerILService
                          to
                          org.jboss.mq.il.oil2.OIL2ServerILService
                          or don't modify this class name and use UIL