Monday, March 16, 2009

MERGING WORKSPACES FOR ADAPTERS – WPS

AIM:- We often come across a scenario during JCA JDBC adapter development where we create one adapter and all the associated components and then suddenly some new requirement pops up where we are supposed to add some more operations in our Inbound adapter, in lay man terms, the requirement is to add some more tables to the inbound adapter.

Process:-

To actualize the above mentioned scenario, we create one module with an Inbound adapter linked to one table. Now say for instance another requirement comes where in we need to add 1 more table to the inbound adapter. Now, we have 2 approaches that can be followed, either scrap the existing module and create a fresh one or create a new module with an adapter linked to new table and then merge both old and new modules so that the existing adapter can support both tables. In this document I will take you through the second approach.

What To Do?

Create 2 modules, both with 1 inbound adapter each and an operation based on the corresponding table name. Then as per new requirement we need to merge both modules in such a way that the previous adapter itself would support both operations without re-running the external service wizard.

 In short say for instance we have already created one inbound adapter with 20 tables. Now if 2 more tables need to be added then we won't have to recreate the already created adapter and instead can be merged in the following way:-

 







These are the bare minimum tried and tested steps. If we are dealing with Outbound adapters then the steps may be modified accordingly.

NOTE:-

Apart from these we may have to carry out some more changes based on the complexity of the modules to be merged. These can be handled by respective owners at development/ deployment time.