Hi,
The documentation
http://api.openoffice.org/docs/
common/ref/com/sun/star/bridge/XBridgeFactory.html
says about the first arg to createBridge()
--*
Parameter sName*
The name of the bridge. This allows other components to
reuse an
already created bridge (using getBridge).
If empty, an anonymous bridge is created, which cannot
be retrieved
with getBridge(). No BridgeExistsException can be thrown
in this case.
--
However I do get a BridgeExistsException despite passing
"" as the sName.
Looking at the code (BridgeFactory.java)
if(sName == null || sName.length() == 0)
sName = sProtocol + ":" +
aConnection.getDescription();
so if sName is empty it just creates one; I see nothing
resembling the
"anonymous bridge" mentioned by the
documentation?
Thanks
Mirko
------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribe api.openoffice.org
For additional commands, e-mail: dev-help api.openoffice.org
|