Package javax.ejb

Examples of javax.ejb.EJBException


      TicketLocalHome home = (TicketLocalHome) ic.lookup("local/Ticket");
      TicketLocal remote = home.create();
      remote.setDataSource(this.dataSource);
      tv = remote.getTicketBasicRelations(userId, ticketId);
    } catch (CreateException ce) {
      throw new EJBException(ce);
    } catch (NamingException re) {
      throw new EJBException(re);
    }
    return tv;
  }
View Full Code Here


      TicketLocalHome home = (TicketLocalHome) ic.lookup("local/Ticket");
      TicketLocal remote = home.create();
      remote.setDataSource(this.dataSource);
      remote.deleteTicket(userId, ticketID);
    } catch (CreateException ce) {
      throw new EJBException(ce);
    } catch (NamingException re) {
      throw new EJBException(re);
    }
  }
View Full Code Here

      cvdal.setAutoCommit(autoCommit);
    } catch (SQLException e) {
      logger.error("[removeInvalidUIDs] SQL Exception doing fancy transaction stuff.", e);
      // not sure what I can do, I probably should just throw EJBException at this point.
      try {cvdal.rollback();} catch (SQLException se) {} // Give up. Retire.  Start Training, Make a comeback!
      throw new EJBException(e);
    }finally{
      cvdal.setSqlQueryToNull();
    }
  }
View Full Code Here

        // now that we know where to move, it simply move it there
        operationResult = this.moveMessageToFolder(individualId, messageId, trashFolderId.intValue());
      }
    }catch (SQLException e){
      System.out.println("[Exception][MailEJB.deleteMessage] Exception Thrown: " + e);
      throw new EJBException(e);
    }finally{
      try {results.close();} catch (Exception e) { }
      cvdal.destroy();
    }
    return operationResult;
View Full Code Here

          return (HashMap)it1e.next();
        }
      } // end if (it.hasNext())
    } catch (Exception e) {
      logger.error("[Exception][AuthorizationEJB] Exception thrown in getOwner(): ", e);
      throw new EJBException(e);
    } finally {
      cvdl.destroy();
      cvdl = null;
    }
    return null;
View Full Code Here

        {
          uid = UIDGeneratorUtil.getLocalHome().create().getUniqueId(COUNTER_NAME);
        }
        catch( Exception e )
        {
          throw new EJBException( e );
        }
       
        setOrderUId( new Integer( uid ) );
        setOrderValue( data );
View Full Code Here

    {
      uid = UIDGeneratorUtil.getLocalHome().create().getUniqueId(COUNTER_NAME);
    }
    catch( Exception e )
    {
      throw new EJBException( e );
    }
   
        setOrderItemUId( new Integer( uid ) );
        setQuantity( quantity );
        setUnitPrice( unitPrice );
View Full Code Here

      CvDiskOperation cdo = new CvDiskOperation(cvfVO.getName(), cvfVO.getLocationName(), cvfVO.getFullPathVec());

      if (cdo.deleteFolder())
        remote.deleteFolder(Id, folderId);
    } catch (RemoteException re) {
      throw new EJBException(re);
    } catch (CvFileException re) {
      throw new EJBException(re);
    } catch (CreateException re) {
      throw new EJBException(re);
    }
  }
View Full Code Here

      OrderLocalHome home = (OrderLocalHome) ic.lookup("local/Order");
      OrderLocal order = home.findByPrimaryKey(new OrderPK(orderId, this.dataSource));
      order.setDataSource(this.dataSource);
      order.remove();
    } catch (RemoveException re) {
      throw new EJBException(re);
    } catch (FinderException fe) {
      throw new EJBException(fe);
    }

  }// end of deleteOrder
View Full Code Here

      InvoiceLocalHome home = (InvoiceLocalHome) ic.lookup("local/Invoice");
      InvoiceLocal invoice = home.findByPrimaryKey(new InvoicePK(invoiceId, this.dataSource));
      invoice.setDataSource(this.dataSource);
      invoice.remove();
    } catch (RemoveException re) {
      throw new EJBException(re);
    } catch (FinderException fe) {
      throw new EJBException(fe);
    }
  }// end of deleteInvoice
View Full Code Here

TOP

Related Classes of javax.ejb.EJBException

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.