On Thu, 2003-03-13 at 01:14, Cleber Miranda Barboza wrote: > Ho do I specify which data base this entity will access ? > I told that becouse @ejb.persistence doesn't have the same tags as > @jboss.persistence. For example, @jboss.persistence has > > datasource="MySqlDS" > datasource-mapping="mySQL" > create-table="true"
You've practically answered your own question - the ejb.persistence tags specify the table (at class level) and columns (at method level), since those are common to most if not all CMP engines. Anything else which may be done differently on each app server uses a module-specific tag or config parameter. In the case of jboss, (which I don't actually use myself so I'm guessing here based on your description above) you specify the datasource to use and the type of database it uses (so the correct SQL dialect can be used) with the jboss.persistence tag. Actually, I'm a bit surprised the datasource is specified with a tag in each bean rather than just using a config parameter. I can't imagine it's a common requirement to have different EJBs being persisted to different databases. Or perhaps there is a config parameter to set the default datasource, and you'd only use the above on any particular EJBs for which you want to override it. Perhaps one of the jboss maintainers could clarify this, to save me digging through the templates? Andrew. ------------------------------------------------------- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
