on 11-12-2007 2:17 PM
Hi,
Can any body suggest me how to code in UDF particulare Communication Channel is active or not. If it is inactive then I have to thow exception else ok.
Appreciate for your response.
Regards,
Daniel.LA
Daniel,
Check this..
String BSys = "BS_FSCM_AR_CLNT100";
/1. Determine a channel (Business system, Communication channel).
Channel channel = LookupService.getChannel (BSys,"CC_RFC_TEST");
Then you do a
//2. Get a RFC accessor for a channel.
accessor = LookupService.getRfcAccessor(channel);
add this code
try{
if(accessor == null;
}catch(Exception e){
throw new Exception("Communication channel for System " + BSys + "Inactive ");
}
That should fix it....:-)
Hope that helps
Regards
Ravi Raman
Channel.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Above logic would work for adapter supporting Lookup's ( JDBC , SOAP and RFC ) . You will not be able to grab the status of the XI adapter inside a UDF.
Regards
Bhavesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
If I have understood your ques properly, then I think it is not possible. Since your UDF starts working when processing reaches to message mapping after Receiver Determination, Interface Determination, Interface mapping, and then message mapping. So if the CC will be inactive then your UDF will not work.
Please correct me if i have not understood the requirement properly.
Regards,
Sarvesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sarvesh,
Thanks for your reply. In Configuration I am created receiver communication channel this of XI Adpater receiver (Inbond Proxy). In message mapping itself I need to test whether the particular system which is pointed by Communication change is Up or down. If it is down then I need to throw exception in message mapping itself instead of message hitting the target system. Suggest me on this.
Regards,
Daniel.LA
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.