Package org.xmlBlaster.util.admin.extern

Examples of org.xmlBlaster.util.admin.extern.MethodInvocation


    * <p />
    */
   public void testConnector() {
     try {
       log.info("Creating TestMessage");
       mi = new MethodInvocation();
       mi.setMethodName("getDefaultDomain");
       log.info("new MethodInvocation build " + mi.getMethodName());
       PublishReturnQos rqos = invokeCon.publish(new MsgUnit("<key oid='xmlBlasterMBeans_Invoke'/>",sh.serializeObject(mi),"<qos/>"));
       log.info("Publish test Message to jmx-topic..");
       }
View Full Code Here


    * @see org.xmlBlaster.client.I_Callback#update(String, UpdateKey, byte[], UpdateQos)
    */
   public String update(String cbSessionId, UpdateKey updateKey, byte[] content, UpdateQos updateQos)
   {
      log.info("Receiving update of a message, checking ...");
      MethodInvocation mi = null;
      try {
        mi = (MethodInvocation) sh.deserializeObject(content);
      }
      catch (IOException ex) {
        log.severe("Error when deserializing object");
      }
      Object obj = mi.getReturnValue();
      log.info("Received Object: " + obj);
      if (obj.toString().length()>0) log.info("Success... Received Domainname: " + obj);
      else {
        log.severe("Error when receiving returning object...");
        assertTrue("Error when receiving returning object...", false);
View Full Code Here

    }
    catch (Exception ex) {
      log.severe("Error when creating SerializeHelper" + ex.toString());
      assertTrue("Error when creating SerializeHelper" + ex.toString(),false);
    }
    mi = new MethodInvocation();
    try {
      mi.setMethodName("Test");
       log.info("Serializing MethodInvocation");
       byte[] testByte = sh.serializeObject(mi);
       log.info("Deserializing MethodInvocation...");
       MethodInvocation mi2 = (MethodInvocation) sh.deserializeObject(testByte);
       if (!(mi2.getMethodName().equals("Test"))) {
         log.severe("Values are different");
         assertTrue("Values are different", false);
       }
    }
    catch (Exception ex) {
View Full Code Here

TOP

Related Classes of org.xmlBlaster.util.admin.extern.MethodInvocation

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.