Wednesday, December 22, 2010
Demo - WebSphere Portal 7.0 FARM
Thursday, November 25, 2010
IBM WebSphere Portal Performance Troubleshooting Guide
Hope this will play a major role for many, To troubleshoot their portal performance issues.
Wednesday, October 06, 2010
WebSphere Portal 7 Performance Tips: Changing the Heap Size & Verbose Garbage Collection
Wednesday, September 15, 2010
WPCollector Tool ( Good alternate for ISA Lite
Its one of the coolest feature IBM WebSphere Portal 7.0 provides than its older version.
Check here for more information about, how you can use WPCollector Tool.
Tuesday, August 24, 2010
Monday, August 23, 2010
DOJO and WebSphere Portal
You can find the information about how to upgrade/downgrade portal themes from Dojo 1.1.1 to 1.3.2 & vice versa in the following url
Dojo and WebSphere Portal
Using and migrating Dojo versions with WebSphere Portal themes
Sunday, August 22, 2010
What's new in WebSphere Portal 7
Monday, August 02, 2010
Portlet Modes (WebSphere Portal 6.0 Onwards)
View Mode - Default portlet mode, It will be used to display all end user functionalities.
Edit Mode (Personalize) - This is user specific personalize mode. What ever changes are made and stored into portlet preference, that will affect only that specific user.
Edit Defaults Mode (Edit Shared Settings) - This mode will be available only for portal admins. Also, this will be available for users with minimum page level access rights as Editor and Portlet access rights as Administrator. The changes into this preference value will affect all the users.
NOTE: This is only for the portlet occurence in that page.
Config Mode - This is configuration mode. What ever changes are made into this mode will affect all occurence on that portal.
Help Mode - Generally this will be used to give more details about that portlet functionality and its use.
Tuesday, July 06, 2010
Reading LTPA Cookie from Portlet & Servlet and passing the LTPA cookie into remote WebSphere Server using REST call.
######### Reading from Servlet Starts #############
String ltpaToken = null;
Cookie[] cookies = httpServletRequest.getCookies();
for (int i = 0; i < cookies.length; i++)
{
if (cookies[i].getName().equals("LtpaToken"))
{
ltpaToken = cookies[i].getValue(); break;
}
}
######### Reading from Servlet Ends #############
########## Reading from Portlet Starts #############
String myCookie = renderRequest.getProperty("cookie");
String ltpaToken = "";
StringTokenizer st = new StringTokenizer (myCookie, "; ");
while(st.hasMoreTokens())
{
String key = st.nextToken();
if(key.indexOf("LtpaToken") > -1)
{
int equalSign = key.indexOf("=");
ltpaToken = key.substring(equalSign+1);
}
}
########## Reading from Portlet Ends#############
### Setting inside URLConnection object & sending to remote portal server ###
// After getting the ltpa token, setting into URL connection to pass the ltpa cookie to the external server url.
if (ltpaToken != null)
{
String cookie = "LtpaToken=" + ltpaToken.toString();
URL url = new URL("http://myportal:port/wps/myportal)
URLConnection conn = url.openConnection();
conn.setRequestProperty("Cookie", cookie);
conn.connect();
}
How to set & get a value from Portlet Preference while developing a portlet using WebSphere Portlet Factory
Create a LJO(Linked Java Object) builder and copy the below code and replace MY_DEPARTMENT value into the value you want to set & get from Portlet Preference.
########################## Sample Code Starts #############################
public class PortletPreferenceWPFSample {
PortletRequest portletRequest = null;
private static final String MY_DEPARTMENT="myDepartment";
private static final String DEFAULT_MY_DEPARTMENT="";
public void setPreferences(WebAppAccess webAppAccess , String myDepartment)
{
try{
// Getting HttpServletRequest from WebAppAcces object.
HttpServletRequest request = webAppAccess.getHttpServletRequest();
// Type casting into Portlet Request.
portletRequest = (PortletRequest) request.getAttribute(com.bowstreet.adapters.Constants.PORTLET_REQUEST);
javax.portlet.PortletPreferences preferences = portletRequest.getPreferences();
//Storing the myDepartment in to portlet preferences Object.
preferences.setValue(MY_DEPARTMENT,myDepartment);
preferences.store();
}catch(Exception err)
{
err.printStackTrace();
}
}
public String getPreferences(WebAppAccess webAppAccess)
{
HttpServletRequest request = webAppAccess.getHttpServletRequest();
portletRequest = (PortletRequest) request.getAttribute(com.bowstreet.adapters.Constants.PORTLET_REQUEST);
javax.portlet.PortletPreferences preferences = portletRequest.getPreferences();
String myDepartment= preferences.getValue(MY_DEPARTMENT,DEFAULT_MY_DEPARTMENT);
return myDepartment;
}
}
##### Function call to above method from remote place such as method or other LJO class #####
// Calling setPreferences method to store folder path into it. Where PortletPreferenceWPFSample_LJO is the LJO builder name for PortletPreferenceWPFSample class.
webAppAccess.callMethod("PortletPreferenceWPFSample_LJO.setPreferences", myDepartment);
########################## Sample Code Ends #############################
Friday, June 18, 2010
Docs for learning WebSphere Portletfactory
Startup Tutorial
WPF e-Book
Other Links:
Best Practices for Creating Portlets with WebSphere PortletFactory
IBM Support Portal - WebSPhere PortletFactory
WebSphere Portlet Factory product documentation
WebSphere Portlet Factory Samples: Data Services
Steps to Increase WebSphere PortletFactory Application's Performance
Click here to see.
Thursday, March 19, 2009
Navigating to other page in Portal from any portlet
1> Keep the wp[1].l2.urlhelper.jar file under WEB-INF/lib folder.
2> Add the following code in your JSP to achieve the same.
String homeURL = PortletURLHelper.generateUrl(PAGE_UNIQUE_NAME, Portlet Name, null, true, renderRequest, renderResponse);
Use the value of homeURL in href attribute.
3> Download the jar from the following location.
http://www-01.ibm.com/support/docview.wss?rs=688&context=SSHRKX&dc=DB520&uid=swg21265900&loc=en_US&cs=UTF-8&lang=en&rss=ct688websphere
Monday, June 04, 2007
New Innovative Business Portal Solutions: IBM Websphere Portal Strategy
Click here to see his webcast event.
Saturday, June 02, 2007
Using RAD V7 to create & deploy JSR 168 cooperative Portlets
Click Here For More Info
Wednesday, September 20, 2006
Edit_Defaults Mode in Websphere Portal 6.0.
At first let us see what is edit defaults mode ?
- Edit Defaults mode is one of the portlet mode available in JSR 168(Portlet API) .
- This mode is created to share some default preference values to all the users. (i.e., If admin set some preference values by using this edit defaults mode then this values will be a default preference values for all other users.)
- Any time admin can change others preference values by using this shared settings option.(i.e., if any body selected some theme if admin changes the theme by using this edit defaults mode then automatically it will reflect for all other users.)
- This mode will be applicable only for portal admin not for all users.
- You need make the following entry in portlet.xml
<portlet>...<supports><mime-type>text/html</mime-type><portlet-mode>edit</portlet-mode><portlet-mode>edit_defaults</portlet-mode></supports>...</portlet>
<custom-portlet-mode><description xml:lang="en">edit_defaults mode</description><portlet-mode>edit_defaults</portlet-mode></custom-portlet-mode>
</portlet-app>
You need to override doDispatch() of Generic Portlet. Sample code
// Added for Edit_Default_Mode
private static final PortletMode EDIT_DEFAULT_MODE = new PortletMode("edit_defaults");
protected void doDispatch(RenderRequest request, RenderResponse response) throws PortletException, IOException {if( !WindowState.MINIMIZED.equals(request.getWindowState()) ){
PortletMode mode = request.getPortletMode();
if( EDIT_DEFAULT_MODE.equals(mode) ) {
// System.out.println("Inside edit default mode condition : Bala S Murugan ::: ); doCustomConfigure(request, response);return;}}super.doDispatch(request, response);
}
Well once you create your portlet with edit_defaults mode then after deploying in websphere portal 6.0.If you login as a portal admin then you will see a new link "EDIT SHARED SETTINGS" in your portlet title bar.Where This "EDIT SHARED SETTINGS" is nothing but Edit_Defaults in Websphere 6.0.