aboutsummaryrefslogtreecommitdiff
path: root/juick-ws/src/main/java/com/juick/ws
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-12-12 23:22:55 +0300
committerGravatar Vitaly Takmazov2016-12-12 23:22:55 +0300
commit052f8508ab2c8995d135edb7f8207073332e1e96 (patch)
tree29e29fad98bd9f147d061be2fd66f794ee311dfc /juick-ws/src/main/java/com/juick/ws
parent7924b7d5f95d38b0022e0fdfcab37639c84c88fb (diff)
juick-ws: using json serialization
Diffstat (limited to 'juick-ws/src/main/java/com/juick/ws')
-rw-r--r--juick-ws/src/main/java/com/juick/ws/XMPPConnection.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/juick-ws/src/main/java/com/juick/ws/XMPPConnection.java b/juick-ws/src/main/java/com/juick/ws/XMPPConnection.java
index cd79ab08..7b456c3e 100644
--- a/juick-ws/src/main/java/com/juick/ws/XMPPConnection.java
+++ b/juick-ws/src/main/java/com/juick/ws/XMPPConnection.java
@@ -2,7 +2,6 @@ package com.juick.ws;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
-import com.fasterxml.jackson.dataformat.xml.XmlMapper;
import com.juick.User;
import com.juick.service.MessagesService;
import com.juick.service.SubscriptionService;
@@ -56,7 +55,7 @@ public class XMPPConnection implements AutoCloseable {
xmppPort = NumberUtils.toInt(env.getProperty("xmpp_port"), 5347);
wsJid = env.getProperty("ws_jid", "ws.juick.local");
- ms = new XmlMapper();
+ ms = new ObjectMapper();
XmppSessionConfiguration configuration = XmppSessionConfiguration.builder()
.extensions(Extension.of(com.juick.Message.class))