Uploaded image for project: 'Blacktie'
  1. Blacktie
  2. BLACKTIE-187

Allow a platform neutral Environment.xml to be provided

    Details

    • Type: Feature Request
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 1.0MR6
    • Component/s: All C++ , All Java
    • Labels:
      None

      Description

      Currently a different Environment.xml file is required based on whether the platform is linux or windows and a "-c linux" or "-c win32" is provided.

      The configuration for linux or win32 only varies for the name of the library to load for transport of resource manager.

      It would be good if the same configuration file could be used for windows as for linux and the environmental discrepancies be described in the same file (to save misconfigurations).

      As such it is recommended to allow the addition of platform specific configuration to be provided as follows:

      <SERVICE name='BAR' win32TransportLibrary='atmibroker-hybrid.dll' unixTransportLibrary="libatmibroker-hybrid.so"/>

      and both the following defined for the XA_RESOURCE
      <WIN32_XA_LIB_NAME>/usr/local/BerkeleyDB.4.7/lib/libdb.so</WIN32_XA_LIB_NAME>
      <LINUX_XA_LIB_NAME>/usr/local/BerkeleyDB.4.7/lib/db.dll</LINUX_XA_LIB_NAME>

      In the code, instead of a "-c" command we can determine which of the TransportLibrary to use from an ifdef WIN32 (I think we already provide the WIN32 compiler flag on windows), or we can keep the "-c" if this is determined to be the most flexible.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                tomjenkinson Thomas Jenkinson
                Reporter:
                tomjenkinson Thomas Jenkinson
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: