• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Deletion of a table mapped to an Entity Bean

 
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If i have a table which is mapped to an entity bean and that table gets dropped and re-created periodically , how will it affect ??? Is there any way to specify the container to expect this or for us to explicitly handle this scenario through the code
 
Ranch Hand
Posts: 8953
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I doubt whether any container will suppport. Ur code has to take care of the scenario for which u will have to use BMP. Using CMP may result in NoSuchEntityException.
 
sharp shooter, and author
Posts: 1913
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If it's a "read only" entity, you might be able to configure some settings within your container, telling it to refresh the cache every x minutes.
Depends on the container you're using...
Simon
 
Satish Gopalakrishnan
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
am using WebLogic 6.1 sp2 . This entity bean is not read-only .So I guess I will have to write it as a CMP and handle the exception programmatically ???.
 
reply
    Bookmark Topic Watch Topic
  • New Topic