To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=94036
Issue #|94036
Summary|When starting open office in listening mode with java
|registered databases are not recognised
Component|Database access
Version|OOo 2.4.1
Platform|PC
URL|
OS/Version|All
Status|UNCONFIRMED
Status whiteboard|
Keywords|
Resolution|
Issue type|DEFECT
Priority|P3
Subcomponent|none
Assigned to|dbaneedsconfirm
Reported by|kpassey
------- Additional comments from [EMAIL PROTECTED] Thu Sep 18 13:05:56 +0000
2008 -------
I have a small java app that does a mail merge with an ODBC data base.
I have set up the database and registered it with OO. I have also removed the
Bibliography database so my new database is the only registered database.
In my app
XNameAccess xNameAccess = (XNameAccess) UnoRuntime.queryInterface(
XNameAccess.class, xRemoteServiceManager
.createInstanceWithContext(
"com.sun.star.sdb.DatabaseContext",
xRemoteContext));
String[] elements = xNameAccess.getElementNames();
for (int i = 0; i < elements.length; i++) {
System.out.println(" Elements " + elements[i]);
}
The above code returns "Elements Bibliography" if I start OpenOffice from within
the java app - even though is is not a "registered" database.
If I start it by keying soffice from a command line it returns the registered
database AS400.odb
---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]