Since it doesn't concern a damp environment, I would have used regular white PVAC exterior adhesive. If the surfaces are clean, it holds extremely well.
PU glue is better but in a floor joist, it feels like it doesn't matter, as it is not exposed to water to justify it.
/Kent