Package org.apache.tapestry.contrib.ejb

Examples of org.apache.tapestry.contrib.ejb.XEJBException


                _personHome = (IPersonHome) PortableRemoteObject.narrow(raw,
                        IPersonHome.class);
            }
            catch (NamingException ex)
            {
                throw new XEJBException(
                        "Could not lookup Person home interface.", ex);
            }

        }
View Full Code Here


                _publisherHome = (IPublisherHome) PortableRemoteObject.narrow(
                        raw, IPublisherHome.class);
            }
            catch (NamingException e)
            {
                throw new XEJBException(
                        "Could not lookup Publisher home interface.", e);
            }

        }
View Full Code Here

                _bookHome = (IBookHome) PortableRemoteObject.narrow(raw,
                        IBookHome.class);
            }
            catch (NamingException e)
            {
                throw new XEJBException(
                        "Could not lookup Book home interface.", e);
            }

        }
View Full Code Here

        {
            return _dataSource.getConnection();
        }
        catch (SQLException e)
        {
            throw new XEJBException(
                    "Unable to get database connection from pool.", e);
        }
    }
View Full Code Here

            {
                statement = buildMasterQuery(connection, parameters, sortOrdering);
            }
            catch (SQLException ex)
            {
                throw new XEJBException("Unable to create query statement.", ex);
            }

            processQuery(statement);

        }
View Full Code Here

            {
                statement = buildPersonQuery(connection, "owner.PERSON_ID", ownerId, sortOrdering);
            }
            catch (SQLException ex)
            {
                throw new XEJBException("Unable to create query statement.", ex);
            }

            processQuery(statement);

        }
View Full Code Here

            {
                statement = buildPersonQuery(connection, "holder.PERSON_ID", holderId, sortOrdering);
            }
            catch (SQLException ex)
            {
                throw new XEJBException("Unable to create query statement.", ex);
            }

            processQuery(statement);

        }
View Full Code Here

            {
                statement = buildBorrowerQuery(connection, borrowerId, sortOrdering);
            }
            catch (SQLException ex)
            {
                throw new XEJBException("Unable to create query statement.", ex);
            }

            processQuery(statement);

        }
View Full Code Here

        {
            set = statement.executeQuery();
        }
        catch (SQLException ex)
        {
            throw new XEJBException("Unable to execute query.", ex);
        }

        try
        {
            processQueryResults(set);
        }
        catch (SQLException ex)
        {
            throw new XEJBException("Unable to process query results.", ex);
        }
        finally
        {
            close(null, null, set);
        }
View Full Code Here

            initial = new InitialContext();
            environment = (Context) initial.lookup("java:comp/env");
        }
        catch (NamingException ex)
        {
            throw new XEJBException("Could not lookup environment.", ex);
        }

        try
        {
            blockSizeProperty = (Integer) environment.lookup("blockSize");
        }
        catch (NamingException ex)
        {
            throw new XEJBException("Could not lookup blockSize property.", ex);
        }

        blockSize = blockSizeProperty.intValue();

        try
        {
            dataSource = (DataSource) environment.lookup("jdbc/dataSource");
        }
        catch (NamingException ex)
        {
            throw new XEJBException("Could not lookup data source.", ex);
        }

        if (keys == null)
            keys = new LinkedList();
    }
View Full Code Here

TOP

Related Classes of org.apache.tapestry.contrib.ejb.XEJBException

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.