Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Deletion of a table mapped to an Entity Bean

 
Satish Gopalakrishnan
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • 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
 
Pradeep bhatt
Ranch Hand
Posts: 8927
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • 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.
 
Simon Brown
sharp shooter, and author
Ranch Hand
Posts: 1913
6
  • Mark post as helpful
  • send pies
  • 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
  • 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 ???.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic