cancel
Showing results for 
Search instead for 
Did you mean: 

JCo Monitoring

Former Member
0 Kudos

Hi All,

We want to make sure that the JCo’s 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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Amit,

Can you please provide me the code for how to get the <b>name of the JCO client connection</b>. And to access SLD from J2EE what connections needs to be main in visual administrator.

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Niranjan,

Instead of using WDJCOClientConnectionStatus.getStatus(connectionName).toString();

try this->

WDSystemLandscape.checkStatus(connectionName);

Regards

Sumit

Former Member
0 Kudos

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?

Answers (5)

Answers (5)

Former Member
0 Kudos

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

Former Member
0 Kudos

hI,

Why do u need the JCo info in webdynpro View?

AM

Former Member
0 Kudos

Hi Anoop,

Person who don't have access to Content administrator could able to know about the jco connections failure or sucess.

former_member751941
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hi,

if you go to http://server:port/webdynpro/dispatcher/sap.com/tcwdtools/Explorer

you can check the Jco connections

AM

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Amit,

I can see all the details in Content administator. But what i need is how to get the jco information in to my webdynpro view. Where excely jco info is getting stored and how to fetch this info into my View.