3 Replies Latest reply on May 22, 2012 2:56 AM by wdfink

    how to modify *-ds.xml for different enviroments?

    gazua

      Assume that we have Dev, Test, UAT, pre-prod and prod enviroments.

       

      How can we have a *-ds.xml file as part of a EAR deployment where the DB URL, user, password changes depending on the evironment?

       

      Also assume that the people that admin Dev and Test environments can not know the user/password/URL for higher level environments because of security issues.

       

      Cheers

      Vic

        • 1. Re: how to modify *-ds.xml for different enviroments?
          wdfink

          In my understanding the *-ds.xml files are configuration for the environment because of what you explain. A developer might use a local DB and does not know the productive environment.

          For this I never pack such configuration into an application.

           

          The DB properties must only known by admin, if you pack it into the application it will be easy to read the configuration which break the security.

          • 2. Re: how to modify *-ds.xml for different enviroments?
            gazua

            Ok. By your answer I have to assume that there is no way of dynamically change the values of *-ds.xml files when they are packaged with the EAR file.

             

            So the next question is, What can be done to dynamically change the values(user, pw, url) of a datasource when a EAR app is deployed?

             

            Cheers

            Vic

            • 3. Re: how to modify *-ds.xml for different enviroments?
              wdfink

              AFAIK there is a new feature for getConnection(user,passwd), but I'm not sure in which release it was (I suppose AS7.2, and I don't think that this will go to AS4/5/6)