| By Rahul Jain | Article Rating: |
|
| July 30, 2006 02:00 PM EDT | Reads: |
7,629 |
In this paper we'll be discussing the migration of existing EAServer applications to EAServer 6. Because of architecture changes in EAServer, an explicit migration is needed; whereas with previous versions you could simply upgrade an existing installation or install and sync the entities.
EAServer 6 comes with a migration utility to help in migrating existing EAS 5.x entities (components, connection caches, etc.).
Migration Utility
To start the utility, go to %DJC_HOME%\bin directory and double-click on migrate.bat.
%DJC_HOME% = EAS 6 installation directory
When the migration utility starts (Figure 1), you'll see the message "Ready for Migration" in the message pane. The migration utility will be able to scan your EAServer 5.x repository and locate all entities that can be migrated over to EAServer 6.
We'll be doing the following tasks for migration:
- Connecting to the EAServer 5.x and EAServer 6
- Scanning the EAServer 5.x repository for the entities to migrate
- Selecting the entities to migrate
- Kicking off the migration
- Checking for errors
From the migration utility, click on the File | Connect menu. Provide the EAServer 5.x and EAServer 6 connection information in the window and click connect (see Figure 2).
Note
For EAServer 6, the user name by default is admin@system and the password is the password you supplied during installation.
If you need to reset the password, you can use the set-admin-password.bat batch file provided in the %DJC_HOME%\bin directory.
Once connected you'll see something like the messages below in the message pane:
Connecting to server: RahulLaptop:2000
Connected to server: localhost:9000
Connected to server: RahulLaptop:2000
Scanning the EAServer 5.x Repository
After you've established the connection, click on the File | Scan EAServer 5.x Repository menu to start scanning. If this menu option isn't enabled, that means that you're not connected to the EAServer 5.x server. When the scanning starts, a dialog opens up and shows the progress messages while the scanning is underway (Figure 3).
Once the scanning is complete, you'd see the following messages in the dialog:
Scan completed successfully.
...
Please close the dialog.
At this point you can open the migrate.log file to see if all the entities were scanned and found for migration. If you don't see some entities in the list it's possible these entities aren't supported and that message will show up in the migrate.log. You can find migrate.log in the %DJC_HOME%\logs\ directory.
Select the Entities To Migrate
Or rather we need to unselect the entities not to migrate. By default all the entities are selected. Click on the entity type in the tree view on the left side to see the available entities to migrate (Figure 4).
Select all the entities you want to migrate by selecting one entity type at a time.
Note
You'll find your PB components in the Package(CORBA) entity type. If your components depend on Java JAR, you'll find them under the Java Archive treeview item.
Once you've selected all the entities you want to migrate, you can kick off the migration by clicking on the File | Migrate menu. On the confirmation window, a list of all the selected entities is presented (Figure 5). Check the list and click Confirm to start the migration.
The migration process can take up quite some time depending on the number of entities you've selected. When you kick off the migration, the message dialog opens up to display the migration status (Figure 6).
If there are any errors, open up the migrate.log to see any detailed messages. For packages and Web applications, look for two kinds of messages:
[MigrateTool] Migration Summary - Entity exported
And
[MigrateTool] Migration Summary - Deployed entities
For a successful migration, a package should be successfully exported and deployed both.
Note
If your CORBA component depends on a Java class and you get a class not found exception, it's possible the package was migrated before the Java Archive. Re-migrating the CORBA component/package will solve the issue.
Conclusion
With the migration tool provided with EAServer 6 it will be much easier for developers to migrate existing applications. However, I would encourage developers to take the time to look more deeply into the new EAServer architecture and how PowerBuilder now fits into the architecture.
EAServer 6.0 is backward-compatible and there's no code change required when you migrate, but there are also new ways of doing things. For example, calling a PowerBuilder component from JSP, because PowerBuilder components are now treated as EJBs.
Published July 30, 2006 Reads 7,629
Copyright © 2006 SYS-CON Media, Inc. — All Rights Reserved.
Syndicated stories and blog feeds, all rights reserved by the author.
More Stories By Rahul Jain
Rahul Jain has rich experience in developing enterprise Web and client/server applications using PowerBuilder and EAServer. He works as a principal consultant with Keane, Inc., in Washington, DC.
- Why SOA Needs Cloud Computing - Part 1
- Cloud Expo and The End of Tech Recession
- The Transition to Cloud Computing: What Does It Mean For You?
- A Rules Engine Built in PowerBuilder
- Sybase Named “Silver Sponsor” of iPhone Developer Summit
- How PowerBuilder Got Its Groove Back
- The Cloud Has Cross-Border Ambitions
- Ulitzer Names The World's 30 Most Influential Virtualization Bloggers
- Ulitzer Named "New Media" Partner of Greatly Anticipated iStrategy Event in Berlin
- Risks and Enterprise Mobility?
- Steps for Success in Enterprise Mobility?
- Are Mobile Luddites Resisting Mobility?
- The Difference Between Web Hosting and Cloud Computing
- Sybase CTO to Speak at 4th International Cloud Computing Expo
- Why SOA Needs Cloud Computing - Part 1
- Cloud Expo and The End of Tech Recession
- The Transition to Cloud Computing: What Does It Mean For You?
- Five Reasons to Choose a Private Cloud
- Seeding The Cloud: The Future of Data Management
- The Threat Behind the Firewall
- Economy Drives Adoption of Virtual Lab Technology
- Tips for Efficient PaaS Application Design
- A Rules Engine Built in PowerBuilder
- Sybase Named “Silver Sponsor” of iPhone Developer Summit
- Where Are RIA Technologies Headed in 2008?
- PowerBuilder History - How Did It Evolve?
- The Top 250 Players in the Cloud Computing Ecosystem
- Custom Common Dialogs Using SetWindowsHookEx
- DDDW Tips and Tricks
- OLE - Extending the Capabilities of PowerBuilder
- DataWindow.NET How To: Data Entry Form
- Book Excerpt: Sybase Adaptive Server Anywhere
- Sybase ASE 12.5 Performance and Tuning
- Working with SOA & Web Services in PowerBuilder
- Office 2003 Toolbar: A New Look For Your Old PowerBuilder App
- Dynamically Creating DataWindow Objects

































