You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by ow...@apache.org on 2002/06/19 17:33:42 UTC
cvs commit: xml-axis-wsif/java/src/org/apache/wsif/providers/ejb WSIFPort_EJB.java
owenb 2002/06/19 08:33:40
Modified: java/src/org/apache/wsif/providers/soap/apacheaxis
WSIFPort_ApacheAxis.java
java/src/org/apache/wsif/providers/java WSIFPort_Java.java
java/src/org/apache/wsif/providers/soap/soaprmi
WSIFPort_SoapRMI.java
java/src/org/apache/wsif/providers/jms WSIFPort_Jms.java
java/src/org/apache/wsif/providers/ejb WSIFPort_EJB.java
Log:
Changed getDynamicWSIFOperation method so that it returns a copy of a
WSIFOperation if it has already been created rather than returning the original reference.
Revision Changes Path
1.4 +10 -2 xml-axis-wsif/java/src/org/apache/wsif/providers/soap/apacheaxis/WSIFPort_ApacheAxis.java
Index: WSIFPort_ApacheAxis.java
===================================================================
RCS file: /home/cvs/xml-axis-wsif/java/src/org/apache/wsif/providers/soap/apacheaxis/WSIFPort_ApacheAxis.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- WSIFPort_ApacheAxis.java 12 Jun 2002 10:27:25 -0000 1.3
+++ WSIFPort_ApacheAxis.java 19 Jun 2002 15:33:40 -0000 1.4
@@ -364,11 +364,19 @@
public WSIFOperation_ApacheAxis getDynamicWSIFOperation(
String name,
String inputName,
- String outputName) {
+ String outputName)
+ throws WSIFException {
Tr.entry(this, name, inputName, outputName);
- WSIFOperation_ApacheAxis operation =
+
+ WSIFOperation_ApacheAxis tempOp =
(WSIFOperation_ApacheAxis) operationInstances.get(
getKey(name, inputName, outputName));
+
+ WSIFOperation_ApacheAxis operation = null;
+ if (tempOp != null) {
+ operation = tempOp.copy();
+ }
+
if (operation == null) {
BindingOperation bindingOperationModel =
port.getBinding().getBindingOperation(name, inputName, outputName);
1.3 +6 -1 xml-axis-wsif/java/src/org/apache/wsif/providers/java/WSIFPort_Java.java
Index: WSIFPort_Java.java
===================================================================
RCS file: /home/cvs/xml-axis-wsif/java/src/org/apache/wsif/providers/java/WSIFPort_Java.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- WSIFPort_Java.java 12 Jun 2002 10:27:24 -0000 1.2
+++ WSIFPort_Java.java 19 Jun 2002 15:33:40 -0000 1.3
@@ -141,9 +141,14 @@
throws WSIFException {
Tr.entry(this, name, inputName, outputName);
- WSIFOperation_Java operation =
+ WSIFOperation_Java tempOp =
(WSIFOperation_Java) operationInstances.get(
getKey(name, inputName, outputName));
+
+ WSIFOperation_Java operation = null;
+ if (tempOp != null) {
+ operation = tempOp.copy();
+ }
if (operation == null) {
BindingOperation bindingOperationModel =
1.3 +9 -2 xml-axis-wsif/java/src/org/apache/wsif/providers/soap/soaprmi/WSIFPort_SoapRMI.java
Index: WSIFPort_SoapRMI.java
===================================================================
RCS file: /home/cvs/xml-axis-wsif/java/src/org/apache/wsif/providers/soap/soaprmi/WSIFPort_SoapRMI.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- WSIFPort_SoapRMI.java 12 Jun 2002 10:27:24 -0000 1.2
+++ WSIFPort_SoapRMI.java 19 Jun 2002 15:33:40 -0000 1.3
@@ -354,10 +354,17 @@
public WSIFOperation_SoapRMI getDynamicWSIFOperation(
String name,
String inputName,
- String outputName) {
- WSIFOperation_SoapRMI operation =
+ String outputName)
+ throws WSIFException {
+ WSIFOperation_SoapRMI tempOp =
(WSIFOperation_SoapRMI) operationInstances.get(
getKey(name, inputName, outputName));
+
+ WSIFOperation_SoapRMI operation = null;
+ if (tempOp != null) {
+ operation = tempOp.copy();
+ }
+
if (operation == null) {
BindingOperation bindingOperationModel =
port.getBinding().getBindingOperation(name, inputName, outputName);
1.3 +6 -1 xml-axis-wsif/java/src/org/apache/wsif/providers/jms/WSIFPort_Jms.java
Index: WSIFPort_Jms.java
===================================================================
RCS file: /home/cvs/xml-axis-wsif/java/src/org/apache/wsif/providers/jms/WSIFPort_Jms.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- WSIFPort_Jms.java 12 Jun 2002 10:27:23 -0000 1.2
+++ WSIFPort_Jms.java 19 Jun 2002 15:33:40 -0000 1.3
@@ -149,9 +149,14 @@
throws WSIFException {
Tr.entry(this, name, inputName, outputName);
- WSIFOperation_Jms operation =
+ WSIFOperation_Jms tempOp =
(WSIFOperation_Jms) operationInstances.get(getKey(name, inputName, outputName));
+ WSIFOperation_Jms operation = null;
+ if (tempOp != null) {
+ operation = tempOp.copy();
+ }
+
if (operation == null) {
BindingOperation bindingOperationModel =
fieldPortModel.getBinding().getBindingOperation(name, inputName, outputName);
1.3 +6 -1 xml-axis-wsif/java/src/org/apache/wsif/providers/ejb/WSIFPort_EJB.java
Index: WSIFPort_EJB.java
===================================================================
RCS file: /home/cvs/xml-axis-wsif/java/src/org/apache/wsif/providers/ejb/WSIFPort_EJB.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- WSIFPort_EJB.java 12 Jun 2002 10:27:25 -0000 1.2
+++ WSIFPort_EJB.java 19 Jun 2002 15:33:40 -0000 1.3
@@ -119,8 +119,13 @@
throws WSIFException {
Tr.entry(this, name, inputName, outputName);
- WSIFOperation_EJB operation =
+ WSIFOperation_EJB tempOp =
(WSIFOperation_EJB) operationInstances.get(getKey(name, inputName, outputName));
+
+ WSIFOperation_EJB operation = null;
+ if (tempOp != null) {
+ operation = tempOp.copy();
+ }
if (operation == null) {
BindingOperation bindingOperationModel =