Hello Lorette,
Civil registration began in Ireland in 1864. Up to this point the churches kept records of baptism and marriage. However as there was no compulsion on them to do so, many of the parish records start at different times. A few parishes have records going back to 1790's or so, while others didn't start until about 1840's or even later.
I have searched both sites www.rootsireland.ie and www.irishgenealogy.ie for a marriage record for John Martin and Mary Hennessy but I couldn't find one.
I did however find the baptismal record for James in Co. Cork in 1820. This is on rootsireland.
However I also found a record for a child William Martin, father John Martin, mother Mary Hennessy, baptised in St. Mary's Parish in Co. Limerick in 1824.
When I performed a search for children born to this couple, only these two records came up. I don't know what does to your theory about the travel dates.
James is proved, but it throws up more questions than it answers.
Kind regards,
Anne Dennehy