We study the Јg*g* vertex for arbitrary gluon virtualities in the timelike and spacelike regions, using the perturbative QCD hard scattering approach and an input wave function of the Ј meson consistent with the measured Ј␥*␥ transition form factor. The contribution of the gluonic content of the Ј meson is taken into account, enhancing the form factor over the entire virtuality considered. However, data on the electromagnetic transition form factor of the Ј meson are not sufficient to quantify the gluonic enhancement. We also study the effect of the transverse momenta of the partons in the Ј meson on the Јg*g* vertex, using a modified hard scattering approach based on the Sudakov formalism, and contrast the results with the ones in the standard hard scattering approach in which such effects are neglected. Analytic expressions for the Јg*g* vertex are presented in limiting kinematic regions and parametrizations are given satisfying the QCD anomaly, for real gluons, and perturbative QCD behavior for large gluon virtualities, in both the timelike and spacelike regions. Our results have implications for the inclusive decay B→ЈX and exclusive decays, such as B→Ј(K,K*), and for hadronic production processes NϩN(N )→ЈX.