antelder 2002/11/18 07:47:51
Modified: java/src/org/apache/wsif/providers/jms Tag: pre1_2_0-patches
WSIFPort_Jms.java
java/src/org/apache/wsif/providers/soap/apacheaxis Tag:
pre1_2_0-patches WSIFPort_ApacheAxis.java
WSIFJmsTransport.java
Log:
Correct JMS ports to properly close the JMS resources
Revision Changes Path
No revision
No revision
1.12.2.2 +11 -0
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.12.2.1
retrieving revision 1.12.2.2
diff -u -r1.12.2.1 -r1.12.2.2
--- WSIFPort_Jms.java 4 Nov 2002 16:52:11 -0000 1.12.2.1
+++ WSIFPort_Jms.java 18 Nov 2002 15:47:50 -0000 1.12.2.2
@@ -299,6 +299,17 @@
}
/**
+ * Closes the port. All methods are invalid after calling this method.
+ */
+ public void close() throws WSIFException {
+ Trc.entry(this);
+ if (jmsDest != null) {
+ jmsDest.close();
+ }
+ Trc.exit();
+ }
+
+ /**
* helper
*/
public String deep() {
No revision
No revision
1.13.2.1 +11 -0
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.13
retrieving revision 1.13.2.1
diff -u -r1.13 -r1.13.2.1
--- WSIFPort_ApacheAxis.java 24 Oct 2002 17:22:19 -0000 1.13
+++ WSIFPort_ApacheAxis.java 18 Nov 2002 15:47:50 -0000 1.13.2.1
@@ -527,6 +527,17 @@
}
}
+ /**
+ * Closes the port. All methods are invalid after calling this method.
+ */
+ public void close() throws WSIFException {
+ Trc.entry(this);
+ if (st != null && st instanceof WSIFJmsTransport) {
+ ((WSIFJmsTransport) st).close();
+ }
+ Trc.exit();
+ }
+
public String deep() {
String buff = "";
try {
1.3.2.1 +9 -0
xml-axis-wsif/java/src/org/apache/wsif/providers/soap/apacheaxis/WSIFJmsTransport.java
Index: WSIFJmsTransport.java
===================================================================
RCS file:
/home/cvs/xml-axis-wsif/java/src/org/apache/wsif/providers/soap/apacheaxis/WSIFJmsTransport.java,v
retrieving revision 1.3
retrieving revision 1.3.2.1
diff -u -r1.3 -r1.3.2.1
--- WSIFJmsTransport.java 15 Oct 2002 12:10:12 -0000 1.3
+++ WSIFJmsTransport.java 18 Nov 2002 15:47:50 -0000 1.3.2.1
@@ -62,6 +62,7 @@
import org.apache.axis.MessageContext;
import org.apache.axis.client.Call;
import org.apache.axis.client.Transport;
+import org.apache.wsif.WSIFException;
import org.apache.wsif.WSIFOperation;
import org.apache.wsif.logging.Trc;
import org.apache.wsif.util.jms.WSIFJMSDestination;
@@ -175,6 +176,14 @@
return t;
}
+ public void close() throws WSIFException {
+ Trc.entry(this);
+ if (destination != null) {
+ destination.close();
+ }
+ Trc.exit();
+ }
+
public String deep() {
String buff = "";
try {