You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by Shawn Jiang <ge...@gmail.com> on 2009/09/17 05:36:59 UTC

Is it possible to mark a GBean attribute "managable=true" but not trigger a config.xml rewriting when the attribute is updated ?

I'm working on recovering connector portlet recently because the connector
configuration was changed to server.xml from config.xml.    To make current
connector portlet work, I have to create corresponding connectorGBean in
memory for those connectors defined in server.xml.


The problem is

When the attributes of connectorGBean are marked as "managable=true" , the
changes to the connectorGBean in memory will be written back to config.xml
automatically. ( by calling
org.apache.geronimo.console.BasePortlet.setProperty(connectorGBean, key,
value) )

It's not a desired behavior for me because I want the changes  only to
server.xml.  Is it possible to mark a GBean attribute "managable=true" but
not trigger a config.xml rewriting when the attribute is updated ?


-- 
Shawn

Re: Is it possible to mark a GBean attribute "managable=true" but not trigger a config.xml rewriting when the attribute is updated ?

Posted by Shawn Jiang <ge...@gmail.com>.
Forget this, I've found another way to avoid using BasePortlet.setProperty
to update the connector properties.

Thanks.

On Thu, Sep 17, 2009 at 11:36 AM, Shawn Jiang <ge...@gmail.com> wrote:

> I'm working on recovering connector portlet recently because the connector
> configuration was changed to server.xml from config.xml.    To make current
> connector portlet work, I have to create corresponding connectorGBean in
> memory for those connectors defined in server.xml.
>
>
> The problem is
>
> When the attributes of connectorGBean are marked as "managable=true" , the
> changes to the connectorGBean in memory will be written back to config.xml
> automatically. ( by calling
> org.apache.geronimo.console.BasePortlet.setProperty(connectorGBean, key,
> value) )
>
> It's not a desired behavior for me because I want the changes  only to
> server.xml.  Is it possible to mark a GBean attribute "managable=true" but
> not trigger a config.xml rewriting when the attribute is updated ?
>
>
> --
> Shawn
>



-- 
Shawn