On Sun, 2004-04-18 at 08:50, zousey seyzou wrote:
> Thanks for your imput, I have looked into how weblogic does the automatic 
> primarykey generation,
> here is .

The point is, however, that none of the current developers necessarily
use oc4j; although I committed the module in CVS, I've never actually
used it myself (the module came from a patch somebody submitted in
JIRA).  For all I know, oc4j may not even have a similar facility, or it
may have been added in a later version which the module doesn't support
- there's no mention of 'automatic' in the DTD we have in the module. 
Even if it does, the chances are that it is configured totally
differently.

What exactly (i.e. what XML elements) are you trying to get XDoclet to
produce in the orion-ejb-jar.xml descriptor?  If you don't know what
needs to go in the descriptor for automatic PK generation, then (unless
someone else on the list uses oc4j and can help us out) the Oracle
support forums may be a better place to ask.  Once you know what you
need to generate in the file, we can check if there's anything in the
template to do so, and tell you what tags to use.


Andrew.

> <XDT....>
> *******************************************************************************
> <XDtClass:ifHasClassTag tagName="weblogic:automatic-key-generation">
>       <automatic-key-generation>
>          <generator-type><XDtClass:classTagValue 
> tagName="weblogic:automatic-key-generation" paramName="generator-type" 
> values="ORACLE,SQL_SERVER,NAMED_SEQUENCE_TABLE"/></generator-type>
>          <XDtClass:ifHasClassTag tagName="weblogic:automatic-key-generation" 
> paramName="generator-name">
>          <generator-name><XDtClass:classTagValue 
> tagName="weblogic:automatic-key-generation" 
> paramName="generator-name"/></generator-name>
>          </XDtClass:ifHasClassTag>
>          <XDtClass:ifHasClassTag tagName="weblogic:automatic-key-generation" 
> paramName="key-cache-size">
>          <key-cache-size><XDtClass:classTagValue 
> tagName="weblogic:automatic-key-generation" 
> paramName="key-cache-size"/></key-cache-size>
>          </XDtClass:ifHasClassTag>
>       </automatic-key-generation>
>      </XDtClass:ifHasClassTag>
> 
> *******************************************************************************
> I assumed this is purelly a xdoclet tag(weblogic:automatic-key-generation) 
> does the same type or an other xdoclet tag could do the same on orcj4, or 
> maybe on any other server? what i am aming at is is there in xdoclet tag a 
> general way of doing this ? I am desperated.
> or could some one suggest a work- round for this problem ?
> 
> thanks.
> 
> 
> >From: Andrew Stevens <[EMAIL PROTECTED]>
> >Reply-To: [EMAIL PROTECTED]
> >To: [EMAIL PROTECTED]
> >Subject: Re: [Xdoclet-user] xdoclet tag to use for oracle oc4j 
> >automaticPrimaryKey generation ?
> >Date: Sat, 17 Apr 2004 23:25:37 +0100
> >
> >On Sat, 2004-04-17 at 12:23, zousey seyzou wrote:
> > > I am looking for xdoclet tag to use to  generate oracle server oc4j
> > > automatic PrimaryKey,
> > > any body has or knows the xdoclet tag to automatically  generate 
> >primaryKey
> > > of the ejb's that will be deploy on oracle oc4j server ?.
> > > I have done this on weblogic server, the tag is.
> > > *
> > > * @weblogic.automatic-key-generation
> > > *    generator-type="ORACLE"
> > > *    generator-name="OPENING_HOUR_SEQ"
> > > *    key-cache-size="1"
> >
> >What needs to be included in the oc4j descriptor to enable this?  If you
> >search through the .xdt template for the appropriate element it should
> >be reasonably obvious from the surrounding <XDt...> template code what
> >the relevant tags are.  Of course, that's assuming that oc4j supports
> >such a feature in the first place; I've never used it myself so I don't
> >know whether it does or not.
> >
> >
> >Andrew.



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to