artembilan/spring-integration — comment on commit 2b4f0b6d754df2c83bea1285b1d4b9378c004c4d
File:  line 0
By olegz:

Not exactly. I don't think its a problem with the framework, rather a limitation of Java.
Keep in mind, even if temporary channels were somehow registered with ApplicationContext and were named channels and we were able to convert instances to names that would still not solve the problem consistently.
Always think about this. Persisted Message might be deserialized in a new context which might not have that channel present. So Channel is an address that might not be available or known in that application context. So that is the main point.
When we put an emphasis on channel name, than at least when exception is thrown it would be more explicit in telling you what is wrong (e.g., channel 'foo' can not be resolved)