diff options
author | 2016-06-24 15:06:58 +0300 | |
---|---|---|
committer | 2016-06-24 15:06:58 +0300 | |
commit | 095dee1388919eac7d3a3fa6fc93767f82c16365 (patch) | |
tree | 094ecad722a7a99ecbbabfb370fbdf51d80e8f11 /src/main/java/com/juick/jabber/ws/WSData.java | |
parent | 27e6c9c5edb2642c31735fcb0effb9acd82bd4af (diff) |
spring-jdbc
Diffstat (limited to 'src/main/java/com/juick/jabber/ws/WSData.java')
-rw-r--r-- | src/main/java/com/juick/jabber/ws/WSData.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main/java/com/juick/jabber/ws/WSData.java b/src/main/java/com/juick/jabber/ws/WSData.java index d77257e6..3abc63d8 100644 --- a/src/main/java/com/juick/jabber/ws/WSData.java +++ b/src/main/java/com/juick/jabber/ws/WSData.java @@ -3,6 +3,8 @@ package com.juick.jabber.ws; import com.juick.server.MessagesQueries; import com.juick.server.UserQueries; import com.juick.xmpp.utils.Base64; +import org.springframework.jdbc.core.JdbcTemplate; + import java.io.IOException; import java.net.InetSocketAddress; import java.nio.ByteBuffer; @@ -14,7 +16,6 @@ import java.nio.channels.SocketChannel; import java.nio.charset.Charset; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; -import java.sql.Connection; import java.util.Iterator; /** @@ -24,10 +25,10 @@ import java.util.Iterator; public class WSData implements Runnable { static final String WEBSOCKET_GUID = "258EAFA5-E914-47DA-95CA-C5AB0DC85B11"; - Connection sql; + JdbcTemplate sql; public Selector sel; - public WSData(Connection sql) { + public WSData(JdbcTemplate sql) { this.sql = sql; } |