geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ranjan, Rakesh \(Cognizant\)" <Rakesh.Ran...@cognizant.com>
Subject Re: GBean for auto generation of primary key
Date Wed, 04 Jan 2006 13:36:26 GMT











Hi Jacek,



I think the issue for which I am talking about is resolved now. Yet I am
sending that mail again.



Rakesh



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 the adventure builder 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,J2E
EServer=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







Re: GBean for auto generation of primary key



Reply (Restricted by the Administrator) | Show Only this Message
<http://www.nabble.com/Re%3A-GBean-for-auto-generation-of-primary-key-p2
200942.html> 

2005/12/16, Ranjan, Rakesh (Cognizant) <Rakesh.Ranjan@...
<http://www.nabble.com/user/SendEmail.jtp?type=post&post=2200942&i=0> >:


> So, I hope adventure builder deployment issue will be resolved very
soon.

Hi,

I must've missed it, but what issue are you talking about?

> Rakesh Ranjan

Jacek





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
Mime
View raw message