A four-digit integer $m$ and the four-digit integer obtained by reversing the order of the digits of $m$ are both divisible by 45. If $m$ is divisible by 7, what is the greatest possible value of $m$?

Let's think step by step and output the final answer within \boxed{}.
user