User: cgjung  
  Date: 02/04/02 05:48:39

  Modified:    jboss.net/src/main/org/jboss/net/jmx/server
                        MBeanProvider.java
  Log:
  That is the alpha-version together with the .Net sample client
  I hacked together at JBossOne ;-)
  
  more to come.
  
  Revision  Changes    Path
  1.3       +16 -3     
contrib/jboss.net/src/main/org/jboss/net/jmx/server/MBeanProvider.java
  
  Index: MBeanProvider.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/contrib/jboss.net/src/main/org/jboss/net/jmx/server/MBeanProvider.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- MBeanProvider.java        12 Mar 2002 11:04:46 -0000      1.2
  +++ MBeanProvider.java        2 Apr 2002 13:48:39 -0000       1.3
  @@ -5,14 +5,14 @@
    * See terms of license at gnu.org.
    */
   
  -// $Id: MBeanProvider.java,v 1.2 2002/03/12 11:04:46 cgjung Exp $
  +// $Id: MBeanProvider.java,v 1.3 2002/04/02 13:48:39 cgjung Exp $
   
   package org.jboss.net.jmx.server;
   
  +// axis package
   import org.apache.axis.AxisFault;
   import org.apache.axis.Message;
   import org.apache.axis.MessageContext;
  -
   import org.apache.axis.providers.BasicProvider;
   import org.apache.axis.handlers.soap.SOAPService;
   import org.apache.axis.providers.BasicProvider;
  @@ -21,10 +21,14 @@
   import org.apache.axis.message.RPCElement;
   import org.apache.axis.utils.JavaUtils;
   
  +// log4j
   import org.apache.log4j.Category;
   
  +// sax & jaxrpc
   import org.xml.sax.SAXException;
  +import javax.xml.soap.SOAPException;
   
  +// jmx
   import javax.management.MBeanServerFactory;
   import javax.management.MBeanServer;
   import javax.management.MBeanException;
  @@ -33,6 +37,7 @@
   import javax.management.MalformedObjectNameException;
   import javax.management.ObjectName;
   
  +// utils
   import java.util.Iterator;
   import java.util.List;
   
  @@ -51,10 +56,16 @@
    * The message format (WSDL generation is to come ...) requires the first
    * parameter being always a String[] of the length of the following
    * parameters that describes the signature of the target method.
  + * 
  + * <br>
  + * <h3>Change History</h3>
  + * <ul>
  + * <li> jung, 21.03.2002: made apache axis beta1 compliant. </li>
  + * </ul>
    *
    * @created 1. Oktober 2001, 16:38
    * @author <a href="mailto:[EMAIL PROTECTED]";>Christoph G. Jung</a>
  - * @version $Revision: 1.2 $
  + * @version $Revision: 1.3 $
    */
   
   public class MBeanProvider extends BasicProvider implements Constants {
  @@ -168,6 +179,8 @@
                  throw new AxisFault(MBEAN_EXCEPTION, e);
               } catch (ReflectionException e) {
                  throw new AxisFault(EXCEPTION_OCCURED, e.getTargetException());
  +            } catch(SOAPException e) {
  +               throw new AxisFault(EXCEPTION_OCCURED, e);            
               }
   
            } // if(nextBody instanceof RPCElement)
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to