esa / CCSDS_MO_TRANS

REPOSITORY ARCHIVED - for the latest version please go to https://github.com/esa/mo-services-java
Other
3 stars 7 forks source link

Update SPPBaseTransport.java #14

Closed CesarCoelho closed 7 years ago

CesarCoelho commented 7 years ago

Randomness during the creation of Endpoints removed and replaced with a simple sequence generator.

SamCooper commented 7 years ago

Aren't we going to just end up with the naming conflict where they all end up using the same endpoint name with this?

CesarCoelho commented 7 years ago

Not really, different applications will have different APIDs. So, you get something like: App A: APID=123 Service 1: uri: 123/1 broker: 123/2 Service 2: uri: 123/2

App B: APID=124 Service 1: uri: 124/1 Service 2: uri: 124/2 Service 3: uri: 124/3 broker: 124/4 (etc)

And if you run multiple instances of the same application your randomness might still hit a endpoint already in use because they are running in different processes.