Wednesday, March 26, 2008

Running a JSR168 Portlet on Vignette 7.2

Vignette is a portlet container.It is installed as a web application on the application server.
It manages the life cycle of the portlets.
There are two ways by which portlets can be created on Vignette
1. Using native Vignette code (using PortalBeans, which are classes shipped with the Vignette)
2. Creating a standard jsr168 portlet and deploying it on Vignette.

Creating a JSR 168 portlet and running it on Vignette 7.2 Portlet container.

1) Standard JSR168 portlet is deployed as a war file.
2) Open eclipse create a dynamic web project.
3) Create Portlet e.g SamplePortlet by extending GenericPortlet class.
4) Configure the portlet in portlet.xml file.
5) Bundle the classes,portlet.xml,web.xml and jsps in a war file.
6) Now run the Portlet Packaging tool on the war file.
This file will not become compliant with Vignette
7) Deploy the war file from Weblogic (on the same server that hosts the Vignette)
8) After deploying the portlet gets registered with the Portlet container.
Thereby you can see the Portlet in Vignette Console.You can now control the access permission or
apply portlet to pages etc.

0 Comments:

Post a Comment

<< Home