Steven Webster wrote:
> Hi all,
<snip>
> More questions from me now:
>
> 1. What's the difference between standardjaws.xml (which exists
> by default) and jaws.xml (which doesn't exist by default). Should I
> be editing standardjaws.xml, or should I be copying it to jaws.xml,
> and editing that ? Apologies if this in the docs, but I can't find
> a good answer to this.
The docs are a little weak on explaining the JAWS initialization
sequence. I'll work on that.
When JAWS is initializing for your bean, it first loads
standardjaws.xml, then trys to load a jaws.xml from your ejb-jar's
META-INF directory. This way, you can override whatever you need to in
jaws.xml without overriding the whole thing.
Which should be changed depends on what you JBoss instance you're
dealing with is doing and what you're changing. Typically, the only
things you'd change in standardjaws.xml would be the 'datasource' and
'type-mapping' tags at the top. What I do on my development setup is to
leave the datasource in there pointing at 'DefaultDS', but i then change
DefaultDS to point at my PostgreSQL database and get rid of any other
datasource definitions in jboss.jcml. That way I don't get confused, and
with BMP like things, have less mapping to do in jboss.xml.
>
> 2. Even though I know my CMP is working with MySQL, if I look at
> the MySQL database with a client, the data doesn't seem to have yet
> persisted - I assume it's being cached somehow ? Is this correct ?
> Does it eventually write-through ? I noticed another post about the
> <commit-option/> in jboss.xml/standardjboss.xml (same question - which
> should I edit ?) which I'll pursue the EJB spec about...
Hrrmm, I think you've probably landed in another of our undocumented
traps. That 'datasource' tag in jaws/standardjaws.xml? You probably
still have it pointed at DefaultDS, and you're MySQL datasource probably
has a different name, yes? Either give yourself a jaws.xml in your bean
jar that overrides those two settings (the type-mapping also needs to
reference the MySQL mapping from standardjaws), or change
standardjaws.xml to point to your MySQL datasource. If you're not going
to need another datasource, I'd just change standardjaws.xml, but if
you're going to need to access several different databases, or are going
to roll into a production environment where there will be several
datasources defined, I'd byte the bullet and add a jaws.xml now.
-danch
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user