on 01-19-2010 12:16 PM
Hi Gems,
In my adapter module , i have a bean class and an other class extends AbstractTransformation with transform method.
public void transform(TransformationInput in, TransformationOutput out) throws StreamTransformationException {
strReceiverInterface = (String) in.getInputHeader().getReceiverInterface();
strSenderInterface = (String) in.getInputHeader().getSenderInterface();
inTime = in.getInputHeader().getTimeSent();
// ...
}
From my Bean class i created an Object and fetched the interface name.. .. but at runtime interface name comes null.
Can any one tried this ever?? Please let me know ASAP..
Thanks
Prabhakar
Hi,
If your requirement is just to get the sender and receiver interface names, then it would be very simple if you take them as parameters from module context in your bean class. And then,you can give the corresponding interface names in the module tab of your configuration.
Correct me, if my understanding is wrong.
Regards,
Swetha.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That is not necessary and limits you to one interface per channel, instead use get the Action from the message and use the getType() and getName() methods in the Action to get the interface namespace and name.
Message msg;
Object obj = moduleData.GetPrincipalData();
msg = (Message) obj;
Action act = msg.getAction();
String interfaceNamespace = act.getType();
String interfaceName = act.getName():
Hope this helps
Ricardo
is this being used in your Sender side adapter?
I guess those values will be populated only in the receiver side.
Do check !!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
U may also try to use StreamTransformationConstants
Please check:
http://help.sap.com/javadocs/pi/SP3/xpi/index.html
Thanks!!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
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.