I'm trying implement custom adapter module to send response for REST sender channel.
Using the blog https://blogs.sap.com/2016/10/16/send-sync-response-immediately-syncasync-bridge/
It appears that API's have changed in PI 7.5 version.
Channel channel = LookupManager.getInstance().getCPAObject(CPAObjectType.CHANNEL, moduleContext.getChannelID()); Message reqMsg = (Message) moduleData.getPrincipalData(); reqMsg.setDeliverySemantics(DeliverySemantics.ExactlyOnce); if ((this.txmanager != null) && (this.txmanager.getStatus() == 6)) { Transaction tx = (Transaction) moduleData.getSupplementalData("transaction"); if (tx != null) { this.txmanager.resume(tx); } } retrieveConnection(moduleContext, channel).send(reqMsg); Message respMsg = this.afMessageFactory.createMessage(reqMsg.getToParty(), reqMsg.getFromParty(), reqMsg .getToService(), reqMsg.getFromService(), reqMsg.getAction());
How can i obtain Channel object using 7.5 jars and send response to the REST
Request clarification before answering.
| User | Count |
|---|---|
| 10 | |
| 5 | |
| 5 | |
| 5 | |
| 3 | |
| 3 | |
| 2 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.