4 Replies Latest reply on May 18, 2010 4:40 AM by danescott

    jboss.identity file and JBoss 6 M1

      Hi,

       

      I'm hoping someone might be able to help me with this, I am porting code from JBoss 4.2.3 GA to 6.0 M1 and cannot generate the jboss.identity file that a few of our components rely on. What happened to the jboss.identity file in 6.0?

       

      In 4.2.3 GA I just fire up JBoss (from run.bat) and it creates the system GUID file in the JBOSS_HOME/server/default/data location, unfortunately this isn't the case with 6.0?

       

      Many thanks for any help given

      Best Regards

      Dan Escott

        • 1. Re: jboss.identity file and JBoss 6 M1
          jaikiran

          I haven't heard of any such file in any version of AS. Can you post its contents? How exactly did you start the server in 4.2.x? Also since you mention run.bat, I believe you are using Windows OS?

          • 2. Re: jboss.identity file and JBoss 6 M1

            Thanks for the reply...

             

            I am indeed running JBoss on Windows Vista x64, the jboss.identity file is created when I run a clean download of 4.2.3 GA from the run.bat. It looks like this:

             

            b35e92a385e865f3x-c8a6687x128a6f1d438x-8000116
            

             

            I have read about this file on the board here too:

             

            http://community.jboss.org/message/367674#367674

             

            In the past we have used this GUID to uniquely identify JBoss instances within a JMS context or storing application settings on a database. Its proved to be very useful.

             

            Best Regards

            Dan

            • 3. Re: jboss.identity file and JBoss 6 M1
              jaikiran

              I just checked my local 4.2.3 instance. And indeed that file gets generated. However, I don't see it being generated in AS-5.1.0 or 6.x. So I guess, remoting no longer creates that file.

               

              Daniel Escott wrote:

               


               

              In the past we have used this GUID to uniquely identify JBoss instances within a JMS context or storing application settings on a database. Its proved to be very useful.

               

              Best Regards

              Dan

              I don't know the details of your app, but can't you just generate a GUID of your own? Instead of relying for JBoss Remoting to do that?

              1 of 1 people found this helpful
              • 4. Re: jboss.identity file and JBoss 6 M1

                Thank you for confirming that for me, I'll have a go at the manual GUID generation at startup.

                Out of interest is there a common way to achieve this? I see the uuid-key-generator.sar, is there any information on a 'standard' way to achieve this?

                 

                Cheers

                Dan