Is there a simple way to externalize big sql queries from jdbc outbound gateways, instead of inlining it? The reason being that we\'re having to many big queries to make, an
Yes, you can put them in a properties file, and use properties placeholders ${...} to resolve them, or you can use SpEL...
"#{myQueryBean.queryOne}"
where myQueryBean is a that's an instance of a class with a method...
public String getQueryOne() {...}
or a static constant on a class...
"#{T(foo.Queries).QUERY_ONE}"
public static final String QUERY_ONE = "...";