On Sep 4, jBoss quoth:

On Sep 4, John Weirich quoth:

> If I do this while jBoss is running, then get a security error saying
> the file is in use and can't be written over or deleted.  IOW jBoss is
> using the file right now so you can't do anything with it.  So I can't
> do a "hot" undeploy as I revise my bean - except shutting down and
> restarting.

I have two CMP beans which appear to be identical in form (not function)  
save two things.  One uses mySQL, configured to drop the table on undeploy
and the other uses InstantDB.  The mySQL one I can copy over and redeploy
while the other I can't.  At least that was the situation last night.

All told, my app consists of one stateless session bean and three CMP
beans.  Two of the latter were trying to be BMP at one time but have since
been converted.

> Also I've noticed that once the underlying table is created, then it's
> not changing as I change the fields in the bean and ejb-jar.xml file.  
> I have tried to read all the other messages covering this topic, and
> it sounds like a JAWs issue.  Also I don't have a jaws.xml file that I
> can find.

Your jaws.xml file (should) reside next to your ejb-jar.xml file in your
jar file.  There exists an attribute inside it that controls table
creation and deletion.  To wit:

  <entity>
    <ejb-name>Foo</ejb-name>
    <table-name>Foo</table-name>
    <create-table>true</create-table>
    <remove-table>true</remove-table>
    ...
  </entity>

Without the remove-table section the underlying table structure won't be
changed.  At least that's what I suspect.

> Should I just continue reading the docs - or is there a quick answer?

I don't think there are any quick answers :-).

C=)

--------------------------------------------------------------------------
There are no significant bugs in our released software that any significant 
  number of users want fixed.  -Bill Gates, Focus Magazine, Oct 23, 1995
--------------------------------------------------------------------------
Caskey <caskey*technocage.com>       ///                   TechnoCage Inc.
--------------------------------------------------------------------------
        "Welcome to the slippery slope, here is your handbasket.
             ...say, can you work 70 hours this week?"



--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to