Up!

FAQ

Proxies


        <someone> wrote:
        > 
        > WebFunds won't work on our development machines.
        > 
        > Because we're on a 10.0.0.0 network hidden from
        > the world.
        > 
        > ah. how tough is it going to be to stick a proxy
        > support in there?

There are several answers to this, none are necessarily comprehensive...

System Adminstration Methods

Ask your sysadm to

JVM proxy

This FAQ explains how to set up the proxy within the JVM:

http://www.ibiblio.org/javafaq/javafaq.html#proxy

Let us know if it works. SOX over socks is definately a cool feature to have.

WebFunds proxy

The code is in there to set up the properties, so in the startup run file or doze equivalent add the flags:

    -pb true -ph hostname -pp portnum

(once only, it should store the flags in the properties file, which is located at user/props.dat )

However the properties are currently ignored by the socket code.

Disaster Recovery

One of the attributes of the WebFunds value system is that the assets are the owners are the accounts. That means that if you lose your machine, you lose the value.

To solve this, take backups.

Backups

File/Backup

Click on the File menu option at the top, and then click on Backup. This will pop up an Explorer style dialog, which asks where to store the backup.

Select a directory name somewhere (must exist), for example a different disk or removable media. Then click on Select Dir for Backup and the backup routine will make a copy of your user directory into the selected directory, under a name starting with WF_.

Recovering from a Backup

Click on the File menu option at the top, and then click on Recover Backup. This will guide you through the selection of the location of a backup to recover from.

Once the recovery is complete, it will cause WebFunds to stop, and you will have to restart it.

Alternatively, take a new copy of WebFunds and start it up. Then, it will offer you a choice of recovery or new user. If you then recover from a backup, you can proceed to use that recovered user.

How it works

The above backup routine copies the entire WebFunds directory into a directory that is named like WF_1234567890, all within the directory you selected. The coded name is then recognised by WebFunds when a recovery is done.

The backup will include all the JARs and scripts and anything else in the WebFunds directory. This way, the entire program is also backed up, so that there is no problem with reading the data at a later time.

When the recovery is done, only the user data is recovered, being the data within the user directory. This is possible because it is assumed that you already have a running WebFunds program in order to do the recovery.

You could just as well run the entire program within the backup directory, and in this case, there would be no recovery needed.

Manual Backups

The following steps are suggested for the advanced user only.

If a manual backup is desired, to save space for example, simply take a copy of the contents of the user directory. Recovery can be done by selecting that directory, but WebFunds will check before proceeding, as it will not recognise the parent directory.

Only for the Very Brave

If you require a very small backup, then you might consider copying the account key files. These are named as:

     user/data2/WalletManager/Wallet/Accounts/abc123...

where the Wallet component will be SOX or Trader, and the account name at the end is the hash of the public key.

But, bear in mind that such a procedure is a developer procedure only, and you will require expert help in order to recover afterwards, if it is possible at all. You should practice this before ever relying upon it.