on 2005 Jul 19 6:42 PM
Hi,
Do you know some admin application in portal which show all services that are running
I created a simple portal service and when I try to get it with this code:
public void doContent(IPortalComponentRequest request, IPortalComponentResponse response)
{
try {
response.write("!!!BEGIN OF TEST<br/>");
String srvID = IPCDProvider.KEY;
IPCDProvider service = (IPCDProvider)
PortalRuntime.getRuntimeResources().getService(srvID);
response.write("<p>Name = " + service.getKey());
} catch (Exception e) {
// TODO: handle exception
response.write("END WITH ERROR!!!<br/><br/>");
response.write("ERROR:::" + e);
}
I receive error : ERROR:::com.sapportals.portal.prt.service.ServiceException: Service not found: pcd.PCDProvider
I want to check that my service is deployed and running
Hi Rosen,
Apparently there is no way to see all services at once, but I assume you know the application in which your service was deployed.
You can use the application console to check the application and what services were deployed and if they are started.
System Administration --> Support --> Portal Runtime --> Application Console
Daniel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes I saw (under System Admin -> Support -> Portal Runtime -> Application Console) that my service is started
But I receive error when I try getService method
String srvID = "tc.lm.ctc.cpa.pcd_sda";
IPCDProvider service = (IPCDProvider)
PortalRuntime.getRuntimeResources().getService(srvID);
This is portalapp.xml of my testing application
<?xml version="1.0" encoding="utf-8"?>
<application alias="ShowPCDConfigData">
<application-config>
<property name="PrivateSharingReference" value="com.sap.portal.pcd.glservice,tc.lm.ctc.cpa.pcd_sda"/>
</application-config>
<components>
<component name="Test">
<component-config>
<property name="ClassName" value="com.sap.tc.lm.ctc.cpa.pcd.test.Test"/>
</component-config>
<component-profile/>
</component>
</components>
<services/>
</application>
This is a portalapp.xml of my portal application that expose servise (that I am tring to get)
<?xml version="1.0" encoding="utf-8"?>
<application alias="PCDProviderService">
<application-config>
<property name="PrivateSharingReference" value="com.sap.portal.pcd.glservice"/>
</application-config>
<components/>
<services>
<service name="PCDProvider">
<service-config>
<property name="className" value="com.sap.lm.ctc.cpa.pcd.service.PCDProvider"/>
<property name="startup" value="true"/>
</service-config>
</service>
</services>
</application>
Could you help me, please
User | Count |
---|---|
63 | |
10 | |
7 | |
7 | |
6 | |
6 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.