Changing Update Center URL at runtime

"Asterix45" <[email protected]>
Newsgroups gmane.comp.java.netbeans.modules.openide.devel
Message-ID <[email protected]>
Hi all,

I'm trying to add an Update Center module to my application.
My users set in my application some information about their account in an Option Panel and I would like to have this information on update request.

What I'm trying to do is:

1. Users set their account info in the Option Panel
2. The Update Center uses a link to a .php file in the update server with this info as parameters
3. The server provide an xml response according to the parameters it received


To obtain this I need to modify the url for the update center every time that my users change their account info.

I found that when an Update center is added to a module the platform write in the layer.xml the position of a bundle.properties file, where the update server url is located.
I was thinking about changing this information but NbBundle don't allow modification of such file so it's not possible.

I've tried to work with the Update Center classes found in some post to perform the silent update of modules but with no results.

Does anyone knows how to perform this task?

Thanks in advance!
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.