<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
ruben malchow schrieb:
<blockquote cite="mid454D9D34.3060906@web.de" type="cite">
<meta http-equiv="Context-Type"
content="text/html; charset=ISO-8859-1">
<title></title>
<br>
hello andy, ...<br>
<br>
the core of opencms is a singleton, and thus it is only instantiated
once, and it only creates one instance of the module class, too. it
also holds a reference to the module action object, so it will not
disappear. <br>
<br>
a.) to store the reference to CmsObject that is being passed to the
initialize() method, you could do something like this:<br>
<br>
<br>
<tt> public class BlahAction extends A_CmsModuleAction {<br>
<br>
private CmsObject co;<br>
<br>
[...]<br>
<br>
public void initialize(<br>
CmsObject _co, <br>
CmsConfigurationManager _ccm, <br>
CmsModule _cm) {<br>
this.co = _co;<br>
}<br>
}<br>
</tt></blockquote>
this is possible, but you should be careful about what you do with this
cmsObject. You should not access any request-related things, because
there is probably no meaningful information in the request context of
that cms object.<br>
Also, I don't know, which user, project and site root would be set for
that cmsObject<br>
<br>
christian
</body>
</html>