If you have a look in the docs folder of your JBoss installation you will find 
a dtd and schema folder, these two folders contain the dtd's and schemas that 
describe the layouts of the various deployment descriptors.  This is the best 
place to start when trying to work out the structure of the file.

Below is an example jbosscmp-jdbc.xml based on one from the JBoss testsuite (I 
have made some minor changes but it should be a valid file) : -


  | <?xml version="1.0" encoding="UTF-8"?>
  | 
  | <!DOCTYPE jboss PUBLIC
  |     "-//JBoss//DTD JBOSS 4.0//EN"
  |     "http://www.jboss.org/j2ee/dtd/jboss_4_0.dtd";>
  | 
  | <jbosscmp-jdbc>
  |    <defaults>
  | 
  |       <datasource>java:/MySqlDS</datasource>
  |       <datasource-mapping>mySQL</datasource-mapping>
  |      
  |       <create-table>true</create-table>
  |       <remove-table>true</remove-table>
  | 
  |    </defaults>
  | 
  |    <enterprise-beans>
  | 
  |       <entity>
  |          <ejb-name>SimpleEJB</ejb-name>
  |          <table-name>SimpleA</table-name>
  |       </entity>
  | 
  |    </enterprise-beans>
  | </jbosscmp-jdbc>
  | 

You don't need the majority of the data from the 'standardjbosscmp-jdbc.xml', 
JBoss uses the settings from the 'standardjbosscmp-jdbc.xml' unless it has been 
overriden in the deployment specific 'jbosscmp-jdbc.xml'.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3882996#3882996

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3882996


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to