Project: springxd
Issue XD-1408: Container ID is not equal to its application context ID
The ContainerServerApplication has a bean ContainerMetaData whose ID is equal to the ContainerServerApplication context's ID. The ContainerMetadata is alway referred (using @Autowired) in ContainerConfiguration class and this injects a new bean whose containerID is different from that of the containerID created at ContainerServerApplication. Also, this is the ID that gets stored as the container ID in znode for /xd/containers by ContainerRegistrar. We should avoid having duplicate container metadata and the container ID needs to be same as that of the ContainerServerApplication's context ID.
Story points: 3