on 03-20-2006 2:19 PM
Hello,
i am developing a generic sync application.
I have registered a method for inbound+outbound.
It works well.Now i have a second method in the same application. I made the mapping in BWAFMAPP,but when i try to create a outbound container for the method,i get the exeption method is not registerd.
Coding: outfactory.createOutboundContainer(VisibilityType.USER_SHARED,2_METHOD,outboundContainer.TYPE_REQUEST);
I think i have to do something in doInitialize() for the second container ,but i don't know exactly what.
Can anyone help me?
Regards
Hi, you need to register an inbound processor for every method name , not per application. Do you have an InboundProcessor registered for 2_METHOD ? Cheers, Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
go create a new class like this one:
import com.sap.ip.me.api.sync.InboundContainer;
import com.sap.ip.me.api.sync.InboundProcessor;
public class MyProc implements InboundProcessor {
public String getMethodName() {
return "R3_2_METHOD";
}
public void process(InboundContainer inboundContainer) {
System.out.println("Container for " + getMethodName() + " came in...");
}
}
then, register it at the Registry like this:
InboundProcessor i = new MyProc();
InboundProcessorRegistry.getInstance().register(i);
Cheers, Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
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.