Service components are migrated automatically.
If you only want to migrate a component (and do not want to install it as a service component in EAServer 6.0), remove the component from the service components in EAServer 5.x before migrating.
To manually migrate service components from EAServer 5.x to EAServer 6.0:
To mark something as a service in 6.0, create an instance of a com.sybase.djc.server.ServiceComponent and add it to the application service property serviceComponents.
Migrate the component. For example, “TestService/SimpleService” from 5.x to 6.0.
The migrated component is an EJB wrapper with a package named ejb.components.testservice
.
Start the server. Check the log file to verify the service has started, as this sample illustrates:
Server Log File: M:\target1.4\logs\HOST-W2K.log
HTTP Listeners: http://HOST-W2K:8000,https://HOST-W2K:8001 IIOP Listeners: iiop://HOST-W2K:2000 Starting services... DEBUG: In SimpleService.start Accepting Connections: iiop://HOST-W2K:2000 Accepting Connections: http://HOST-W2K:8000 Accepting Connections: https://HOST-W2K:8001 Server Started DEBUG: In SimpleService.run The Management Console can be accessed at http://HOST-W2K:8000/console