Package org.jboss.test.web.interfaces

Examples of org.jboss.test.web.interfaces.InternalEntity


      log.debug("Caller isInternalUser: "+isInternalUser);
      try
      {
         InitialContext ctx = new InitialContext();
         InternalEntityHome home = (InternalEntityHome) ctx.lookup("java:comp/env/ejb/InternalEntity");
         InternalEntity bean;
         if( create == true )
         {
            bean = home.create(value, value);
         }
         else
         {
            Integer pk = new Integer(value);
            bean = home.findByPrimaryKey(pk);
         }
         bean.setValue(value);
         if( create == false )
         {
            bean.remove();
         }
      }
      catch(Exception e)
      {
         throw new RemoteException("Failed to access InternalEntity", e);
View Full Code Here

TOP

Related Classes of org.jboss.test.web.interfaces.InternalEntity

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.