Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8604

Re: Is it possible to get the sender side interface name using custom adapter module

$
0
0

Hai Team,

Thanks for your support i have solved the problem by using the module context as the condition i have used the custom module on both the communication channels  and appended the generated file

using that condition

 

String Sender = (String) moduleContext.getContextData("sender");

    if(Sender!=null)

    {

    Action act = msg.getAction();

        String interface_Name = act.getName();

        FileWriter fw = new FileWriter("*****");

     fw.write("outbound_interface_name:-->"+interface_Name+"\n");

     fw.close();

   

    }

    else{

    Action act = msg.getAction();

    String interface_Name = act.getName();

    FileWriter fw = new FileWriter("****",true);

   fw.write("inbound_Interface Name:-->"+interface_Name+"\n"+"Message ID:-->"+MSGID+"\n"+"Message Direction:-->"+MSGDIR+"\n"+"Message Key:-->"+MSG_KEY+"\n"+"Business system sender:-->"+BS_sender+"\n"+"Business system receiver:-->"+BS_Receiver+"\n"+"SendTime:-->"+SendtTime+"\n"+"Receive time:-->"+RecivedTime);

   fw.close();

    }

 

Regards,

Avinash.


Viewing all articles
Browse latest Browse all 8604

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>