You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Dain Sundstrom (JIRA)" <de...@geronimo.apache.org> on 2005/11/04 18:55:19 UTC
[jira] Created: (GERONIMO-1133) UUID primary key generator
UUID primary key generator
--------------------------
Key: GERONIMO-1133
URL: http://issues.apache.org/jira/browse/GERONIMO-1133
Project: Geronimo
Type: New Feature
Components: OpenEJB
Reporter: Dain Sundstrom
Assigned to: Gianny Damour
Many application written for JBoss use a automatically generated UUID primary key for unknown primary keys. We need a UUID generator so these applications can easily migrate to Geronimo.
--
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
[jira] Commented: (GERONIMO-1133) UUID primary key generator
Posted by "Davanum Srinivas (JIRA)" <de...@geronimo.apache.org>.
[ http://issues.apache.org/jira/browse/GERONIMO-1133?page=comments#action_12356804 ]
Davanum Srinivas commented on GERONIMO-1133:
--------------------------------------------
We can borrow this one - http://svn.apache.org/viewcvs.cgi/webservices/axis/trunk/java/src/org/apache/axis/components/uuid/
thanks,
dims
> UUID primary key generator
> --------------------------
>
> Key: GERONIMO-1133
> URL: http://issues.apache.org/jira/browse/GERONIMO-1133
> Project: Geronimo
> Type: New Feature
> Components: OpenEJB
> Reporter: Dain Sundstrom
> Assignee: Gianny Damour
>
> Many application written for JBoss use a automatically generated UUID primary key for unknown primary keys. We need a UUID generator so these applications can easily migrate to Geronimo.
--
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
[jira] Updated: (GERONIMO-1133) UUID primary key generator
Posted by "Rakesh Ranjan (JIRA)" <de...@geronimo.apache.org>.
[ http://issues.apache.org/jira/browse/GERONIMO-1133?page=all ]
Rakesh Ranjan updated GERONIMO-1133:
------------------------------------
Attachment: UUIDGBean.java
keygenerator.xml
> 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
>
> Many application written for JBoss use a automatically generated UUID primary key for unknown primary keys. We need a UUID generator so these applications can easily migrate to Geronimo.
--
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
[jira] Updated: (GERONIMO-1133) UUID primary key generator
Posted by "Rakesh Ranjan (JIRA)" <de...@geronimo.apache.org>.
[ http://issues.apache.org/jira/browse/GERONIMO-1133?page=all ]
Rakesh Ranjan updated GERONIMO-1133:
------------------------------------
Description:
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>
was:Many application written for JBoss use a automatically generated UUID primary key for unknown primary keys. We need a UUID generator so these applications can easily migrate to Geronimo.
> 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
[jira] Closed: (GERONIMO-1133) UUID primary key generator
Posted by "Gianny Damour (JIRA)" <de...@geronimo.apache.org>.
[ 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
[jira] Updated: (GERONIMO-1133) UUID primary key generator
Posted by "Aaron Mulder (JIRA)" <de...@geronimo.apache.org>.
[ http://issues.apache.org/jira/browse/GERONIMO-1133?page=all ]
Aaron Mulder updated GERONIMO-1133:
-----------------------------------
Fix Version: 1.1
Version: 1.0-M5
> 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
>
> Many application written for JBoss use a automatically generated UUID primary key for unknown primary keys. We need a UUID generator so these applications can easily migrate to Geronimo.
--
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