1 2 Previous Next 23 Replies Latest reply on Dec 9, 2003 9:28 AM by himesh Go to original post
      • 15. Re: creating multiple instances of jboss
        eniquette

        I'm not sure why I got the sql exception in the first place but After posting my question I went ahead and tried what you have suggested and it appears to work. I wanted to make sure that I have a different connectionURL for each instance and so I looked at the jmx console under ManagedConnectionFactoryProperties to see if it indicated the connection string. For the 1st intance it did show one of the connections but for the other two it did not. Any suggestion how to locate or look at what the server is actually pointing to? By the way, thank you for putting that bit of information out in the first place. You've been a great help. Thanks again.

        • 16. Re: creating multiple instances of jboss
          bkross

          I've never checked JMX to ensure the connection strings are different. I tested my configuration by running two instances of my application against two different databases. Based on the data, I was able to tell that the connections are correct.

          Running multiple instances is something that we've had to do to avoid having separate servers for each instance. This was to provide some demonstration versions to our potential clients. I figured it would be worth explaining how we got it to work as I've seen other people struggling with this. To be honest, I got most of the information from the paid documentation and a bit of trial and error.

          • 17. Re: creating multiple instances of jboss
            eniquette

            Bryan,

            Trial and error is what its all about, never the less you gave me a kick start that's well appreciated.

            Secondly, because the test data that I was using kept getting rolled back I wasn't able to initially check the database for updates but I what ended up doing is putting in a system println of the url from the connection's DatabaseMetaData object.

            Thanks again.
            Ed

            • 18. Re: creating multiple instances of jboss
              rme

              I submitted a patch to JBoss 3.2.2RC2 (but should also work of 3.2.1
              code) that gives on far greater flexibility in configuring a
              service-binding.xml file. The patch ID is: 790877.
              url:
              http://sourceforge.net/tracker/index.php?func=detail&aid=790877&group_id=22866&atid=376687

              It alters some of the code down in: varia/src/main/org/jboss/services/binding

              At the bottom of the patch page you can download the zip file.

              RME

              • 19. Re: creating multiple instances of jboss
                pgmjsd

                Just replying to my own post here. I just read 'chapter 10' of the JBoss Admin docs, and realized that my ANT-based solution is a bit redundant. Oops! Sorry if I mislead anyone... still unlearning Weblogic and learning JBoss. :)

                • 20. Re: creating multiple instances of jboss
                  the_bone_ranger

                  Under the server directory there is all, default & minimal.

                  They all seem to have the same ports specified in their jboss-service.xml files.

                  Doesn't this create any conflicts?

                  If not, souldn't I be able to drop my ear file into any of them and it will have the same result?

                  When I do drop my ear file into all/deploy, nothing happens ( in the stdout). Why not?

                  • 21. Re: creating multiple instances of jboss
                    admin

                    > They all seem to have the same ports specified in
                    > their jboss-service.xml files.
                    >
                    > Doesn't this create any conflicts?

                    No, as long as you run just one instance of JBoss at a time.


                    > If not, souldn't I be able to drop my ear file into
                    > any of them and it will have the same result?

                    No, you have to pick a configuration you want to run with.


                    > When I do drop my ear file into all/deploy, nothing
                    > happens ( in the stdout). Why not?

                    run -c all

                    -- Juha

                    • 22. Re: creating multiple instances of jboss
                      cfcfree

                      I tried to use the service-bindings method of creating multiple servers, but get an exception the rmi port 1098 is in use when i start instance2.

                      I tried modifying the service-bindings.xml file, but it does not seem able to change to attributes for the same service.

                      • 23. Re: creating multiple instances of jboss
                        himesh

                        Hi,

                        I got the multiple configuration thing figured out and setup. Now I would like to start BOTH the servers at the same time.

                        Also how do I setup various ports and virtual hosts for my application ?

                        - Regards,

                        1 2 Previous Next