geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Davanum Srinivas <dava...@gmail.com>
Subject Re: GBean for auto generation of primary key
Date Fri, 16 Dec 2005 15:16:51 GMT
Rakesh,

Please open a JIRA issue and upload the contribution files.

thanks,
dims

On 12/15/05, Ranjan, Rakesh (Cognizant) <Rakesh.Ranjan@cognizant.com> wrote:
>
>
>
> Hi all,
>
>
>
> I have a written 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 sample application . It is working perfectly.
>
> We can use this GBean in openejb-jar.xml as follows : -
>
>
>
> ............
>
> ............
>
> <primkey-field>id</primkey-field>
>
> <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>
>
> ............
>
> ............
>
>
>
> So, I hope adventure builder deployment issue will be resolved very soon.
>
>
>
> Thanks and Regard,
>
> Rakesh Ranjan
> This e-mail and any files transmitted with it are for the sole use of the intended recipient(s)
and may contain confidential and privileged information.
>  If you are not the intended recipient, please contact the sender by reply e-mail and
destroy all copies of the original message.
>  Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying
of this email or any action taken in reliance on this e-mail is strictly
>  prohibited and may be unlawful.
>
>    Visit us at http://www.cognizant.com
>



--
Davanum Srinivas : http://wso2.com/blogs/

Mime
View raw message