This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes How to prevent auto table creation? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "How to prevent auto table creation?" Watch "How to prevent auto table creation?" New topic
Author

How to prevent auto table creation?

Kay Tracid
Ranch Hand

Joined: Mar 06, 2002
Posts: 148
Hi,
I use jboss 3.0.4 and if I try to deploy, my table is always created. I have a datasource OracleDS, there I defined no table creation... Where I have to set this param? Can sombody help please?

If the tabel already exists i get an exception from oracle:
14:38:09,912 ERROR [JDBCCommand] Exception caught executing SQL
java.sql.SQLException: ORA-00955: name is already used by an existing object
Thanks a lot, regards Kay
[ February 17, 2003: Message edited by: Kay Tracid ]
Kay Tracid
Ranch Hand

Joined: Mar 06, 2002
Posts: 148
I found it
i added in javastandardjws.xml

<jaws>
<datasource>java:/OracleDS</datasource>
<type-mapping>Oracle8</type-mapping>
<debug>false</debug>
<default-entity>
<create-table>false</create-table>
<remove-table>false</remove-table>
 
Have you checked out Aspose?
 
subject: How to prevent auto table creation?
 
It's not a secret anymore!