How to transfer my text messages from old iphone to new one?

I just upgraded from iphone 3gs to a 4s, and i would like to transfer all of my text messages to my new iphone, is there a way i can do that, because i would really like to keep all of my messages.

P.S my old iphone is jailbroken i don't know if that would help with anything

You may try the "restore and backup" function on iTunes. Made a bakup for your iPhone 3gs first and then restore your iPhone 4s from the iPhone 3gs' backup files.

How to back up
http://support.apple.com/.../kb/HT1766
How to restore
http://support.apple.com/.../kb/HT1414

I think you could use the iCloud. If you feel it is not easy, you could use the iStonsoft transfer your files to computer, and then transfer them to your new iPhone, this way is quicker. And, Merry Chritmas.