1 37 38 package com.sun.j2ee.blueprints.opc.orderreceiver; 39 40 import javax.ejb.*; 41 42 import com.sun.j2ee.blueprints.servicelocator.*; 43 import com.sun.j2ee.blueprints.servicelocator.ejb.*; 44 import com.sun.j2ee.blueprints.opc.purchaseorder.*; 45 import com.sun.j2ee.blueprints.opc.purchaseorder.ejb.*; 46 import com.sun.j2ee.blueprints.opc.JNDINames; 47 48 52 public class POReceiver { 53 54 private PurchaseOrderLocalHome poHome; 55 56 public POReceiver() throws ServiceLocatorException { 57 ServiceLocator sl = new ServiceLocator(); 58 poHome = (PurchaseOrderLocalHome) sl.getLocalHome(JNDINames.PO_EJB); 59 } 60 61 public void persistPO(PurchaseOrder po) throws CreateException{ 62 PurchaseOrderLocal polocal = poHome.create(po); 64 } 65 } 66 | Popular Tags |