Problem w MBean

"Mateusz Szczap" <[email protected]>
Newsgroups gmane.comp.jakarta.avalon.apps.devel,gmane.comp.jakarta.avalon.devel
Message-ID <000d01c2ad2e$e0a250f0$6f01a8c0@mati>
I have a one question. Lets imagine we have an WebServer which is a Avalon
Service managed by Phoenix.

We export

public interface WebMBean{
    void setPort(int port);
    int getPort();
}

Of course our compoenent implements this bean

Of the other hand we have configuration in which we store the port of the
server.

Now Server starts. Default port is read from config. We manager server and
invoke it's setPort().

The port changes. But after we shutdown phoenix. We cannot make this change
persistent because

Configuration object is not writeable.

How could I workaround this.

Mateusz Szczap
[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.