Hmm, in my system it doesn't have the resource-ref entry either, it only
places a datasource entry in the jbosscmp-jdbc.xml file but it seems to
work for the CMP beans. Is this not working for you?
Ben Litchfield
Darren Hartford wrote:
Hey all,
Been a while, but starting a new project and I am confused about
something - it seems the generated code it not mapping the
datasourceJNDIName correctly.
In ejb-jar.xml, there should be:
<resource-ref >
<res-ref-name>myJNDIdatasourcereference</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
Also, for each application server seperate @persistance type tags in the
bean to go to the appropriate deployment descriptors.
Has anyone run into this? Target is CMP2.0 on Jboss platform.
-D
<middlegen
appname="${pom.artifactId}"
prefsdir="${basedir}"
gui="false"
databaseurl="jdbc:mysql://server/DB"
driver="com.mysql.jdbc.Driver"
username="blah"
password="blah"
datasourceJNDIName="java:/myJNDIdatasourcereference"
initialContextFactory="org.jnp.interfaces.NamingContextFactory"
providerURL="localhost:1099"
<cmp20
destination="${basedir}/generated/middlegen"
mergedir="${basedir}/src/conf/middlegen"
package="${pom.package}.domain.ejb"
interfacepackage="${pom.package}.domain.interfaces"
pkclass="false"
dataobject="false"
valueobject="true"
viewtype="local"
readonly="false"
fkcmp="true"
guid="false"
sessionfacade="false"
<jboss/>
</cmp20>
</middlegen>
-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
middlegen-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/middlegen-user
-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
middlegen-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/middlegen-user