From many textbooks (i.e. Pathria and Kittel), the link between temperature, $T$ and Statistical/Boltzmann entropy, $S$, is established by allowing two systems to exchange energy through the diathermal wall and then we calculate the number of microstates for the two systems. Supposed that system 1 and system 2 have microstates of $\Omega_1(E_1)$ and $\Omega_2(E_2)$ respectively, then in equilibrium,
$$ \begin{equation} \frac{\partial\hspace{0.1cm} ln(\Omega_1)}{ \partial E_1} = \frac{\partial\hspace{0.1cm} ln(\Omega_2)}{ \partial E_2} \end{equation} $$
at this point, most textbooks have not introduced the calculation of states by integrating over the phase space volume yet, so the Boltzmann's entropy, $S= k \hspace{0.1cm} ln \Omega$ is simply introduced here and they conclude that the definition of temperature must be: $$ \begin{equation} \frac{1}{kT} = \frac{\partial S}{ \partial E} \end{equation} $$ But from the Wiki page of microcanonical sensemble and Robertson's Statistical Thermophysics, it seems like Boltzmann's entropy is one of the identities of a microcanonical ensemble.
So it's tempting for me to make the following statement:
To find the relationship between temperature, $T$ and Statistical/Boltzmann entropy, $S$, one has to invoke the microcanonical ensemble.
But it seems like this statement contradicts the fact that microcanonical ensemble is made up of identical systems with the same fixed energy (pg 110, Robertson's Statistical Thermophysics) and those systems are isolated. But the definition of temperature requires the exchange of energy! Did my reasoning go wrong somewhere?