[Opensrf-commits] r1077 - trunk/src/java/org/opensrf/net/xmpp
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Aug 14 15:12:26 EDT 2007
Author: erickson
Date: 2007-08-14 15:08:38 -0400 (Tue, 14 Aug 2007)
New Revision: 1077
Modified:
trunk/src/java/org/opensrf/net/xmpp/XMPPReader.java
Log:
for now, we reference the wstx stax implementation directly to resolve class loader issues
Modified: trunk/src/java/org/opensrf/net/xmpp/XMPPReader.java
===================================================================
--- trunk/src/java/org/opensrf/net/xmpp/XMPPReader.java 2007-08-07 15:28:44 UTC (rev 1076)
+++ trunk/src/java/org/opensrf/net/xmpp/XMPPReader.java 2007-08-14 19:08:38 UTC (rev 1077)
@@ -8,6 +8,7 @@
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 synchronized long waitCoreEvent(long timeout) {
if(msgQueue.peek() != null || timeout == 0) return 0;
+ long start = new Date().getTime();
- long start = new Date().getTime();
try{
if(timeout < 0) wait();
else wait(timeout);
@@ -158,7 +159,8 @@
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);
More information about the opensrf-commits
mailing list