See Upgrading from Messaging Server 5.2 to Sun Java System Messaging Server and Sun Java Communications Suite 5 Upgrade Guide.