Migrating a Java Service

A Java service calls other services through generated proxy code. For this reason, Java services have additional upgrade tasks.

WorkSpace separates the proxy implementation: WorkSpace first creates a new project named ProxyProject, then the service proxy code is moved to this project location.

  1. Delete any old proxies that exist, as they are automatically created in the ProxyProject project during the upgrade.
  2. Import all Java source code into the src directory you created before performing the upgrade, into the appropriate packages.
  3. If you are upgrading a composite service, you may receive one or more messages that prompt you to overwrite the proxy code. Click Yes to all for each message that appears.
  4. For both composite and standalone Java services, error flags now appear in the project. These errors appear because you need to update the project build path with more current WorkSpace JARs. To resolve these paths, right-click the project and choose Update WorkSpace Build Path Entries.
  5. Rebuild the existing service and deploy it to the current version of Service Container.
  6. Test all service operations using the Service Tester to verify that the upgrade was successful and that the service works as expected. Display this wizard by selecting New > Other > Sybase > Service Test , and follow the instructions as required.

Send your feedback on this help topic to Sybase Technical Publications: pubs@sybase.com

Your comments will be sent to the technical publications staff at Sybase, Inc. For product-related issues or technical support, contact Sybase Technical Support at 1-800-8SYBASE.