Exclusive production of quarkonia as a probe of the generalized parton distribution for gluons