Java 类javax.ejb.Remove 实例源码

项目:JavaEE    文件:OrderProcessorBean.java   
/**
 * Places an order
 */
@Asynchronous
@Remove
@Override
public void placeOrder() {
    Order order = new Order();
    order.setBidder(bidder);
    order.setItem(item);
    order.setShipping(shipping);
    order.setBilling(billing);
    try {
        bill(order);
        notifyBillingSuccess(order);
        order.setStatus(OrderStatus.COMPLETE);
    } catch (BillingException be) {
        notifyBillingFailure(be, order);
        order.setStatus(OrderStatus.BILLING_FAILED);
    } finally {
        saveOrder(order);
    }
}
项目:actionbazaar    文件:OrderProcessorBean.java   
/**
 * Places an order
 */
@Asynchronous
@Remove
@Override
public void placeOrder() {
    Order order = new Order();
    order.setBidder(bidder);
    order.setItem(item);
    order.setShipping(shipping);
    order.setBilling(billing);
    try {
        bill(order);
        notifyBillingSuccess(order);
        order.setStatus(OrderStatus.COMPLETE);
    } catch (BillingException be) {
        notifyBillingFailure(be, order);
        order.setStatus(OrderStatus.BILLING_FAILED);
    } finally {
        saveOrder(order);
    }
}
项目:actionbazaar    文件:BidderAccountCreatorBean.java   
/**
 * Creates the account
 */
@Remove
public void createAccount() {
    try {
        Statement statement = connection.createStatement();
        String sql = "INSERT INTO BIDDERS(" + "username, " + "first_name, "
                + "credit_card_type" + ") VALUES (" + "'"
                + loginInfo.getUsername() + "', " +
                "'" + biographicalInfo.getFirstName() + "', " +
                "'" + billingInfo.getCreditCardType() + "'" +
                ")";
        statement.execute(sql);
        statement.close();
    } catch (SQLException sqle) {
        sqle.printStackTrace();
    }
}
项目:actionbazaar    文件:OrderProcessorBean.java   
/**
 * Places an order
 */
@Asynchronous
@Remove
@Override
public void placeOrder() {
    Order order = new Order();
    order.setBidder(bidder);
    order.setItem(item);
    order.setShipping(shipping);
    order.setBilling(billing);
    try {
        bill(order);
        notifyBillingSuccess(order);
        order.setStatus(OrderStatus.COMPLETE);
    } catch (BillingException be) {
        notifyBillingFailure(be, order);
        order.setStatus(OrderStatus.BILLING_FAILED);
    } finally {
        saveOrder(order);
    }
}
项目:pg6100    文件:CommentEJB.java   
@Remove
public void save(@NotNull Long newsId, @NotNull String author, @NotNull String draft){

    News news = em.find(News.class, newsId);
    if(news == null){
        return;
    }

    Comment comment = new Comment(null, draft, author);
    em.persist(comment);

    news.getComments().add(comment);

    em.merge(news);
}
项目:actionbazaar    文件:BidderAccountCreatorBean.java   
/**
 * Cancels the account creation info
 */
@Remove
public void cancelAccountCreation() {
    loginInfo = null;
    biographicalInfo = null;
    billingInfo = null;
}
项目:study-ocbcd    文件:AccountBean.java   
@RolesAllowed("Manager")
@Remove
public void deleteAccount() {
    this.account = null;
    this.name = null;
    balance = 0;
}
项目:study-ocbcd    文件:AccountFacadeBean.java   
@PreDestroy @Remove @PrePassivate
public void remove() {
    this.account = null;
    this.em = null;
    this.queue = null;
    this.queueFactory = null;
    this.ctx  = null;
}
项目:siebog    文件:XjafAgent.java   
@Override
@Remove
public void stop() {
    try {
        onTerminate();
    } catch (Exception ex) {
        LOG.warn("Error in onTerminate.", ex);
    }
}
项目:hsw    文件:BestellvorgangBean.java   
/**
 * @inheritDoc
 */
@Remove
public Collection<Ticketbestellung> bezahleTickets(String email) throws KapazitaetErschoepftException {

    // suche nach einen Kunden anhand der �bergebenen email Adresse
    Kunde kunde = kundenverwaltung.getKundeByEmail(email);
    if (kunde == null) {
        // kunde gibt es nicht --> persistiere neuen Kunden
        kunde = new Kunde();
        kunde.setEmail(email);
        em.persist(kunde);
    } else {
        // persistiere vorhandenen Kunden
        em.merge(kunde);
    }
    if ((ticketBestellungen != null) && (!ticketBestellungen.isEmpty())) {
        for (Ticketbestellung bestellung : ticketBestellungen) {
            Konzert konzert = bestellung.getKonzert();
            konzert = em.find(Konzert.class, konzert.getId());
            konzert.bestelleTickets(bestellung.getAnzahl());
            em.merge(konzert);
            bestellung.setKonzert(konzert);
            bestellung.setKunde(kunde);
            em.persist(bestellung);
        }
    }

    benachrichtigungsService.installiereKonzerterinnerungen(email, ticketBestellungen);
    return ticketBestellungen;
}
项目:Mastering-Java-EE-Development-with-WildFly    文件:StateEngineLocalBean.java   
@Remove
public void remove() {
    logger.info("the bean is removing");
}
项目:Mastering-Java-EE-Development-with-WildFly    文件:User.java   
@Remove
public void remove() {
    registered = false;
}
项目:asw    文件:SessionCounterImpl.java   
@Override
@Remove
/* termina la sessione */
public void close() {
    /* effettivamente, il contenitore termina la sessione */
}
项目:keycloak_training    文件:EjbExampleUserStorageProvider.java   
@Remove
@Override
public void close() {
}
项目:ait-platform    文件:AitEjbUserStorageProvider.java   
@Remove
@Override
public void close() {
}
项目:ejb3.1-certification    文件:StudentBean.java   
@Remove
public void end(){
}
项目:JEE7-Demo    文件:StudentStatisticsServiceImpl.java   
@Remove
public void clean() {
    logger.info("Remove Things");
    numberOfAccess = 0l;
}
项目:LiveBet    文件:BookmakerBean.java   
@Remove
@Override
public void removeBean() {
    // TODO Auto-generated method stub

}
项目:LiveBet    文件:BettorBean.java   
@Remove
@Override
public void removeBean() {
}
项目:chuidiang-ejemplos    文件:StatefullBean.java   
@Remove
public void sayText(){
   statelessTalker.saySomething(someText);
}
项目:windup-rulesets    文件:ShipAction.java   
@Remove
public void destroy() { }
项目:windup-rulesets    文件:MessageManagerBean.java   
@Remove @Destroy
public void destroy() {}
项目:windup-rulesets    文件:HotelBookingAction.java   
@Remove
public void destroy() {}
项目:JavaIncrementalParser    文件:CartBean.java   
@Remove
public void remove() {
    items = null;
}
项目:JavaIncrementalParser    文件:CartBeanWithInterface.java   
@Remove
public void remove() {
    items = null;
}
项目:seam-examples-migrated-off-seam2    文件:ChangePasswordAction.java   
@Remove
public void destroy() {}
项目:seam-examples-migrated-off-seam2    文件:RegisterAction.java   
@Remove
public void destroy() {}
项目:seam-examples-migrated-off-seam2    文件:BookingListAction.java   
@Remove
public void destroy() {}
项目:seam-examples-migrated-off-seam2    文件:HotelSearchingAction.java   
@Remove
public void destroy() {}
项目:seam-examples-migrated-off-seam2    文件:HotelBookingAction.java   
@Remove
public void destroy() {}
项目:jpa-learning    文件:CarrinhoCompras.java   
@Remove
public void checkout(int paymentId) { }
项目:jpa-learning    文件:CarrinhoCompras.java   
@Remove
public void cancel() { }
项目:study-ocbcd    文件:AdviceBean.java   
@Remove
public void remove() {
    System.out.println("ejbRemove");
}
项目:study-ocbcd    文件:AgencyFacadeBean.java   
@PreDestroy @Remove @PrePassivate
public void remove() {
    this.agency = null;
    this.em = null;
    this.ctx  = null;
}
项目:isa    文件:CountBean.java   
@Remove
public void remove() {
  System.out.println("[CountBean] remove()");
}
项目:isa    文件:CountBean.java   
@Remove
public void remove() {
  System.out.println("[CountBean] @Remove");
}
项目:oracle-samples    文件:CartBean.java   
@Remove()
@Override
@RolesAllowed("TutorialUser")
public void remove() {
    contents = null;
}
项目:oracle-samples    文件:CartBean.java   
@Remove()
@Override
public void remove() {
    contents = null;
}
项目:hsw    文件:BestellvorgangBean.java   
/**
 * @inheritDoc
 */
@Remove
public void verwerfeTicketbestellungen() {
    // TODO Auto-generated method stub

}
项目:tomee    文件:BasicStatefulPojoBean.java   
@Remove
public void removeBean() {
}