on 06-02-2015 11:23 AM
Dear community,
I would like to retrieve detailed runtime status informations of communication channels running on our SAP Netweaver 7.31SP10 java single stack server!
What I have already considered:
public class StatusCallback implements ChannelStatusCallback {
things...
try {
CPAFactory cf = CPAFactory.getInstance();
this.lookupManager = cf.getLookupManager();
} catch (Exception e) {
things...
}
AdapterRegistry adapterReg = null;
AdapterRegistryFactory adapterRegFac = AdapterRegistryFactory.getInstance();
adapterReg = adapterRegFac.getAdapterRegistry();
adapterReg.registerAdapter(this.currentAdapterNameSpace,
this.currentAdapterName,
new AdapterCapability[] { AdapterCapability.PUSH_PROCESS_STATUS },
new AdapterCallback[] { this });
synchronized (this) {
this.inboundChannels = new LinkedList<Channel>();
this.outboundChannels = new LinkedList<Channel>();
try {
List<Channel> allChannels = this.lookupManager.getAllCPAObjects(CPAObjectType.CHANNEL);
//Here comes my question:
//the following lines create a new ChannelStaus BUT how can i retrieve the status of a specific channel without callbacks or anything
ChannelStatusFactory chStatFac = ChannelStatusFactory.getInstance();
chStatFac.createChannelStatus(allChannels.get(i),ChannelState.OK, "State test!");
}catch{
things...
}
}
<unregister adapter>
}
My question can be found in the source code. I want to retrieve the current runtime status without any callbacks just by calling a method! Is this possible, if yes can you provide me some pseudocode or a brief explanation!I would appreciate any help! The developed tool is only missing out this part!
Thank you in advance!
Sincerely,
Dennis
Dennis,
Please use below web-service
http://server:50200/ChannelAdminService/ChannelAdmin?wsdl&mode=ws_policy
1. Create a project in SOAPUI and play around with this web-service.
2. To programmatically retrieve status, write a web-service consumer program in your favorite language (Java, Python, Go...). It is similar to .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello!
Thank you very much for your help!
It lead me to the correct solution.
Sincerely,
Dennis
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
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.