9 Replies Latest reply on Mar 28, 2010 7:00 AM by kobiianko

    jms over port 80

    mendret

      hello all,
      i'm trying to configure JBoss 5.0.1.GA so that it only uses port 80 and http for the whole client-server communication. But I haven't figured out how to do this for messaging, in jboss 4.x it was possible to simply add

      <attribute name="URLPrefix">http://</attribute>
      <attribute name="URLPort">80</attribute>
      <attribute name="UseHostName">false</attribute>
      


      to the jboss-service.xml in /jms/jbossmq-httpil.sar/META-INF

      in jboss 5.0.1.GA there is no such file, but i'm quite sure that it is still possible to do this. if i change the port for messaging in the bindings.xml to 80 i get the following, understandable error
      address already in use 127.0.0.1:80
      


      well i was quite sure that that won't work but gave it at least a try.

      does anyone know a possible way to do this?

      thanks for any help you can give me

        • 1. Re: jms over port 80
          ataylor

          have a look at the user docs. It explains how to configure http.

          http://www.jboss.org/jbossmessaging/docs/index.html

          • 2. Re: jms over port 80
            jmesnil

            it's possible you have already something else running on port 80 (e.g. web server, web service or something else)

            Did you try loading the URL in your browser?

            • 3. Re: jms over port 80
              mendret

               


              it's possible you have already something else running on port 80


              yes the webserver is running on port 80, but that is exactly the questioned behavior, all traffic between client and server shall be over only one port, since the firewall has only one open port for incoming traffic, the http port 80.


              • 4. Re: jms over port 80
                ataylor

                you need to either stop the web server or open another port such as 8080.

                • 5. Re: jms over port 80
                  timfox

                  or use the servlet transport. this is documented on the wiki then you can share the port with other traffic

                  • 6. Re: jms over port 80
                    timfox
                    • 7. Re: jms over port 80
                      mendret

                      so two services on the same port won't work, well that's expected, but is there although no way of just sending and receiving messages over port 80, but letting the actual service run on another port?

                      if i use the http-transport it uses per default port 4458, for the connector-service, to could that somehow be forwarded, tunneled or something like that to use port 80?

                      as i showed in my first post in previous releases it was possible to let jboss use port 80 for the messages, even if the webserver is running on that port, so in short it was possible to make a few config entrys and the whole server was transfering all of it's data over a single port

                      • 8. Re: jms over port 80
                        mendret

                        oh, ok thanks timfox you probably answered my question since i was writing my last reply

                        • 9. Re: jms over port 80
                          kobiianko

                          Hi  a s,

                          I'm currntly working on JBoss 4.0.5, and would like the whole client-server communication to work on port 80,

                          I have understand from your post that you were able to do so on JBoss 4.x.

                          Could you post a step by step quick to do list, to make it work.

                           

                          I'll appreciate it very much if you'll reply.

                           

                          My main problem is getting the JMS to work on port 80.

                           

                          10x,

                          Kobi