As kaiser pointed out, you need to use the save_post
hook to call your save_my_metadata()
function.
See this code sample for a complete example of saving (and validating) metabox data:
https://github.com/Veraxus/nv-example-meta-box/blob/master/init.php