A stub connection for a heat exchanger that is arranged in a housing and has a stack including plates and fins. The housing consists of housing parts which can be joined together, and at least one first stub for a first heat-exchanging medium being integrated directly into the housing. The stub connection also includes at least one second stub for a second heat-exchanging medium that extends to outside the housing. The at least one second stub is configured for the connection of a line and is integrated directly or indirectly into the housing.