whitlock 2002/10/01 08:06:17
Modified: java/test/org/apache/wsif/util/jms
NativeJMSRequestListener.java JMSAsyncListener.java
java/test/util TestUtilities.java
Log:
Use jms verbose output property
Revision Changes Path
1.12 +2 -1
xml-axis-wsif/java/test/org/apache/wsif/util/jms/NativeJMSRequestListener.java
Index: NativeJMSRequestListener.java
===================================================================
RCS file:
/home/cvs/xml-axis-wsif/java/test/org/apache/wsif/util/jms/NativeJMSRequestListener.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- NativeJMSRequestListener.java 1 Oct 2002 14:30:52 -0000 1.11
+++ NativeJMSRequestListener.java 1 Oct 2002 15:06:16 -0000 1.12
@@ -78,6 +78,7 @@
import org.apache.wsif.WSIFException;
import org.apache.wsif.logging.Trc;
import stockquote.wsiftypes.StockQuote;
+import util.TestUtilities;
import addressbook.wsiftypes.Address;
import addressbook.wsiftypes.AddressBook;
@@ -93,7 +94,7 @@
static final String sampleName = null;
static final String queueConnectionFactory = "WSIFSampleQCF";
static final String readQueue = null;
- static final boolean VERBOSE = false;
+ static final boolean VERBOSE = TestUtilities.isJmsVerbose();
private Thread listener;
1.7 +3 -1
xml-axis-wsif/java/test/org/apache/wsif/util/jms/JMSAsyncListener.java
Index: JMSAsyncListener.java
===================================================================
RCS file:
/home/cvs/xml-axis-wsif/java/test/org/apache/wsif/util/jms/JMSAsyncListener.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- JMSAsyncListener.java 4 Sep 2002 13:57:48 -0000 1.6
+++ JMSAsyncListener.java 1 Oct 2002 15:06:16 -0000 1.7
@@ -63,12 +63,14 @@
import javax.jms.Message;
import javax.jms.Queue;
import javax.jms.QueueReceiver;
+
import org.apache.wsif.WSIFCorrelationId;
import org.apache.wsif.WSIFCorrelationService;
import org.apache.wsif.WSIFException;
import org.apache.wsif.WSIFOperation;
import org.apache.wsif.logging.Trc;
import org.apache.wsif.util.WSIFCorrelationServiceLocator;
+import util.TestUtilities;
/**
* A simple JMS listener which can be used to test async operations
* @author ant elder <[EMAIL PROTECTED]>
@@ -82,7 +84,7 @@
static final String queueConnectionFactory = "WSIFSampleQCF";
static final String readQueue = null;
static final String httpUrlString =
"http://localhost:8080/soap/servlet/rpcrouter";
- static final boolean VERBOSE = false;
+ static final boolean VERBOSE = TestUtilities.isJmsVerbose();
private Thread listener;
private WSIFJMSListener list = new WSIFJMSListener() {
1.9 +8 -6 xml-axis-wsif/java/test/util/TestUtilities.java
Index: TestUtilities.java
===================================================================
RCS file: /home/cvs/xml-axis-wsif/java/test/util/TestUtilities.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- TestUtilities.java 18 Sep 2002 14:32:38 -0000 1.8
+++ TestUtilities.java 1 Oct 2002 15:06:17 -0000 1.9
@@ -171,6 +171,13 @@
return true;
}
+ public static boolean isJmsVerbose() {
+ String strVerbose = TestUtilities.getWsifProperty("wsif.jms.output");
+ if ("verbose".equals(strVerbose))
+ return true;
+ return false;
+ }
+
public static void setProviderForProtocol(String protocol) {
if ( protocol.equals( NON_DEFAULT_SOAP_PROTOCOL ) ) {
try {
@@ -256,11 +263,6 @@
public BridgeThread(String name) { this.name=name; }
public void run() {
try {
- String strVerbose = TestUtilities.getWsifProperty("wsif.jms.output");
- boolean verbose = false;
- if ("verbose".equals(strVerbose))
- verbose = true;
-
System.out.println("Starting " + name + " JMS2HTTPBridge");
JMS2HTTPBridge j2h =
new JMS2HTTPBridge(
@@ -270,7 +272,7 @@
"SoapJms" + name + "Queue",
"http://localhost:8080/soap/servlet/rpcrouter",
JMS2HTTPBridgeDestination.COLDSTART,
- verbose);
+ TestUtilities.isJmsVerbose());
j2h.listen();
} catch (Exception e) {
System.out.println("Caught JMS2HTTPBridge exception " + e);