David Jencks пишет:

I think you gave us two copies of the geronimo-web.xml and none of the openejb-jar.xml. Are these modules deployed separately or in an ear?

Sorry, I really put only geronimo-web.xml.
Yes, these modules deployed separately.

openejb-jar.xml:

<?xml version="1.0" encoding="UTF-8"?>
<openejb-jar xmlns="http://www.openejb.org/xml/ns/openejb-jar-2.1";
        xmlns:geronimo="http://geronimo.apache.org/xml/ns/security-1.1";
        xmlns:naming="http://geronimo.apache.org/xml/ns/naming-1.1";
        xmlns:pkgen="http://www.openejb.org/xml/ns/pkgen-2.0";
        xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.1";
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
        xsi:schemaLocation="http://www.openejb.org/xml/ns/openejb-jar-2.1 
../../../schemas/openejb-jar-2.1.xsd http://geronimo.apache.org/xml/ns/naming-1.1 
geronimo-naming-1.1.xsd http://geronimo.apache.org/xml/ns/security-1.1 
geronimo-security-1.1.xsd http://geronimo.apache.org/xml/ns/deployment-1.1 
geronimo-module-1.1.xsd http://www.openejb.org/xml/ns/pkgen-2.0 openejb-pkgen-2.0.xsd 
">
        <sys:environment>
                <sys:moduleId>
                        <sys:groupId>timbertrader-exchange</sys:groupId>
                        <sys:artifactId>ejb</sys:artifactId>
                        <sys:version>1.0</sys:version>
                        <sys:type>car</sys:type>
                </sys:moduleId>
                <sys:dependencies>
                        <sys:dependency>
                                <sys:groupId>console.dbpool</sys:groupId>
                                
<sys:artifactId>TimberTraderDataSource</sys:artifactId>
                        </sys:dependency>
                </sys:dependencies>
                <sys:hidden-classes/>
                <sys:non-overridable-classes/>
        </sys:environment>
        <enterprise-beans>
                <entity>
                        <ejb-name>AccountEJB</ejb-name>
                        
<jndi-name>ejb/timbertrader/exchage/ejb/Account</jndi-name>
                        <naming:resource-ref>
                                <naming:ref-name>
                                        jdbc/timbertrader/exchange/datasource
                                </naming:ref-name>
                                <naming:resource-link>
                                        TimberTraderDataSource
                                </naming:resource-link>
                        </naming:resource-ref>
                </entity>
                <entity>
                        <ejb-name>AccountInfoEJB</ejb-name>
                        <jndi-name>
                                ejb/timbertrader/exchage/ejb/AccountInfo
                        </jndi-name>
                        <naming:resource-ref>
                                <naming:ref-name>
                                        jdbc/timbertrader/exchange/datasource
                                </naming:ref-name>
                                <naming:resource-link>
                                        TimberTraderDataSource
                                </naming:resource-link>
                        </naming:resource-ref>
                </entity>
                <entity>
                        <ejb-name>AccountProfileEJB</ejb-name>
                        <jndi-name>
                                ejb/timbertrader/exchage/ejb/AccountProfile
                        </jndi-name>
                        <naming:resource-ref>
                                <naming:ref-name>
                                        jdbc/timbertrader/exchange/datasource
                                </naming:ref-name>
                                <naming:resource-link>
                                        TimberTraderDataSource
                                </naming:resource-link>
                        </naming:resource-ref>
                </entity>
        </enterprise-beans>
</openejb-jar>

Reply via email to