Germany international Tim Borowski will join Bayern Munich when his contract with Werder Bremen expires at the end of the season.