Package org.jboss.test.cluster.cache.aop

Examples of org.jboss.test.cluster.cache.aop.Address


   public void createPerson(String key, String name, int age) throws Exception
   {
      Person p = new Person();
      p.setName(name);
      p.setAge(age);
      p.setAddress(new Address());
      server.invoke(cacheService, "putObject",
            new Object[]{key, p},
            new String[]{String.class.getName(),
                         Object.class.getName()});
   }
View Full Code Here


      Person p = new Person();
      if (!(p instanceof Advised)) {
         logger_.error("testSetup(): p is not an instance of Advised");
         throw new RuntimeException("Person must be advised!");
      }
      Address a = new Address();
      if (!(a instanceof Advised)) {
         logger_.error("testSetup(): a is not an instance of Advised");
         throw new RuntimeException("Address must be advised!");
      }
   }
View Full Code Here

   public void createPerson(String key, String name, int age)
   {
      Person p = new Person();
      p.setName(name);
      p.setAge(age);
      p.setAddress(new Address());
      try {
         cache.attach(key, p);
      } catch (Exception e) {
         throw new RuntimeException(e);
      }
View Full Code Here

         if (!(p instanceof Externalizable)) {
        throw new RuntimeException("p not Externalizable");
         }
         */
         p.setName("Harald Gliebe");
         Address address = new Address();
         address.setCity("Mannheim");
         p.setAddress(address);
         cache.attach("/person/harald", p);
         return (Person) cache.find("/person/harald");
      } catch (Throwable t) {
         throw new RuntimeException(t);
View Full Code Here

TOP

Related Classes of org.jboss.test.cluster.cache.aop.Address

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.