Examples of RemoteException


Examples of java.rmi.RemoteException

   {
      if( accessCount != count )
      {
         String msg = "AccessCount: " + accessCount + " != " + count;
         log.error(msg);
         throw new RemoteException(msg);
      }        
     
      int beanCount = 0;
      try
      {
         InitialContext ctx = new InitialContext();
         Context enc = (Context) ctx.lookup("java:comp/env");
         EntityPKHome home = (EntityPKHome) enc.lookup("ejb/EntityPKHome");
         EntityPK bean = home.findByPrimaryKey(theKey);
         beanCount = bean.getOtherField();
         if( beanCount != count )
            throw new RemoteException("BeanCount: " + beanCount + " != " + count);
      }
      catch(RemoteException e)
      {
         log.error("Failed to validate EntityPK", e);
         throw e;
      }
      catch(Exception e)
      {
         log.error("Failed to validate EntityPK", e);
         throw new RemoteException("Failed to validate EntityPK");
      }
      return new NodeAnswer(nodeID, new Integer(beanCount));
   }
View Full Code Here

Examples of java.rmi.RemoteException

         ut.begin();
         ut.commit();
      }
      catch (Exception e)
      {
         throw new RemoteException("Error", e);
      }
   }
View Full Code Here

Examples of java.rmi.RemoteException

      {
         ut.begin();
      }
      catch (Exception e)
      {
         throw new RemoteException("Error", e);
      }
   }
View Full Code Here

Examples of java.rmi.RemoteException

      TransactionManager tm = TransactionManagerLocator.getInstance().locate();
      try
      {
         Transaction tx = tm.getTransaction();
         if (tx != null)
            throw new RemoteException("There should be no transaction context: " + tx);
      }
      catch (RemoteException e)
      {
         throw e;
      }
      catch (Exception e)
      {
         throw new RemoteException("Error", e);
      }
   }
View Full Code Here

Examples of java.rmi.RemoteException

   * Operates on the JspPortal maintained iterator to minimise the amount of Java code in the Jsp files
   */
  public PortletInfo getNextWidePortlet() throws RemoteException {
    if(widePortlets.hasMoreElements())
      return widePortlets.nextPortletInfo();
    throw new RemoteException("No more wide portlets available");
  }
View Full Code Here

Examples of java.rmi.RemoteException

   * Operates on the JspPortal maintained iterator to minimise the amount of Java code in the Jsp files
   */
  public PortletInfo getNextNarrowPortlet()throws RemoteException {
    if(narrowPortlets.hasMoreElements())
      return narrowPortlets.nextPortletInfo();
    throw new RemoteException("No more narrow portlets available");
  }
View Full Code Here

Examples of java.rmi.RemoteException

      this.widenarrow = Portlet.WIDE_PORTLET;
      this.deletable=1;
      this.editable=0;
     
    } catch(javax.naming.NamingException ne) {
      throw new RemoteException("Error while looking up the Sequence service",ne);
    } catch(javax.ejb.CreateException ce) {
      throw new RemoteException("Error while trying to create new instance. Check the SequenceService is installed and running correctly",ce);
    }
    ejbCreateDone();
 
    return new PortletPK(id);
  }
View Full Code Here

Examples of java.rmi.RemoteException

  }

  public PortletPK ejbCreate(PortletPK pk, String name, int widenarrow) throws RemoteException
  {
    if(widenarrow != Portlet.WIDE_PORTLET && widenarrow != Portlet.NARROW_PORTLET)
      throw new RemoteException("Illegal portlet size (widenarrow)");

    this.id = pk.id;
    this.name = name;
    this.jspfile = "none.jsp";
    this.description = "No description";
View Full Code Here

Examples of java.rmi.RemoteException

  public String getLayout(String userName) throws RemoteException {
    try {
      User user = fetchUserHome().findByUserName(userName);
      return new String("portal.jsp");
    } catch(Exception e) {
      throw new RemoteException(e.toString());
    }
  }
View Full Code Here

Examples of java.rmi.RemoteException

  public Enumeration listPortlets(String username)
    throws RemoteException {
    try {
      return fetchPortletHome().findAll();//TODO: Should be changed to only see allowed Portlets
    } catch(Exception e) {
      throw new RemoteException(e.toString());
    }
  }
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.