znerd / xins

XML Interface for Network Services
http://xins.sourceforge.net/
BSD 3-Clause "New" or "Revised" License
3 stars 0 forks source link

Allow disabling of NDC generation #3

Closed znerd closed 14 years ago

znerd commented 14 years ago

It should be possible to disable the setting of NDCs (in Log4J terminology) or context IDs (in XINS terminology). System, bootstrap and runtime properties should be supported. The name of the property should be "org.xins.server.contextID.push". Supported values should be "true" (the default) and "false".

Example use cases:

  1. No properties set, system nor bootstrap nor runtime
    • context IDs should be generated as in XINS 2.2
    • existing context IDs (set by the servlet container, for example) should be overwritten
  2. Bootstrap property is set to "false"
    • context IDs should not be generated
    • existing context IDs (set by the servlet container, for example) should remain in place
  3. Bootstrap property is set to "false" and runtime property is set to "true"
    • see use case 1
  4. Bootstrap property is set to "true" and runtime property is set to "false"
    • see use case 2
  5. Bootstrap property is set to "false" and runtime property is set to "false"
    • see use case 2
  6. Bootstrap property is set to "true" and runtime property is set to "true"
    • see use case 1
znerd commented 14 years ago

Implemented in xins-3.0-alpha8.