Hernan has written several great for porting applications from JBoss
to Geronimo. Unfortunately, the CMP guide hasn't been started yet,
but it should help in other areas:
http://opensource2.atlassian.com/confluence/oss/display/GERONIMO/
Migrating+to+Apache+Geronimo
As for converting over the PK generator, the best example I could
find in the OpenEJB code base is:
http://cvs.openejb.org/viewrep/openejb/openejb/modules/openejb-
builder/src/test-ejb-jar/META-INF/openejb-jar.xml?r=1.6
All of these examples use database created and managed primary keys,
which have the highest reliability. After, poking around in the code
for a bit, it doesn't appear that OpenEJB has a UUID PK generator
yet. I created a JIRA issue for this and assigned it to Gianny, whom
wrote most of this code. You can track the issue here:
http://issues.apache.org/jira/browse/GERONIMO-1133
-dain
On Nov 4, 2005, at 4:23 AM, saraswathi selvaraj wrote:
Hi,
Iam trying to migrate an application from JBoss to
Geronimo, which has an EmployeeEntityBean(CMP). JBoss
uses an Automated key generator for unknown primary
field in the CMP EJB. May i know the geronimo mapping
equivalent snippet for the following mappings in
jbosscmp-jdbc.xml:
<jbosscmp-jdbc>
<entity>
<unknown-pk>
<unknown-pk-class>
java.lang.Object
</unknown-pk-class>
<column-name>
ActivityDetailsBean_upk
</column-name>
<jdbc-type>VARCHAR</jdbc-type>
<sql-type>VARCHAR(32)</sql-type>
</unknown-pk>
<entity-command name="key-generator"/>
<entity>
<entity-commands>
<entity-command name="key-generator"
class="org.jboss.ejb.plugins.cmp.jdbc.keygen.JDBCKeyGeneratorCreateCom
mand">
<attribute name="key-generator-factory">
UUIDKeyGeneratorFactory
</attribute>
</entity-command>
</entity-commands>
</jbosscmp-jdbc>
__________________________________
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com