From 262e81f3daea8f80c36bd9618f2f3d9044a405cd Mon Sep 17 00:00:00 2001 From: erickson Date: Tue, 14 Aug 2007 19:08:38 +0000 Subject: [PATCH] for now, we reference the wstx stax implementation directly to resolve class loader issues git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1077 9efc2488-bf62-4759-914b-345cdb29e865 --- src/java/org/opensrf/net/xmpp/XMPPReader.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/java/org/opensrf/net/xmpp/XMPPReader.java b/src/java/org/opensrf/net/xmpp/XMPPReader.java index 01a4f91..9c14497 100644 --- a/src/java/org/opensrf/net/xmpp/XMPPReader.java +++ b/src/java/org/opensrf/net/xmpp/XMPPReader.java @@ -8,6 +8,7 @@ import java.io.InputStream; import java.util.concurrent.ConcurrentLinkedQueue; import java.util.Date; +import com.ctc.wstx.stax.WstxInputFactory; /** * Slim XMPP Stream reader. This reader only understands enough XMPP @@ -133,8 +134,8 @@ public class XMPPReader implements Runnable { public synchronized long waitCoreEvent(long timeout) { if(msgQueue.peek() != null || timeout == 0) return 0; - long start = new Date().getTime(); + try{ if(timeout < 0) wait(); else wait(timeout); @@ -158,7 +159,8 @@ public class XMPPReader implements Runnable { try { - XMLInputFactory factory = XMLInputFactory.newInstance(); + //XMLInputFactory factory = XMLInputFactory.newInstance(); + XMLInputFactory factory = new com.ctc.wstx.stax.WstxInputFactory(); /** disable as many unused features as possible to speed up the parsing */ factory.setProperty(XMLInputFactory.IS_REPLACING_ENTITY_REFERENCES, Boolean.FALSE); -- 2.11.0