Re: Why is JBoss *creating* tables?

Fabrizio Di Giuseppe <[email protected]>
Newsgroups gmane.comp.java.ejb.middlegen.user
Message-ID <[email protected]>
On Wednesday, October 1, 2003, at 9:20 AM, Gavin Sinclair wrote:

> And having scoured the build script,
> configuration files, generated code, etc., I don't see what is 
> directing
> JBoss (3.2.1) to exhibit this behaviour.

That's a JBoss configuration files issue. The jboss file 
jbosscmp-jdbc.xml inside META-INF indicates if a table must be created 
or not. That's file is generated by xdoclet. So you have to change the 
xdoclet ant task. Take a look at this build file fragment:

		<ejbdoclet
			destdir="${xdoclet.generated}/src"
			excludedtags="@version,@author" ejbspec="2.0" 
force="${xdoclet.force}"
		>
			...

			<jboss
				version="3.0" xmlencoding="UTF-8" typemapping="Oracle9i"
				datasource="java:/EntityDB" destDir="${xdoclet.generated}/META-INF"
				createTable="false" removeTable="false"
			/>

			...

		</ejbdoclet>

The jboss subtask has the two options to control the table creation and 
deletion: createTable and removeTable.

Bye



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.