cancel
Showing results for 
Search instead for 
Did you mean: 

Response custom adapter module for rest

alok_yadav
Explorer
0 Kudos
250

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

Accepted Solutions (0)

Answers (0)