You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by Thomas Dudziak <to...@first.gmd.de> on 2003/08/13 16:15:32 UTC

ClassDescriptor without db-connection ?

Is it possible to use the class descriptor api without having a db
connection open ? I do have a connection configured in the repository.xml
file but in certain cases I only want access to the class descriptors, not
to the database (in these cases the database might even be unavailable).

Tom


---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org


Re: ClassDescriptor without db-connection ?

Posted by Armin Waibel <ar...@code-au-lait.de>.
----- Original Message ----- 
From: "Thomas Dudziak" <to...@first.gmd.de>
To: "OJB Users List" <oj...@db.apache.org>
Sent: Wednesday, August 13, 2003 4:33 PM
Subject: Re: ClassDescriptor without db-connection ?


> Well, but how do I access the class descriptors without opening a
> connection ? Do I use the MetadataManager for this ?
>
yep!
 Or you can use PB.getClassDescriptor(...) too (PB use
intern the MetadataManager).
(but don't do PB.beginTransaction() this will opening
a connection)

HTH
regards,
Armin
 
> Tom
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
> 
> 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org


Re: ClassDescriptor without db-connection ?

Posted by Thomas Dudziak <to...@first.gmd.de>.
Well, but how do I access the class descriptors without opening a
connection ? Do I use the MetadataManager for this ?

Tom



---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org


Re: ClassDescriptor without db-connection ?

Posted by Armin Waibel <ar...@code-au-lait.de>.
Hi,
----- Original Message -----
From: "Thomas Dudziak" <to...@first.gmd.de>
To: <oj...@db.apache.org>
Sent: Wednesday, August 13, 2003 4:15 PM
Subject: ClassDescriptor without db-connection ?


> Is it possible to use the class descriptor api without having a db
> connection open ?
No problem, the persistent object metadata are completely
independend from the concrete connection.

regards,
Armin

> I do have a connection configured in the repository.xml
> file but in certain cases I only want access to the class descriptors,
not
> to the database (in these cases the database might even be
unavailable).
>
> Tom
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
>
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org