Package java.rmi

Examples of java.rmi.RemoteException


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


      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

   * 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

   * 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

      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

  }

  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

  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

  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

  public Enumeration listLayouts()
    throws RemoteException {
    try {
      return fetchLayoutHome().findAll();
    } catch(Exception e) {
      throw new RemoteException(e.toString());
    }
  }
View Full Code Here

  public Enumeration listUsers()
    throws RemoteException {
    try {
      return fetchUserHome().findAll();
    } catch(Exception e) {
      throw new RemoteException(e.toString());
    }
  }
View Full Code Here

TOP

Related Classes of java.rmi.RemoteException

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.