PortletServiceHome location ?
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > WebSphere > WebSphere Portal Server > PortletServiceHome location ?




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    PortletServiceHome location ?  


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-15-05 12:49 PM

Hi Guys,
I am trying to build JSR168 portlets which when runinside the WebSphere Serv
er could be able to communicate together..

Cheers
Can anyone tell me the location of com.ibm.portal.portlet.service.PortletSer
viceHome 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("portletser
vice/com.ibm.portal.propertybroker.service.PropertyBrokerService");
pbService = (PropertyBrokerService)serviceHome.getPortletService(com.ibm.por
tal.propertybroker.service.PropertyBrokerService.class);
pbServiceAvailable = true;
}catch(Throwable t) {
getPortletContext().log("OrderDetailPortlet could not find property broker s
ervice!");
}
}





[ Post a follow-up to this message ]



    Re: PortletServiceHome location ?  


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-15-05 12:49 PM

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





[ Post a follow-up to this message ]



    Re: PortletServiceHome location ?  
url


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-15-05 12:49 PM

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





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 05:42 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register