mysql-ds.xml is (Someone the  node is being striped off when I paste the file 
here but its there rt after the user-name) :

        <local-tx-datasource>
        <jndi-name>MySqlDS</jndi-name>
        <connection-url>jdbc:mysql://localhost:3306/test</connection-url>
        <driver-class>com.mysql.jdbc.Driver</driver-class>
        <user-name>root</user-name>
        
        <type-mapping>mySQL</type-mapping>
        
        </local-tx-datasource>


JBOSSCMP-JDBC.xml is (the datasource node is being stripped off but the JNDO 
name is within the datasource node) :
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE jbosscmp-jdbc PUBLIC "-//JBoss//DTD JBOSSCMP-JDBC 4.0//EN"
          "http://www.jboss.org/j2ee/dtd/jbosscmp-jdbc_4_0.dtd";>
<jbosscmp-jdbc>
        
        java:/MySqlDS
                <datasource-mapping>mysql</datasource-mapping>
                <create-table>true</create-table>
                <pk-constraint>true</pk-constraint>
                <fk-constraint>false</fk-constraint>
                
<preferred-relation-mapping>foreign-key</preferred-relation-mapping>
                
        <enterprise-beans>
                
                        <ejb-name>MovieBean</ejb-name>
                        <table-name>movie</table-name>
                        <cmp-field>
                                <field-name>name</field-name>
                                <column-name>name</column-name>
                        </cmp-field>
                        <cmp-field>
                                <field-name>leadActor</field-name>
                                <column-name>lead_actor</column-name>
                                <not-null/>
                        </cmp-field>
                        <cmp-field>
                                <field-name>id</field-name>
                                <column-name>id</column-name>
                                <not-null/>
                        <auto-increment/>
                        </cmp-field>
                        
        </enterprise-beans>
</jbosscmp-jdbc>


The EAR structure is like this:
File : Manifest.mf, Path = meta-inf\
jbosscmp.jdbc.xml, Path = meta-inf\
jboss.xml, Path = meta-inf\
application.xml, Path = meta-inf\
test.jar 

The Jboss.xml is file contains :
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS 3.0//EN"
   "http://www.jboss.org/j2ee/dtd/jboss_3_0.dtd";>

        <enterprise-beans>
                
                        <ejb-name>MovieServiceHome</ejb-name>
                
                
                        <ejb-name>MovieBean</ejb-name>
                
        </enterprise-beans>




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

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


-------------------------------------------------------
SF.Net email is sponsored by: Tell us your software development plans!
Take this survey and enter to win a one-year sub to SourceForge.net
Plus IDC's 2005 look-ahead and a copy of this survey
Click here to start!  http://www.idcswdc.com/cgi-bin/survey?id=105hix
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to