The VCSEL aligns to the detector 116 and the cavity 136 thorough surface tension of the attachment solder 122.
The fiber 140 and the optional optical element 138 align to the cavity 136 through the interference with the sloping sidewalls.