Hi All
I have developed a portal service which captures the KM events and call the event handler based on the event type. Service is working fine immediately after deployment. If i try sometime later,the desired funtion is not achieved though the service status is shown as <b>started</b> in portal.
I have registered for the events in afterInit() method as follows:
public void afterInit()
{
try {
//Registering the resource to the KM event
EventHandler handler = new EventHandler();
handler.register();
} catch (Exception e) {
e.printStackTrace();
}
}
I have also specified the property <b>startup</b> as true in the service-config section of portalapp.xml.
portalapp.xml:
=================
<?xml version="1.0" encoding="utf-8"?>
<application>
<application-config>
<property name="PrivateSharingReference" value="com.sap.portal.htmlb,com.sap.km.application"/>
</application-config>
<components/>
<services>
<service name="TestService">
<service-config>
<property name="className" value="com.test.TestService"/>
<property name="startup" value="true"/>
</service-config>
<service-profile>
<property name="MyProperty" value="true"/>
</service-profile>
</service>
</services>
</application>
Any solution to solve this problem?
Thanks in advance.
Regards,
Yoga