To Oleg.zhurakousky
The reason why I have to access the channel is that my application wants to monitor a gateway and the channel it used.
I want to know the message remaining amounts of the channels before I start or stop the gateway.

To Cleric:
Sorry for bringing you many misunderstanding.
Not I but my application doesn't know the channel's name used in gateway.
My application just get gateway from spring application context by bean type.
But it doesn't know which channel is used by the gateway.