You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wsif-dev@ws.apache.org by wh...@apache.org on 2003/04/03 17:29:45 UTC

cvs commit: xml-axis-wsif/java/test/org/apache/wsif/util/jms NativeJMSRequestListener.java

whitlock    2003/04/03 07:29:45

  Modified:    java/test/org/apache/wsif/util/jms
                        NativeJMSRequestListener.java
  Log:
  Better diagnostics
  
  Revision  Changes    Path
  1.18      +21 -2     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.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- NativeJMSRequestListener.java	7 Dec 2002 12:34:05 -0000	1.17
  +++ NativeJMSRequestListener.java	3 Apr 2003 15:29:45 -0000	1.18
  @@ -187,8 +187,27 @@
       }
   
       private void processResponse(Message msg) {
  -    	if (VERBOSE) System.out.println( "NativeJMSRequestListener got msg:" + msg );
  -    	try {
  +        if (VERBOSE) {
  +            try {
  +                System.out.println("NativeJMSRequestListener got msg:" + msg);
  +                if (msg instanceof TextMessage) {
  +                    TextMessage tm = (TextMessage) msg;
  +                    String tmt = tm.getText();
  +                    System.out.println(
  +                        "TextMessage " + (tmt == null ? "null" : tmt));
  +                } else if (msg instanceof ObjectMessage) {
  +                    ObjectMessage om = (ObjectMessage) msg;
  +                    Object omo = om.getObject();
  +                    System.out.println(
  +                        "ObjectMessage "
  +                            + (omo == null ? "null" : omo.toString()));
  +                }
  +            } catch (Exception e) {
  +                e.printStackTrace();
  +            }
  +        }
  +
  +        try {
               String operationName = null;
               String input = null;
               String output = null;