[mdr-users] RE: Accessing the NBMDR from the NetBeans IDE
"ludger goeke" <[email protected]> Wed, 27 Jul 2005 14:39:03 +0200 (MEST)
| Newsgroups | gmane.comp.java.netbeans.modules.mdr.user |
|---|---|
| Message-ID | <[email protected]> |
Hi Martin,
I just try to access the MDR belongingb to the NetBeans IDE from an
application that I run from the NetBeans IDE. Is the source code
correct ? I was suprised that there appeared not all the names of the
extents that I created in the mdr of the Netbeans IDE and that I can see in
the MDR Browser . Because there only appeared the name "MOF" I supposed that
I don`t access the MDR of the NetBeans IDE, rather an other NBMDR that is on
my harddisk. Is the following source code, to access the MDR belonging to
the NetBeans IDE,correct ?
Regards, Ludger
>
> MDRManager manager =MDRAccess.getDefault().getDefaultManager();
> MDRepository repository =manager.getDefaultRepository();
> String allNames[] =repository.getExtentNames();
>
> for(int i=0;i<allNames.length;i++){
> System.out.println(allNames[i]);
> }
>
>But it is just the name "MOF" of the MOF-Extent printed,although there are
>more extents in the MDR, as I can see in the MDR-Explorer. After "MOF" is
>printed a StorageBadRequestException is thrown. Is it possible that I
>access the wrong storage-files ?
>
>
Remember you can't use MDR storage files by two applications running at
once. MDR b-tree is a single-client database. Accessing it from multiple
applications simultaneously will cause problems. Also there is a
possibility that your standalone MDR version is different from the
version you are using in NetBeans.
--
GMX DSL = Maximale Leistung zum minimalen Preis!
2000 MB nur 2,99, Flatrate ab 4,99 Euro/Monat: http://www.gmx.net/de/go/dsl