I can not get the zola test code to work. When I try
to add a new user the transaction is never
commited. The output shows that the ejbCreate runs
and there is a lock on the personentity table which
I can only clear by stopping jboss.
This happens with both the 2.0 final and PRE2.1
code. I am using Postgres 6.5 for the DB.
Could I have something set wrong?
Ken
jboss.jcml entry:
<mbean code="org.jboss.jdbc.XADataSourceLoader"
name="DefaultDomain:service=XADataSource,
name=WebstorePool">
<attribute name="PoolName">WebstorePool</attribute>
<attribute name="DataSourceClass">
org.jboss.minerva.xa.XADataSourceImpl
</attribute>
<attribute name="Properties"></attribute>
<attribute name="URL">
jdbc:postgresql://localhost/zoldb
</attribute>
<attribute name="GCMinIdleTime">1200000</attribute>
<attribute name="JDBCUser">sa</attribute>
<attribute name="MaxSize">10</attribute>
<attribute name="Password">"xxx"</attribute>
</mbean>
ejb-jar.jar:
<?xml version="1.0" encoding="UTF-8"?>
<ejb-jar>
<enterprise-beans>
<entity>
<description>
PersonEntity. Represents a person
entity in the
ZOL Web Store Demo.
</description>
<display-name>PersonEntity</display-name>
<ejb-name>person.PersonEntityHome</ejb-name>
<home>org.jboss.zol.webstore.ejbs.person.PersonEntityHome</home>
<remote>org.jboss.zol.webstore.ejbs.person.PersonEntity</remote>
<ejb-class>org.jboss.zol.webstore.ejbs.person.PersonEntityBean</ejb-class>
<persistence-type>Bean</persistence-type>
<prim-key-class>java.lang.String</prim-key-class>
<reentrant>False</reentrant>
<primkey-field>email</primkey-field>
<resource-ref>
<description>A jdbc connection for the BMP bean</description>
<res-ref-name>WebstorePool</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</entity>
</enterprise-beans>
<assembly-descriptor>
<container-transaction>
<method>
<ejb-name>person.PersonEntityHome</ejb-name>
<method-name>*</method-name>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
</assembly-descriptor>
</ejb-jar>
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]