In your jbosscmp-jdbc.xml, you can configure if jboss has to remove your table or not.
if you set the remove-table property to false, it should not delete your tables anymore on exit.
Yes I have set the <remove-table> tag to false. I've checked both standardjaws.xml and jbosscmp-jdbc.xml and also my CMP Entity Bean's jaws.xml. All of them has "false" value.
This problem occurred even in JBoss2.4.4 and it's happening in JBoss3. I have both versions and both drop the table. *argh*
I used both Ctrl+C and the shutdown.bat to perform the shut down. Same result.
Is JBoss reading the <remove-table> tag properly?
Have you tried to specify the <remove-table>false</remove-table> on the level instead of the <default-entity> level (like in the standard-jaws.xml)?
for example :
I'll add it in and give it a try. Somehow, I think the <default-entity> tag isn't being read properly huh?
Let you know the result tomorrow.
I think your solution to put the <remove-table>false<remove-table> at the tag level corrects the problem.
I tried restarting the server with the changed jaws.xml in my EntityBean's package and shutting it down again. Didn't drop the table.
I'll do another few more tests later.
Thanks for the information on setting the <remove-table> in the level.
It works. The table is retained when I shutdown the server.