jBoss does not include an ID service that lives in JNDI and
generates new unique keys. If you want that, you could certainly write an
MBean to do it.
Aaron
On Wed, 18 Oct 2000, Bjarne Olsen wrote:
> Hi!
>
> I had a closer look on the bank-account-customer-teller example and got
> some
> good ideas from it.
>
> Like the Bank-Bean, I also have a db-table with a primary key that should
> be automatically incremented. So I also tried to generate the id with this
> line:
>
> id = (String)getInitialContext().lookup("java:comp/env/id");
>
> When executing the ejb-client I get a javax.naming.NameNotFoundException.
>
> So, I do I get this "ID-Service" ?
>
> TIA
> Bjarne
>
>
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]