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);