Emond Papegaaij wrote:
Hello,
I've created my own Serviceable object. It is registered from cocoon.xconf, however, how do I access this service? I need access from the following parts of the code:
- sitemap
?? Eventually an own action?
- javascript flow
cocoon.getComponent(<Role>) cocoo.releaseComponent(<Role>)
- xspWith method service or compose? I don't know which one is now implemented in XSP.
Note: ComponentManager (ServiceManager?) is already imported.
- custom java objects
Write your own method? But:
You should never throw a component thru other objects because of closing it correctly can be a problem!
The best way ist to get the component, fetch all datas required and then return it immediately after that. Only the required datas should be used as arguments for other objects becuase you can fall into troubles if you're using Poolable or ThreadSafe and not returning the component correctly!
Regards Stephan
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
