owenb 2002/06/14 03:17:41
Modified: java/src/org/apache/wsif/base WSIFDefaultOperation.java
Log:
Moved setup of simpleTypeReg from constructor to
makeSomeKindOfJmsMap method so that it is not run for every operation
that is created.
Revision Changes Path
1.2 +8 -12
xml-axis-wsif/java/src/org/apache/wsif/base/WSIFDefaultOperation.java
Index: WSIFDefaultOperation.java
===================================================================
RCS file:
/home/cvs/xml-axis-wsif/java/src/org/apache/wsif/base/WSIFDefaultOperation.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- WSIFDefaultOperation.java 12 Jun 2002 10:27:23 -0000 1.1
+++ WSIFDefaultOperation.java 14 Jun 2002 10:17:41 -0000 1.2
@@ -80,18 +80,7 @@
transient protected HashMap inJmsProps = new HashMap();
transient protected HashMap outJmsProps = new HashMap();
transient protected HashMap inJmsPropVals = new HashMap();
- transient private Hashtable simpleTypeReg = null;
-
- public WSIFDefaultOperation() {
- simpleTypeReg = new Hashtable();
- new Schema2Java(Constants.NS_URI_1999_SCHEMA_XSD).getRegistry(
- simpleTypeReg);
- new Schema2Java(Constants.NS_URI_2000_SCHEMA_XSD).getRegistry(
- simpleTypeReg);
- new Schema2Java(Constants.NS_URI_2001_SCHEMA_XSD).getRegistry(
- simpleTypeReg);
- }
-
+
/**
* @see WSIFOperation#executeRequestResponseOperation(WSIFMessage, WSIFMessage,
WSIFMessage)
*/
@@ -304,6 +293,13 @@
*/
protected HashMap makeSomeKindOfJmsMap(List list) throws WSIFException {
Tr.entry(this, list);
+ Hashtable simpleTypeReg = new Hashtable();
+ new Schema2Java(Constants.NS_URI_1999_SCHEMA_XSD).getRegistry(
+ simpleTypeReg);
+ new Schema2Java(Constants.NS_URI_2000_SCHEMA_XSD).getRegistry(
+ simpleTypeReg);
+ new Schema2Java(Constants.NS_URI_2001_SCHEMA_XSD).getRegistry(
+ simpleTypeReg);
HashMap props = new HashMap(list.size());
for (Iterator it = list.iterator(); it.hasNext();) {
Object ee = it.next();