How you can convert local applet into remote applet?

Note: There are comments associated with this question. See the discussion page to add to the conversation.