Hi,
surely they are gone if you re-deploy!! Your programs are gone as well if
you restart you computer ;-).
They have to be restored by you if you use BMP, this means in ejbLoad YOU
load all values for you member variables, in ejbStore YOU save all data to
the db, don't ever CALL ejbLoad, ejbStore, ejbWhatever, they belong to the
container.
Burkhard
----- Original Message -----
From: "Miguel Angel Medina Lopez" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, June 24, 2001 3:15 PM
Subject: Re: [JBoss-user] Primitive Types in Entity beans
> I lost values if I re-deploy the application or if I restart the
container.
> Then I lost when store and load data from database.
> I don't implement the ejbPassivate and ejbActivate methods.
>
> ----- Original Message -----
> From: "Burkhard Vogel" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, July 18, 2001 2:39 PM
> Subject: Re: [JBoss-user] Primitive Types in Entity beans
>
>
> > Hi,
> > just guessing here, but do you mean lost after passivation/activation?
or
> > lost when?
> > If on passivation/activation this is because primitives are not
> Serializable
> > (However if the class implements Serializable? Heck, who knows this?).
> > Burkhard
> > ----- Original Message -----
> > From: "jK.MkIII" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Wednesday, July 18, 2001 1:39 PM
> > Subject: Re: [JBoss-user] Primitive Types in Entity beans
> >
> >
> > > Miguel Angel Medina Lopez wrote:
> > > Hi:
> > > I'm implementing an entity bean that manage persintence (BMP). I
> declare
> > > the entity variables with primitive types like float and boolean.
> > >
> > > The problem is that the values of these variables seem to be lost,
but
> > > if I use a object from Float class (an not from float type) it's
work
> > > well.
> > >
> > > Is that normal? I always must use java classes and not primitive
> types?
> > >
> > > Hmm? With BMP (Bean Managed Persistency) you can have your variable
> stored
> > in whatever format you wish, even convert them to gifs if you wish..
> because
> > you will be doing SQL calls (or what ever) that store and load them.
> > > Are you sure you aren't talking about CMP (Container Managed
> Persistency)
> > where container handles stuff that keeps entity beans persistent?
Haven't
> > worked with them yet so can't answer from top of my head.
> > >
> > > --
> > > jK.MkIII
> > >
> > > _______________________________________________ JBoss-user mailing
> list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/jboss-user
> > >
> > >
> >
> >
> > _______________________________________________
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/jboss-user
>
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user