Using the Puma Classes in Websphere Portal
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 > Using the Puma Classes in Websphere Portal




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

genqny is offline     Using the Puma Classes in Websphere Portal  
genqny


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


Click Here to See the Profile for genqny Click here to Send genqny a Private Message Find more posts by genqny Add genqny to your buddy list
 
08-12-05 03:10 AM

All,

I'm rather new to Websphere portal technology so I dont know where to start 
 with this problem i'm having with the Puma classes (PumaHome, PumaLocator, 
PumaController etc). 

My portal version is 5.1.0.1 and the O.S is AIX


I'm trying to get the user and group information from the embedded cloudscap
e databse that comes along with the portal. So I thought of using the PUMA S
PI

I followed this example that I got from IBM's site

http://publib.boulder.ibm.com/infoc...ps/wpspuma.html

I took the following snippet from the above URL

PortletServiceHome psh;
        try{
           javax.naming.Context ctx = new javax.naming.InitialContext();
           psh = (PortletServiceHome) 
               ctx.lookup("portletservice/com.ibm.portal.um.portletservice.P
umaHome");
           if (psh != null){
              PumaHome service = (PumaHome) psh.getPortletService(PumaHome.c
lass);
              PumaProfile pp = service.getProfile(request);
              User user = pp.getCurrentUser();
              String user_objid = pp.getIdentifier(user);
           }
        }
          catch (PumaException pe){
            // ... error handling ...
        } catch(javax.naming.NameNotFoundException ex) {
            // ... error handling ...
        } catch(javax.naming.NamingException ex) {
            // ... error handling ...
        }



So according to this example, I built a JSR 168 complaint portlet applicatio
n with the above code and deployed that onto my portal server.

However when I try to execute the portlet, I throws me a 

NameNotFoundException when its trying to do a JNDI lookup.

I tried several different things to get rid of this exception but was not su
ccessful.

One of the methods that i did was to register the PUMAHome in the PortletReg
istryService properties file. It did not work.

I've been trying with this for several days and would greatly appreciate if 
someone points me in the proper direction to approach this problem.

Thanks a lot
sai




[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 02:32 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