[ http://issues.apache.org/jira/browse/GERONIMO-1133?page=all ] Gianny Damour closed GERONIMO-1133: -----------------------------------
Resolution: Fixed This is now implemented. I have actually borrowed the UUID algorithm implementation from Axis and created a new PrimaryKeyGenerator strategy to TranQL. The new choice element "uuid" defined by "key-generator" is used to use the UUID generator. > UUID primary key generator > -------------------------- > > Key: GERONIMO-1133 > URL: http://issues.apache.org/jira/browse/GERONIMO-1133 > Project: Geronimo > Type: New Feature > Components: OpenEJB > Versions: 1.0-M5 > Reporter: Dain Sundstrom > Assignee: Gianny Damour > Fix For: 1.1 > Attachments: UUIDGBean.java, keygenerator.xml > > This is a custom-generator GBean which implements > org.tranql.pkgenerator.PrimaryKeyGenerator. This GBean is able to create > automatically generated UUID primary key for unknown primary keys. It uses. > the org.apache.axis components.uuid.FastUUIDGen class for generating the UUID > primary key. > As we know JBoss use a automatically generated UUID primary key for unknown > primary keys. That's why we are able to deploy the adventure builder > application successfully on JBoss. But it create problem when we deploy it in > Geronimo. Using this GBean that issue can be resolved. I have tested it with > a the adventure builder application . It is working perfectly. > We can use this GBean in openejb-jar.xml as follows : - > create a jar archive 'keygenerator.jar' and copy it inside the directory ' > $GERONIMO_HOME\repository\keygenerator\jars\ ' > then deploy the GBean as follows : > ------------------------------------------------ > <configuration xmlns="http://geronimo.apache.org/xml/ns/deployment" > configId="geronimoKeyGenerator"> > <dependency> > <uri>keygenerator/jars/keygenerator.jar</uri> > </dependency> > <dependency> > <uri>axis/jars/axis-1.3-svn293059-geronimo.jar</uri> > </dependency> > <gbean name="UUIDGenaratorGBean" class="com.UUIDGBean"> > </gbean> > </configuration> > Then use the deployed GBean in the openejb-jar.xml as follows : > ----------------------------------------------------------------------------------------- > <key-generator> > <custom-generator> > <generatorname> > geronimo.server:J2EEApplication=null,J2EEModule=geronimoKeyGenerator,J2EEServer=geronimo,j2eeType=GBean,name=UUIDGBean > </generator-name> > <primary-key-class>java.lang.String</primary-key-class> > </custom-generator> > </key-generator> -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira