NOTE : I put the "software architech" hat.
For sure, you can do that, even if in the mid/long term It looks very error prone:
- domain is updated, nobody deploy the new jar, nothing works anymore.
- domain is updated, ready to dploy the new jar, the db can't be switched off
- ...
So, take in consideration ALL the tradeoffs, even the impossible ones, because impossible happen.
If you need to register only the very fisrt time, put a flag, or use a dedicated "register process" to do that job only one time.
My 2€cents