on 05-30-2007 6:52 AM
Hi All,
We want to make sure that the JCos are up and running, so we want to create a webdynpro application that can test each JCo and return a success or failure flag. Is there any way to pick up all the JCo's and the application dynamically test each JCo.
Hi Niranjan Reddy ,
Use the following code.
WDJCOClientConnectionStatus.getStatus(String name);
name = name of the JCO client connection.
This will return u the status of the JCO client.
Hope this suffice your requirement.
Regards
Amit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Niranjan,
Just go thru these links
<a href="http://help.sap.com/saphelp_nw04/helpdata/en/77/931440a1c32402e10000000a1550b0/content.htm">http://help.sap.com/saphelp_nw04/helpdata/en/77/931440a1c32402e10000000a1550b0/content.htm</a>
<a href="/people/anilkumar.vippagunta2/blog/2007/02/06/dynamic-jco-creation JCo</a>
U can go thru creating JCo ,u will get all the info.In case of any clarification,u can ask me.
regards
Sumit
Message was edited by:
Sumit Malhotra
Hi Sumit,
try {
String[] connectionNames = WDSystemLandscape.getJCOClientConnectionNames(WDSystemLandscape
.getCurrentJ2EEClusterName());
for (int i = 0; i < connectionNames.length; i++) {
String connectionName = connectionNames<i>;
wdComponentAPI.getMessageManager().reportSuccess("JCO DESTINATION NAME="+connectionName);
String connStaus = WDJCOClientConnectionStatus.getStatus(connectionName).toString();
wdComponentAPI.getMessageManager().reportSuccess("STATUS" +connStatus);
I am getting only sucessfull(GREEN) connections, <b>but i also want to fetch failed(RED) connections</b> and, while retriving the status of connections i am getting error
"com.sap.tc.webdynpro.services.exceptions.WDIllegalArgumentException: Invalid value string WD_RFC_METADATA_CFM to get JCO client connection "
null
Hi Sumit,
When i check my output, i have seen failed(RED Status) jco connection are not in list, but i can able to display sucess(GREEN) or (YELLOW) colored jco status .
NOTE: When i look into JCo monitoring of content administrator, CREATE button is disabale while JCo status was GREEN,YELLOW . But CREATE button is enable when JCo status is RED .
Now my problem is how can pick RED colored jco destinations?
Hi Niranjan Reddy,
Writing the following code you can get the status of the JCO client connection.
WDJCOClientConnectionStatus.getStatus(String name);
name = the name of the JCO client connection.
This will return you the status.
Regards
Amit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hI,
Why do u need the JCo info in webdynpro View?
AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Niranjan,
Steps to see the available JCo s and their status.
Step 1: Logon to the server: http://hostname:post/index.html
Step2 : Choose Web Dynpro
Step3 : Choose Content Administrator
Step4 : Select Maintain JCo Destinations button.
Or use the URL : http://hostname:port/webdynpro/dispatcher/sap.com/tcwdtools/Explorer
and then select Maintain JCo Destinations button.
Regards,
Mithu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
if you go to http://server:port/webdynpro/dispatcher/sap.com/tcwdtools/Explorer
you can check the Jco connections
AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Niranjan,
You can achieve the same by using j2EE content Administrator.
http://server:port/webdynpro/welcome/Welcome.jsp
regards
Amit
Message was edited by:
Amit Kesari
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 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.