Examples of Customer


Examples of org.jboss.remoting.samples.transporter.proxy.Customer

{
   private String locatorURI = "socket://localhost:5400";

   public void makeClientCall() throws Exception
   {
      Customer customer = createCustomer();

      CustomerProcessor customerProcessor = (CustomerProcessor) TransporterClient.createTransporterClient(locatorURI, CustomerProcessor.class);

      System.out.println("Customer to be processed: " + customer);
      ICustomer processedCustomer = customerProcessor.processCustomer(customer);
View Full Code Here

Examples of org.jboss.resteasy.spring.beanprocessor.Customer

@Component
public class CustomerService
{
   public Customer convert(String name)
   {
      return new Customer(name);
   }
View Full Code Here

Examples of org.jboss.resteasy.test.smoke.Customer

         GetMethod method = new GetMethod("http://localhost:8080/resteasy/xml");
         int status = client.executeMethod(method);
         Assert.assertEquals(HttpResponseCodes.SC_OK, status);
         String result = method.getResponseBodyAsString();
         JAXBContext ctx = JAXBContext.newInstance(Customer.class);
         Customer cust = (Customer) ctx.createUnmarshaller().unmarshal(new StringReader(result));
         Assert.assertEquals("Bill Burke", cust.getName());
         method.releaseConnection();
      }

   }
View Full Code Here

Examples of org.jboss.soa.esb.samples.quickstart.businessrules.dvdstore.Customer

  private int status;
 
  public Message process(Message message) throws ActionProcessingException {
   
    OrderHeader order = (OrderHeader) message.getBody().get("orderHeader");
    Customer customer = (Customer) message.getBody().get("customer");
    customer.setStatus( status );
        System.out.println("{ Updated customer status to " + status + "}" );
    return message;
  }
View Full Code Here

Examples of org.jboss.soa.esb.samples.quickstart.businessrulesstateful.dvdstore.Customer

  private String input = "Reviewer";
 
  public Message process(Message message) throws ActionProcessingException {
   
    OrderHeader order = (OrderHeader) message.getBody().get("TheOrderHeader");
    Customer customer = (Customer) message.getBody().get("TheCustomer")
    System.out.println("{ ================ " + input);   
    System.out.println("Customer: " + customer);
    System.out.println("Order Priority: " + order.getOrderPriority());
    System.out.println("Order Discount: " + order.getOrderDiscount());
    System.out.println("Order Total: " + order.getTotalAmount());
View Full Code Here

Examples of org.jboss.soa.esb.store.Customer

        long processInstanceId = Long.parseLong(args[0]);
        MessageHelper.setLongValue(esbMessage, Constants.PROCESS_INSTANCE_ID, processInstanceId);

        Message response = (new ServiceInvoker("BPM_orchestration4_Starter_Service", "Get_Service_Vars_Sync")).deliverSync(esbMessage, 10000);

        Customer customer = (Customer) response.getBody().get("customer");
        System.out.println("'customer' variable as queried from jBPM process: " + customer);
    }
View Full Code Here

Examples of org.jboss.test.bankiiop.interfaces.Customer

                               getInitialContext().lookup(BankHome.JNDI_NAME),
                               BankHome.class);
      Bank bank = bankHome.create();
     
      getLog().debug("Acquire customers");
      Customer marc = teller.getCustomer("Marc");
      Customer rickard = teller.getCustomer("Rickard");
     
      getLog().debug("Acquire accounts");
      Account from = teller.getAccount(marc, 200);
      Account to = teller.getAccount(rickard, 200);
     
View Full Code Here

Examples of org.jboss.test.banknew.interfaces.Customer

    * @ejb:interface-method view-type="remote"
    **/
   public CustomerData createCustomer( String pBankId, String pName, float pInitialDeposit )
      throws CreateException, RemoteException
   {
      Customer lCustomer = getCustomerHome().create(
         pBankId,
         pName
      );
      CustomerData lNew = lCustomer.getData();
      getAccountHome().create().createAccount(
         lNew.getId(),
         Constants.CHECKING,
         pInitialDeposit
      );
View Full Code Here

Examples of org.jboss.test.cluster.clusteredentity.Customer

      tester1 = (EntityTest)ctx1.lookup("EntityTestBean/remote");
     
      tester0.getCache("persistence.unit");
      tester1.getCache("persistence.unit");
     
      Customer customer = tester0.createCustomer();
     
      //Call finder twice since Hibernate seems to not actually save collections
      //into cache on persist(), so make sure it is put into cache on find.
      System.out.println("Find node 0");
      customer = tester0.findByCustomerId(customer.getId());
      System.out.println("Find(2) node 0");
      customer = tester0.findByCustomerId(customer.getId());
     
      //Check everything was in cache
      System.out.println("Check cache 0");
      assertEquals(null, tester0.loadedFromCache());

      // The above placement of the collection in the cache is replicated async
      // so pause a bit before checking node 1
      sleep(SLEEP_TIME);
     
      //Now connect to cache on node2 and make sure it is all there     
     
      System.out.println("Find node 1");
      customer = tester1.findByCustomerId(customer.getId());

      //Check everything was in cache
      System.out.println("Check cache 1");
      assertEquals(null, tester1.loadedFromCache());
   }
View Full Code Here

Examples of org.jboss.test.cluster.ejb3.stateful.nested.base.xpc.Customer

     
      VMID origId = parent.getVMID();
      Assert.assertNotNull("Got a VMID", origId);
     
      long id = parent.createCustomer()
      Customer customer = parent.find(id);
      Assert.assertNotNull("Customer created and found on parent", customer);
     
      parent.setContainedCustomer();
      Assert.assertTrue("Parent and contained share customer", parent.checkContainedCustomer());
     
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.