Moin Michael,
Michael Strobel wrote:
Hi,
the solution for the connection problem was rather simple, but hard to
find without the possibility to debug the component, the prefix
sdbc:ingres: is automatically added to the url string passed to the
connect() method and is not be entered in OOo. How do you debug
components compiled in the OOo SDK build environment?
Normally I attach the debugger to the process or start soffice.bin
directly. But it depends on your operating system ;-)
To add the functionality of some sdbx services to the driver and I have
to implement the corresponding interfaces, but how does OOo recognize
that the interfaces are implemented?
The driver will be queried for these interfaces. If the result is NULL
it isn't one :-)
I have added
com.sun.star.sdbcx.Driver to the supported services in the component
description xml file and to the strings in the sequence returned by the
getSupportedServiceNames() method in the driver.cxx, but not implemented
the XDataDefinitionSupplier interface, yet. I can compile the component
and install it, as well as connect to the database using the component.
Why does OOo not complain about the missing implementation?
Yes, at least it should assert if the interface is not available. But
instead it believes that the driver isn't a sdbcx one.
When you implement the sdbcx.Driver you must support the interface
XDataDefinitionSupplier.
Best regards,
Ocke
Best regards,
Michael
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Ocke Janssen Tel: +49 40 23646 661, x66661
Dipl. Inf(FH) Fax: +49 40 23646 550
Sun Microsystems Inc.
Nagelsweg 55 mailto:[EMAIL PROTECTED]
D-20097 Hamburg http://www.sun.com/staroffice
Sitz der Gesellschaft: Sun Microsystems GmbH, Sonnenallee 1,
D-85551 Kirchheim-Heimstetten
Amtsgericht Muenchen: HRB 161028
Geschaeftsfuehrer: Thomas Schroeder Wolfgang Engels, Dr. Roland Boemer
Vorsitzender des Aufsichtsrates: Martin Haering
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]