I have had this confusion for a while now. We solve the Hamilton Jacobi equation,
$$H+\frac{\partial S}{\partial t}=0$$
Say we get a solution $S(q,\alpha,t)$ where $\alpha$ is a constant of integration. The approach is then to identity $\alpha$ as the new momentum.
I have trouble understanding this, when we define $\alpha$ as the new momentum, is $\alpha(p,q,t)$? Is $\alpha$ a function of the old co-ordinates and time? My understanding is that $\alpha$ is a constant, a number which is determined by the initial conditions we give and we try to invert the solutions locally in HJ approach.
And what is the difference between a constant of integration and constant of motion?