on 07-30-2010 10:52 AM
Hi All,
How can I determine with in a adapter module (custom developed) which adapter type the message is currently being processed? I was planning to use the method Message.getProtocol() and according to the documentation this returns
"Returns the protocol of this message (i.e. message format)"
The result of this method is always "XI".
I want to have a generic module for file and soap adapters. With in the module, I want to perform a different set of operations depending on the adapter type.
Any inputs are highly appreciated.
Thanks
Jai
In the sample module is an example for accessing the communication channel and reading values.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Stefan. I am able to get the adapter type now.
I am using
CPAFactory factory = CPAFactory.getInstance();
CPALookupManager lookup = factory.getLookupManager();
String strChannelId = moduleContext.getChannelID();
Channel channel = (Channel) lookup.getCPAObject(CPAObjectType.CHANNEL, strChannelId);
adapterType = channel.getAdapterType();
Regards
Jai
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.