In this Blog post, we are going to cover how to Migrate Java Applications to the Cloud with AppToCloud.
Now after the introduction of the AppToCloud Tooling in Oracle Java Cloud Service you can now simply and easily migrate a configured on-premise domain to an equivalent Java Cloud Service instance in the Oracle Cloud, complete with the same set of configured settings, resources and deployed applications.
What is AppToCloud?
AppToCloud enables to migrate Java applications and their WebLogic Server resources to the Oracle Java Cloud Service. The migration tasks fall into two main categories, On-Premises and Cloud:
- The on-premises tasks involve generating an archive of the existing WebLogic Server environment and applications and importing it into the Oracle Cloud.
- The cloud tasks involve creating an Oracle Java Cloud Service service instance and automatically provisioning it with the same resources and applications as the on-premises environment.
AppToCloud landscape is the on-premise tooling which is responsible for inspecting a domain to check it’s suitability for moving to the Oracle Cloud and then creating an export file containing a model of the domain topology (cluster with managed servers), local settings such as CLASSPATH entries and VM arguments, the set of configured WebLogic Server services such as data sources and deployments units such as Java EE applications and shared libraries.
Download and Install Tooling
AppToCloud on-premise tooling is used to inspect and export a domain. The tooling needs to be downloaded from Oracle and installed on the server where the source domain is located.
To download the AppToCloud a2c-zip-installer.zip file from the Oracle Cloud Downloads Click Here
Step 1: Run a health check on the source domain
- The first step to performing an AppToCloud migration is to perform a health check of the on-premise domain using the a2c-healthcheck utility.
- The health check is run as an online operation.
- This requires that the AdminServer of the specified domain must be running and the appropriate connection details must be supplied as parameters to the health check utility.
Command to run a healthcheck on source domain
- $ ./oracle_jcs_app2cloud/bin/a2c-healthcheck.sh -oh /AppToCloudDemo/wls_1213 -adminUrl t3://localhost:7001 -adminUser weblogic -outputDir /tmp/demo_domain_export
Note: It is mandatory to perform a healtcheck on the on-premise domain before an export operation can be performed. The export operation requires the output from the healthcheck to perform its tasks.
Step 2: Export the source domain
Once a successful health check has been performed on the on-premise domain, it is then ready to be exported into a form that can be uploaded to Oracle Cloud and used in the provisioning process for new Oracle Java Cloud Service instances.
Command to Export the source domain
- $ ./oracle_jcs_app2cloud/bin/a2c-export.sh -oh /AppToCloudDemo/wls_1213 -domainDir /AppToCloudDemo/wls_1213/user_projects/domains/demo_domain -archiveFile /tmp/demo_domain_export/demo_domain.zip
Uploading to the Oracle Cloud
When the JCS provisioning process for an AppToCloud migration commences, it will load the on-premise domain export and overrides file from an Oracle Storage Cloud Service container. The a2c-export tool can automatically upload the generated archive and overrides file to the Oracle Storage Cloud Service as part of the export by specifying additional parameters that identify the cloud storage container to use.
Command to use:
- ./oracle_jcs_app2cloud/bin/a2c-export.sh -oh /AppToCloudDemo/wls_1213 -domainDir /AppToCloudDemo/wls_1213/user_projects/domains/demo_domain -archiveFile /tmp/demo_domain_export/demo_domain.zip -cloudStorageContainer “Storage-StorageEval01admin” -cloudStorageUser “StorageEval01admin.Storageadmin”
If you chose not to use the a2c-export tool to upload the upload the archive and overrides files to the Oracle Storage Cloud Service then you will need to perform the upload using its REST API.
That’s all for today!
This post is from our Oracle Java Cloud Service – Weblogic on Cloud, in which we cover AdminTool, JCS Instance, Configure & Deployment, Monitoring, Security, AppToCloud and much more.
Related Post
- Oracle Weblogic on Cloud Training (JCS): Step by Step Hands-On Lab Exercise Click Here
- Oracle Java Cloud Service – Weblogic on Cloud Click Here
- JCS Overview and Create Quick JCS Instance: Weblogic on Cloud Click Here
- JAVA Cloud ServiceOfferings: JCS VS JCS – Virtual Image Instance Click Here
- Provisioning Oracle SOA Suite on Oracle Java Cloud Service High-level Steps Click Here
References
- Migrating Applications to Oracle Java Cloud Service Click here
- Migrating a Java EE Application to Oracle Java Cloud Service Click here
- Using AppToCloud to Migrate an On-Premise Domain to the Oracle Cloud Click Here
Next Task For You
Click on the image below to download your FREE Guide, 5 Java Cloud Serice Docs, Every Oracle DBA, Cloud DBA or Weblogic Administrator Must Read, & Learn More.
Leave a Reply