Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revise LobHandler usage in JDBC module #9192

Closed
artembilan opened this issue May 28, 2024 · 0 comments
Closed

Revise LobHandler usage in JDBC module #9192

artembilan opened this issue May 28, 2024 · 0 comments

Comments

@artembilan
Copy link
Member

\spring-integration\spring-integration-jdbc\src\test\java\org\springframework\integration\jdbc\config\JdbcMessageStoreParserTests.java:81: warning: [deprecation] LobHandler in org.springframework.jdbc.support.lob has been deprecated
                assertThat(ReflectionTestUtils.getField(store, "lobHandler")).isEqualTo(context.getBean(LobHandler.class));
                                                                                                        ^
\spring-integration\spring-integration-jdbc\src\test\java\org\springframework\integration\jdbc\store\channel\AbstractJdbcChannelMessageStoreTests.java:138: warning: [deprecation] LobHandler in org.springframework.jdbc.support.lob has been deprecated
                        private LobHandler lobHandler = new DefaultLobHandler();
                                ^
\spring-integration\spring-integration-jdbc\src\test\java\org\springframework\integration\jdbc\store\channel\AbstractJdbcChannelMessageStoreTests.java:138: warning: [deprecation] DefaultLobHandler in org.springframework.jdbc.support.lob has been deprecated
                        private LobHandler lobHandler = new DefaultLobHandler();
                                                            ^
3 warnings
@artembilan artembilan added this to the 6.4.0-M1 milestone May 28, 2024
EddieChoCho pushed a commit to EddieChoCho/spring-integration that referenced this issue Jun 26, 2024
Fixes: spring-projects#9192

With modern drivers we don't need BLOB-specific handling anymore.
The regular `PreparedStatement.setBytes()` and `ResultSet.getBytes()`
are enough for our serialized messages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant