A simple method based on simulated moments is proposed for estimating the fixed-effects and variance components in a generalized linear mixed model (GLMM). It is shown that the method is not only computationally attractive but also leads to consistent estimators. On the other hand, simulation shows that the method can be quite inefficient.