Currently topology advertisement is done within a main class:
JAXRSArchive deployment = ShrinkWrap.create(JAXRSArchive.class);
// advertise this deployment as `events`
It could be useful to expose the advertisement functionality outside of an archive/deployment so that something like:
could be done within a Java EE component - a JAX-RS application advertising itself, individual websocket or JAX-RS resources, etc.