Migrating Custom Mediation Tasks
If you created and deployed custom mediation tasks in earlier versions of TIBCO ActiveMatrix, and you want to use them with this version, you must migrate them to TIBCO ActiveMatrix 3.x.
Procedure
- Import your TIBCO ActiveMatrix 2.x model and UI plug-ins into your workspace.
-
The Model plug-in uses import packages. Replace all Required-Bundles with:
com.tibco.amsb.core.mediation.model.report.implcom.tibco.amsb.core.componentTypecom.tibco.amsb.core.mediationbpel.custom.task.persistencecom.tibco.amsb.core.mediationextmodelcom.tibco.amsb.core.mediationextmodel.implcom.tibco.amsb.core.mediation.model.ext.internalcom.tibco.amsb.core.querymodelcom.tibco.amsb.core.task.model.extcom.tibco.amsb.core.task.model.reportcom.tibco.amsb.core.taskdescriptormodelcom.tibco.amsb.task.common.validationcom.tibco.amsb.core.task.validation.constraintsorg.eclipse.core.runtimeorg.eclipse.bpel.modelorg.eclipse.emf.commonorg.eclipse.emf.ecoreorg.eclipse.emf.ecore.xmiorg.eclipse.emf.ecore.implorg.eclipse.emf.validationorg.eclipse.emf.common.utilorg.eclipse.emf.ecore.pluginorg.eclipse.emf.common.notifyorg.eclipse.emf.common.notify.implorg.eclipse.emf.ecore.xmi.implorg.eclipse.wst.wsdl org.eclipse.xsd
- Delete the methods getStaticInputTypeSchemaStream() and getStaticOutputTypeSchemaStream() methods from class <TaskName>MediationTaskReport.java.
-
Delete the class
<TaskName>MediationTaskValidator.java after plugging out the validation code as the 3.x validation is based on EMF model constraints. The CMT developer must migrate the existing validation to EMF model constraints.
Remove its extension entry in plugin.xml by deleting com.tibco.amsb.core.mediation.model.ext.MediationTaskValidationExtension entry.
-
Update the the UI plug-ins.
-
Update the following dependencies from:
com.tibco.amsb.core.mediation.modelcom.tibco.amsb.core.mediation.model.reportcom.tibco.amsb.core.mediation.model.ext
to
com.tibco.amsb.core.mediation.model.eclipsecom.tibco.amsb.core.mediation.model.report.eclipsecom.tibco.amsb.core.mediation.model.ext.eclipse - Add the dependency: com.tibco.xml.mapper.schema.emfapi.
-
Update the following dependencies from:
- Re-compile the plug-ins by doing a clean build.
- Re-create your runtime plug-in, and port your custom code using the Mediation API.
- Re-create the DAA in the SOA project that is created. See Deploying Custom Mediation Tasks.
- Install the custom mediation task. See Writing Custom Mediation Code.
Copyright © Cloud Software Group, Inc. All rights reserved.