[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Doubt....
On Thu, 08 Mar 2001, Priyaa wrote:
> Hello Sir,
> Thanks for your reply.
> As per your suggestion we tried after restarting the server. Still we get
> errors.
Please see the samples and the tutorial. You have to define a final static long
serialVersionUID in order to make the classes compatible. See also
http://java.sun.com/j2se/1.3/docs/guide/serialization/spec/serialTOC.doc.html
Falko
>
> The Error Message is:
> ---------------------
> connected......
> exception
> org.ozoneDB.OzoneInternalExc: java.io.InvalidClassException: Car; Local
> class not compatible: stream classdesc serialVersionUID=7874274097213649505
> local class serialVersionUID=8780050788869226597
> at
> org.ozoneDB.ExternalDatabase.sendCommand(ExternalDatabase.java:402)
> at
> org.ozoneDB.ExternalDatabase.sendCommand(ExternalDatabase.java:376)
> at
> org.ozoneDB.ExternalDatabase.objectForName(ExternalDatabase.java:635)
> at MyApp.main(MyApp.java:21)
>
> Thanx
> bye
> priyaa
>
>
>
>
> ----- Original Message -----
> From: Falko Braeutigam <falko@smb-tec.com>
> To: Priyaa <Priyaa@vdc.equadriga.com>; <ozone-users@ozone-db.org>
> Sent: Thursday, March 08, 2001 3:50 PM
> Subject: Re: Doubt....
>
>
> > On Thu, 08 Mar 2001, Priyaa wrote:
> > > >%_Hello,
> > >
> > > 1. If I change the class whose object is stored in the database, I am
> not
> > > able to access the database. But I could access it, if I create the
> database
> > > again. What should be done to access the database without deleting it or
> Do we
> > > have some other way?
> >
> > It isn't possible to reload classes while the ozone JVM is running. If the
> > class file of a database class has changed you must restart (not recreate)
> the
> > server. This is indeed a drawback of the current version.
> >
> > > 2. While storing the objects in the database, Is it not necessary to
> commit
> > > it?
> >
> > If you don't use explicit transaction demarcation (via
> ExternalTransaction),
> > then transactions are implicitly commited after each remote method
> invocation.
> >
> >
> > Falko
> > --
> > ______________________________________________________________________
> > Falko Braeutigam mailto:falko@smb-tec.com
> > SMB GmbH http://www.smb-tec.com
> >
--
______________________________________________________________________
Falko Braeutigam mailto:falko@smb-tec.com
SMB GmbH http://www.smb-tec.com