[ 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

Reply via email to