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 dc...@apache.org on 2002/10/16 23:50:01 UTC

cvs commit: xml-axis/java/samples/jms sonic-connection-factory.properties JMSTest.java

dchappell    2002/10/16 14:50:01

  Modified:    java/samples/jms JMSTest.java
  Added:       java/samples/jms sonic-connection-factory.properties
  Log:
  Jaime's patch submission from 2 weeks ago.  Cleans up exception handling somewhat in that it allows detection of specific detection of things like connection drop vs. "can't create queue".
  
  Revision  Changes    Path
  1.3       +10 -1     xml-axis/java/samples/jms/JMSTest.java
  
  Index: JMSTest.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/samples/jms/JMSTest.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- JMSTest.java	24 Sep 2002 23:47:01 -0000	1.2
  +++ JMSTest.java	16 Oct 2002 21:50:01 -0000	1.3
  @@ -56,6 +56,7 @@
   package samples.jms;
   
   import org.apache.axis.AxisEngine;
  +import org.apache.axis.AxisFault;
   import org.apache.axis.SimpleTargetedChain;
   import org.apache.axis.configuration.XMLStringProvider;
   import org.apache.axis.deployment.wsdd.WSDDConstants;
  @@ -152,9 +153,17 @@
           Float res = new Float(0.0F);
   
           // invoke a call for each of the symbols and print out
  -        for (int i = 0; i < args.length; i++) {
  +        for (int i = 0; i < args.length; i++)
  +        {
  +            try
  +            {
               res = (Float) call.invoke(new Object[] {args[i]});
               System.out.println(args[i] + ": " + res);
  +            }
  +            catch(AxisFault af)
  +            {
  +                System.out.println(af.dumpToString());
  +            }
           }
   
           // shutdown
  
  
  
  1.1                  xml-axis/java/samples/jms/sonic-connection-factory.properties
  
  Index: sonic-connection-factory.properties
  ===================================================================
  brokerURL=tcp://localhost:2506
  defaultUser=Administrator
  defaultPassword=Administrator