Re: [mdr-users] Accessing the NBMDR from the NetBeans IDE
Martin Matula <[email protected]> Mon, 25 Jul 2005 09:52:34 +0200
| Newsgroups | gmane.comp.java.netbeans.modules.mdr.user |
|---|---|
| Message-ID | <[email protected]> |
Hi,
ludger goeke wrote:
>I tried to access the NBMDR with the following simple application, that I
>started in the NetBeans IDE.
>
> 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.
>------------------------------------------------------------------------
>
>Another question I have, is about adding a module to to netbeans.
>I added the jar-File with my generated Interface to the $nbdir/modules
>directory. In the manifest for that jar-file I only wrote the classpathes
>and OpenIDE-Module: uml2module/1 . Is this sufficient ? I didn`t understand
>what the OpenIDE-Module-Localizing-Bundle-attribute means.
>
>
That should be enough - just check if your module appears under
Tools->Options->IDE Configuration->System->Modules and that it is enabled.
Regards,
Martin