> -----Original Message-----
> From: Kees Jongenburger
> 
> I ofthen have this problem. If you use bridge code in a 
> module you need to get a cloud therefore you ofthen need to 
> store a user/passwd in you code :(

You can store the username/password in the module configuration file.
Another solution is to create a central utility method that can be
called to get a reference to a cloud object. Only the utility method
will need to look up the password in order to create a cloud instance.
Another benefit from the latter solution is one single cloud instance
can be shared and reused by all code, as the basic cloud implementation
is (apparently) threadsafe.

> But there is one more problem when using bridge code. that is 
> that the current bridge does not allow to listen to node 
> changes maybe we need to add some methods for that in the bridge

Correct. The listener interface you need to implement is a core
interface (MMBaseObserver), and you need to make core calls to register
the listeners. 
Nevertheless, the code implementing the listener interface (two methods)
can be written entirely using bridge interfaces.

I agree it would be better to include the event-notification system in
the bridge.

Rob van Maris

Quantiq
xmedia & communication solutions
-------------------------------------------------------------
Koninginneweg 13
Hilversum, The Netherlands
mob. 316 42258660
-------------------------------------------------------------

 



Reply via email to