|
Home > Archive > WebSphere Portal Server > April 2005 > PortletServiceHome location ?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
PortletServiceHome location ?
|
|
|
| Hi Guys,
I am trying to build JSR168 portlets which when runinside the WebSphere Server could be able to communicate together..
Cheers
Can anyone tell me the location of com.ibm.portal.portlet.service.PortletServiceHome class ?
I working with RAD6.0 .. I need to invoke the following code..
public void init(PortletConfig config) throws PortletException {
super.init(config);
try {
Context ctx = new InitialContext();
PortletServiceHome serviceHome = (PortletServiceHome) ctx.lookup("portletservice/com.ibm.portal.propertybroker.service.PropertyBrokerService");
pbService = (PropertyBrokerService)serviceHome.getPortletService(com.ibm.portal.propertybroker.service.PropertyBrokerService.class);
pbServiceAvailable = true;
}catch(Throwable t) {
getPortletContext().log("OrderDetailPortlet could not find property broker service!");
}
}
| |
|
| It seems the IBM WebSphere PortalTM, Version 5.1
API Specification is not supported by RAD 6.0 !
Since the interfaces/classes that I search for are not present in my RAD 6.0. At present I don't have the motivation to do a trail by installing WSAD 5.1 on my machine.
In case anyone of u do have it(5.1) already installed....please let me know if this interface (PortletServiceHome)is visible to you and was I correct 
Cheers
| |
|
| You must be doing something wrong.
When I wrote a JSR168 portlet that uses portlet service,
PortletServiceHome is marked as an error, but when I click some red
icon at the beginning of the line, RAD6 automatically added required
import for me and it compiled OK.
Is it possible you have WebSphere Portal 5.0 as the target server?
I think Portletservice is available for JSR168 portlets only when you
are writing for WP5.1.
In RAD6, the default target server is WP5.0 and you need to change it
to WP5.1 by yourself. Now I have my RAD updated to 6.0.0.1 and
default is changed to 5.1.
url
|
|
|
|
|