Re: Re: [JBoss-user] Oracle Sequences PK in Session bean

2001-05-08 Thread tim . haley
hange code in > > several places if you just access the sequence directly, but if you wrap it > > in a getter function, you don't have to change anything but that getter > > function. > > > > - Original Message - > > From: <[EMAIL PROTECTE

RE: [JBoss-user] Oracle Sequences PK in Session bean

2001-05-08 Thread Sacha Labourey
age d'origine- > De : [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]De la part de Jason > Dillon > Envoye : lundi, 7 mai 2001 21:40 > A : jBoss-User Mailing List > Objet : Re: [JBoss-user] Oracle Sequences PK in Session bean > > > I wrote a SequenceManager SSB, whi

Re: [JBoss-user] Oracle Sequences PK in Session bean

2001-05-07 Thread danch
Guy Rouillier wrote: > This approach will not work reliably. Between your insert of nextval and > your select of currval, someone else may have inserted another row, such > that your currval will actuall retrieve the wrong currval. I suppose you > could address this with synchronized, but a bet

Re: [JBoss-user] Oracle Sequences PK in Session bean

2001-05-07 Thread Victor Langelo
#x27;t have to change anything but that getter > function. > > - Original Message - > From: <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Cc: "Sacha Labourey" <[EMAIL PROTECTED]> > Sent: Monday, May 07, 2001 3:36 PM > Subject: Re: [JBoss-user]

Re: [JBoss-user] Oracle Sequences PK in Session bean

2001-05-07 Thread Guy Rouillier
change anything but that getter function. - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: "Sacha Labourey" <[EMAIL PROTECTED]> Sent: Monday, May 07, 2001 3:36 PM Subject: Re: [JBoss-user] Oracle Sequences PK in Session bean > > &

Re: [JBoss-user] Oracle Sequences PK in Session bean

2001-05-07 Thread tim . haley
abourey" <[EMAIL PROTECTED]> To: "jBoss-User Mailing List" <[EMAIL PROTECTED]> Date: Mon, 7 May 2001 18:40:06 +0200 Message-ID: <[EMAIL PROTECTED]> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printab

Re: [JBoss-user] Oracle Sequences PK in Session bean

2001-05-07 Thread Jason Dillon
I wrote a SequenceManager SSB, which takes plug-able (Sequence DAO objects) to access to underlying database. It could definitely use some improvements, like better value caching and such. I would be willing to share it, but I am not really sure where the appropriate place would be. Perhaps a c

[JBoss-user] Oracle Sequences PK in Session bean

2001-05-07 Thread Sacha Labourey
Hello, Does someone already has developped a session bean for JBoss which sole purpose is to get an Oracle Sequence value from an underlying Oracle database? If it is the case and you accept to share it, I take it with joice! Just not to develop it twice... ;) Thank you. Cheers,