182 |
|
* threads. |
183 |
|
*/ |
184 |
|
public void run() { |
185 |
– |
// construct now, and use multiple times |
186 |
– |
XMLPacketMaker xmlPacketMaker = new XMLPacketMaker(); |
187 |
– |
|
185 |
|
boolean run=true; |
186 |
|
|
187 |
|
// keep these out here, saves recreating the object |
198 |
|
XMLPacket packet = null; |
199 |
|
|
200 |
|
try { |
201 |
< |
packet = xmlPacketMaker.createXMLPacket(xml); |
201 |
> |
packet = _xmlCache.getXMLPacket(xml); |
202 |
|
} catch(InvalidXMLException e) { |
203 |
|
_logger.write(toString(), Logger.ERROR, "Invalid XML: "+e); |
204 |
|
// skip the rest of this loop iteration |
336 |
|
* Outgoing ALL Queue |
337 |
|
*/ |
338 |
|
private Queue _allQueue; |
339 |
+ |
|
340 |
+ |
/** |
341 |
+ |
* A reference to the XMLCache in use |
342 |
+ |
*/ |
343 |
+ |
private XMLCache _xmlCache = XMLCache.getInstance(); |
344 |
|
|
345 |
|
//---STATIC ATTRIBUTES--- |
346 |
|
|