I will put a test together. So far I can rule out the theory that it is 
confinded to the default configuration. I had the same problem with the all 
configuration. After some searching I found that changing the exception from : 
EntityNotFound to NoResultException.

Within my session bean i had :


  |     log.info("GetMime with Key :"+key);
  |     try
  |     {
  |       MIME mime = (MIME)manager.createQuery("select l from MIME l where 
l.mimeKey=:mimeKey ").setParameter("mimeKey", key).getSingleResult();
  |       return mime;
  |     }
  |     catch (EntityNotFoundException enfe)
  |     {
  |       throw new 
CIEFacadeException(CIEFacadeException.OBJECT_NOT_FOUND,"MIME with key :"+key+" 
not found.");
  |     }
  | 

I changed the code to 


  |   public MIME getMIME(String key) throws CIEFacadeException
  |   {
  |     log.info("GetMime with Key :"+key);
  |     try
  |     {
  |       MIME mime = (MIME)manager.createQuery("select l from MIME l where 
l.mimeKey=:mimeKey ").setParameter("mimeKey", key).getSingleResult();
  |       return mime;
  |     }
  |     catch (NoResultException enfe)
  |     {
  |       throw new 
CIEFacadeException(CIEFacadeException.OBJECT_NOT_FOUND,"MIME with key :"+key+" 
not found.");
  |     }
  |   }
  | 

I have a new theory now. Before the NoResultException was not handled and 
seemed to have resulted in the SessionBean being removed from the cache. I 
don't know if this makes much sense, but I will put a basic example together 
and try to reproduce the problem.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3921445#3921445

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3921445


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to