Monday, March 7, 2011

IBM WEBSPHERE PORTAL PROGRAMMING/ADMINISTRATION Training – IBM Websphere Portal Version 6.0, 6,1 in INDIA, USA & CANADA

IBM WEBSPHERE/ JSR 168, JSR 286,JSR 301 PORTAL/PORTLET PROGRAMMING/Administration in INDIA, USA & CANADA
(Training will be given online- Voice and Video, For in-class room sessions ** based on availability and Courses & number of students).
Course Fee and Deliverance charges: Every Student who registers before MARCH 31st - 2011 can get the First Three classes for free to evaluate the training session.
(if satisfied you can continue by paying for the rest of the classes to complete the course).
Pls Note: The Free Classes would be every 1st weekend of every month. So do register prior to that

Course Information
Topics :
1.Exploring WebSphere Portal --- FREE TO EVALUATE
2.JSR 168, 286 and 301 Portlet Specifications --- FREE TO EVALUATE
3.What, Why and Hows of Portlet Programming --- FREE TO EVALUATE
4.Creating and Testing Portlets
5.Working with the API Core Objects
6.Leveraging Tag Libraries
7.Processing Portlet Input
8.Customizing Portlet Behavior
9.Tying Portlets Together: Event Processing
10.Building JavaServer Faces Portlets
11.Creating Ajax Portlets
12.Implementing Web 2.0 portlets
13.Implementing Personalization
14.Creating a Portal Brand
15.Web Content Management
16.Support Activities & How to handle Challenges in Production and Post Production environments

Monday, January 10, 2011

Firebug equivalent to IE

Today was working on the fixing up themes for Portal 6.1
wanted to fix the css while integrating the HTML's provided by User experience team
The tools which were used :
firefox:
1)Firebug
IE
1)IEdevelopertoolbar

Portal Error Our asynchronous IO is blocked based on analysis of the thread dumps.

1.  Our asynchronous IO is blocked based on analysis of the thread dumps.  The recommendation is to disable the AIO permanently, using mechanism 1 of the attached link:

        http://www-01.ibm.com/support/docview.wss?rs=180&context=SSEQTP&q1=Disabling%20AIO&uid=swg21366862&loc=en_US&cs=utf-8&lang=en

2.  Set these sizes:

        PermSize:  512 MB
        MaxPermSize:  512 MB
        NewSize:  256 MB
        Min Heap Size:  1796 MB
        Max Heap Size:  1796 MB

3.        We should review the following Portal tuning guide for other settings:

        http://www-01.ibm.com/support/docview.wss?rs=688&context=SSHRKX&context=SS3JLV&context=SS3NNG&context=SSYJ99&context=SSRUWN&context=SS6JVW&q1=Guide&uid=swg27013972&loc=en_US&cs=utf-8&lang=en

Wednesday, December 1, 2010

Friday, June 11, 2010

All time stock market classic books

Superperformance Stocks
-How I Made 2,000,000 in the Stock Market
-How Charts Can Help You in the Stock Market
-Reminiscences of a Stock Operator
-Market Wizards
-The New Market Wizards
-Stock Market Wizards
-How to Trade in Stocks
-Stock Market Blueprints
-The Battle for Investment Survival

Thursday, February 11, 2010

Interview Questions on websphere portal - Series2

 IBM Certified Solution Developer - IBM WebSphere Portal V6.1
http://www-03.ibm.com/certify/certs/01004604.shtml



 
http://www.ibm.com/developerworks/websphere/library/techarticles/0312_hepper/hepper.html

http://www.google.co.in/#hl=en&q=jsr+286+lifecycle&meta=&aq=1&oq=jsr+286+life&fp=1&cad=b

http://www.ibm.com/developerworks/websphere/library/techarticles/0803_hepper/0803_hepper.html

http://www.unicon.net/node/586 

Here are some similarities:

    * Servlets and portlets are web based components that utilize Java for their implementation
    * Portlets are managed by a portlet container similar to a servlet container
    * Both of these components generate content, which can be static or dynamic
    * Both portlets and servlets have a lifecycle that is controlled by the container
    * The client/server model is used for both servlets and portlets
    * The packaging and deployment are essentially the same
    * The manner in which the classes are loaded and the class loaders that perform the work are also the same
    * Lifecycle management is similar
    * The Request and Response semantics are also similar

Here are some differences:

    * Servlets can provide complete web pages, whereas portlets only provide fragments. These fragments are then aggregated to form a complete web page by the portal
    * Portlets aren’t allowed to generated HTML code that contains tags such as base, body, frame, frameset, head, html, or title. The iframe tag can be used with caution.
    * The user cannot access a portlet directly using a URL in the way that a servlet is accessed. Instead, the URL points to the page containing all of the portlets on one page
    * Communication between the web client and the portlets is performed through the portal
    * Portlets can be provided with buttons or controls to manipulate the portlets’ window states or portlet modes
   * Multiple instances of a single portlet can be placed onto the same  page
    * Portlets support persistent configuration and customization
    * Portlets also support user profile information
    * Portlets support two scopes within the session; application scope and portlet scope

There are several things that servlets are allowed to do, but portlets aren’t. These include the following:

    * Portlet aren’t allowed to set the character set encoding of the response
    * Portlet also aren’t allowed to set the HTTP headers on the response
    * Portlet cannot manipulate the URL of the client request to the portal

==========================Developer======================================

JSR 168 implementation on WPS,
life cycle of portlet,
portlet API
Request and Response(Action and Render phases), Advanced url generation,
user attributes(PUMA),
Themes and Skins(various jsp files),
inter portlet communication,
packaging of portlets and deployment tool,
portlet preferences,
portlet service,
portlet session with portlet scope and application scope,still more...depends on your implmentation. hope this helps.

What is Portal:
software architecture where a server-side component is used to aggregate content generated by small subcomponents called portlets.
A portal is a Web application that presents content from multiple sources. Portlets are Web components that generate content fragments (typically pieces of markup such as HTML, XML, or WML). By aggregating the content generated by many portlets, a portal is able to generate a single user interface which integrates many disparate sources.

Portlet Specification is built on top of the
Java Servlet Specification 2.3 and
Java Server Pages version 1.2

The Portlet, PortletConfig, PortletRequest, and PortletResponse interfaces
What is a Portlet? Explain its capabilities.

Portlets are pluggable UI components which are managed, displayed using a web portal.
Markup code fragments are produced by the portlets which are aggregated into a portal page.
A portlet resembles an application that is web based and is hosted in a portal. Email, discussion forums, news, blogs, weather reports are some of the examples of portlets.

Explain Portal architecture.
Explain Portal architecture.

The core implementation of the portal is UI, hosted by a Portal server. The HTTP requests, HTML responses, and returning appropriate portal pages are handled by the Portal UI. Enterprise Web application also can be handled by the Portal Server.

The portal architecture has the following: AISCCAR
Automaton Server, Image Server, Search Server, Collaboration Server, Content Server, Authentication Server, Remote Server,

Automaton Server: This server performs the management of job scheduling and implementation of a portal. It accesses all remote crawlers and profile services retrieved and stored from a remote database.

Image Server: This server hosts images and other web page content used by web services and a portal. With this configuration, large static files are to be sent directly to the browser without portal server impacts.

Search Server: This server indexes and searches all the information, applications, communities, documents, web sites through portal.

Collaboration Server: Web content publication and management for portals and web applications are supported by this server. Its functionality can be accessed by a remote web services through Enterprise Web Development kit.

Content Server: Publication and management of web content for portals and web applications along with form based publishing, branding, templates, content expiration is allowed by this server.

Authentication Server: This server handles the portal authentication for users and remote services can be accessed through EDK.

Remote Servers: Web services written using the EDK are hosted by remote servers. The servers can be in different countries, on different platforms and domains.



What is PortletSession interface?

User identification across many requests and transient information storage about the user is processed by PortletSession interace.
One PortletSession is created per portlet application per client.
The PortletSession interface provides a way to identify a user across more than one request and to store transient information about that user.

The storing of information is defined in two scopes- APPLICATION_SCOPE and PORTLET_SCOPE.

APPLICATION_SCOPE: All the objects in the session are available to all portlets,servlets, JSPs of the same portlet application, by using APPLICATION_SCOPE.

PORTLET_SCOPE: All the objects in the session are available to the portlet during the requests for the same portlet window. The attributes persisted in the PORTLET_SCOPE are not protected from other web components.

What is PortletContext interface?

The portlet view of the portlet container is defined by PortletContext. It allows the availability of resources to the portlet. Using this context, the portlet log can be accessed and URL references to resources can be obtained. There is always only one context per portlet application per JVM.


wp_profile_root/bin
startServer.bat WebSphere_Portal
To verify that the WebSphere Portal

http://portal61.ibmdemo.com:10040/wps/portal

Login to WAS by typing the below url :
ohttp://portal61.ibmdemo.com:10027/ibm/console


WebSphere ApplicationServer:-  stopServer.bat server1 -username admin_userid -passwordadmin_password
WebSphere Portal :- stopServer.bat WebSphere_Portal -username admin_userid -passwordadmin_password


JSR 286 IMprovements
major enhancements of JSR-286 include inter-portlet communication, WSRP 2.0 alignment, support for Ajax, and portlet filters and listeners.




==========================ADMIN======================================

for admin,
xmlaccess,
page creation,
tam configuration,
ldap configuration,
clustering,
troubleshooting, logging and tracing,
theme deployment,
portlet deployment,
database transfers,
perf tuning




Interview Questions on websphere portal - Series1

Interview Questions on websphere portal

1)servlet and portlet difference
2)portlet wiring
3)jsr 286

4)interportlet comm
5)jsr 168 286
6)url mappings
7)portlet code vs servlet
8)themes and skins

9)rad
*10)maven
*11))oblix







Thursday, October 29, 2009

Commands to Start/stop server - on Websphere Portal

typical Installation Path:
/opt/IBM/WebSphere/AppServer/bin

./stopServer.sh WebSphere_Portal -username -password

./startServer.sh WebSphere_Portal -username -password


Command to Start/Stop Node Manager –

./stopNode.sh -username -password

./startNode.sh

commands for sync up nodes

./syncNode.sh –username -password 

com.ibm.wps.command.MissingParameterException: EJPEB0612E: AbstractXmlExtractCommand Missing Parameter.

solution:

Problem: Error occurs when exporting files from various portlets

When you export files from the Manage Pages, Template Library or Policy administrative portlets, you may receive one of the error messages below if using Internet Explorer:
  • Manage Pages portlet: com.ibm.wps.command.MissingParameterException: EJPEB0612E: AbstractXmlExtractCommand Missing Parameter.
  • Template Library portlet: You will get an error message or message in browser information bar
  • Policy portlet: XML document must have a top level element. Error processing resource
Cause: Browser security settings prevented the browser from downloading the file export.
Solution: Perform the following steps:
  1. Open your Internet Explorer browser.
  2. Click Tools > Internet Options.
  3. Click the Security tab.
  4. Click the Custom Level button.
  5. Under the Downloads section, click the Enable radio button under Automatic prompting for file downloads.

Tuesday, October 27, 2009

Portal DoJO

WebSphere Portal 6.1, the instance of the IBM Dojo Toolkit is based on version 1.1.1

Saturday, October 24, 2009

Date: 10/24/2009

Problem: in RAD 7.5
"IWAL0071E No corresponding public render parameter definition"

Resolution: the identifier block is missing the identifier element in the Public-render-parameter section in Portlet.xml
check the portlet.xml for any missing identifier sections.

Friday, October 23, 2009

Problem 10/23/2009

Problem:
class file has wrong version 50.0, should be 49.0 


solution:
downgrade your JDK to 1.5 


Below are a list of some of the version numbers and their corresponding Java runtimes:
Version 50.0 = Java 1.6.x
Version 49.0 = Java 1.5.x
Version 48.0 = Java 1.4.x






Monday, October 19, 2009

Problem - 10/19/09

Problem:
com.sun.faces.application.ApplicationAssociate createAndMaybeStoreManagedBeans Can't instantiate class:


Resolution:
Constructor  in one of the beans.
Try fixing the constructor to sync up with the super()

Friday, October 16, 2009

Wednesday, October 14, 2009

head dump on solaris

heap dump on solaris as follows
Add this configuration change:

-XX:+HeapDumpOnOutOfMemoryError

Reference URL:

http://www-01.ibm.com/support/docview.wss?uid=swg21242314


experiencing issue of out of memory where you run out of permgen space especially
when there is HA Manager DCS events are taking place.
**********Please Note this might be a case by case issue,for exact problem with your case , please contact IBM support by opening a PR using your client account ID***********************

hope this might surely give some insight on the problem
*********************************************************************

CoordinatorCo W HMGR0152W: CPU
Starvation detected. Current thread scheduling delay is 165 seconds.
SystemOut O java.lang.OutOfMemoryError: PermGen space


Apply all the fixpacks available for the Portal server


The following are IBM recommendations:

1# Configure Default Thread Pool size to help DRS traffic. Based on IBM WebSphere Portal 6101
performance tunning guide.
How-To Set: Portal Server->Thread Pools ->DefaultPool=150/150 and disable isGrowable (default=5/20 and isGrowable
is set to true)

2#. Remove the following JVM property based on suggestion from WAS L2 team.

Currently set to true -Dcom.ibm.ws.cache.CacheConfig.propogateInvalidationsNotShared=true
Remove or set it -Dcom.ibm.ws.cache.CacheConfig.propogateInvalidationsNotShared=false


3#. Change the value of the IBM_CS_DATASTACK_MEG custom property to 100MB as suggested by WASCET L2 team.
1. In the administrative console, click Servers > Core groups > Core group settings > core_group_name.
2. Under Additional Properties, click Custom Properties.
3. Change the value specified for the IBM_CS_DATASTACK_MEG custom property.

If the IBM_CS_DATASTACK_MEG property already exists, click on the property name and, in the Value field, specify the maximum amount of
memory that you want to let the core group transport allocate for buffering incoming messages.If this property does not already exist, click New
and then:
a. In the Name field, specify IBM_CS_DATASTACK_MEG.
b. In the Value field, specify the maximum amount of memory you want to let the core group transport allocate for buffering incoming messages.
4. Click OK, and then click Save to save your changes.

4#. Change the size of the Transport Buffer. The maximum amount of heap memory that is specified for the
IBM_CS_DATASTACK_MEG custom property should be less than or equal to the size of the transport buffer.
a. In the administrative console, click Servers > Application servers > server_name, and then, under Additional Properties, click Core
group service.
b. In the Transport buffer size field, specify, in megabytes the size of the transport buffer. Set this to 200MB. Based on IBM
WebSphere Portal 6101 performance tunning guide.
c. Click OK.
d. Repeat the previous three steps for all of the application servers that are members of this core group.
Specify the same transport buffer size for all of these core group members.
e. Click System administration > Node agents > node_agent_name, and then under Additional properties, click Core group service.
f. In the Transport buffer size field, specify, in 200 megabytes the size of the transport buffer.
g. Click OK.
h. Repeat the previous three steps for all of the node agents that are members of this core group.
i. Click System administration > Deployment Manager, and then under Additional properties, click Core group service.
j. In the Transport buffer size field, specify, in 200 megabytes the size of the transport buffer.
k. Click Review to review your changes.
l. Select Synchronize changes with Nodes, and then click Save to save your changes.
Restart all members of the core group.


5# Upgrade Portal to latest fixpack 6.1.0.2.

http://www-01.ibm.com/support/docview.wss?rs=688&uid=swg24022898

6# Apply all the recommended fixes on top of 6102. You can find those fixes on Fix central link.

6.1 Go to fix central link : - http://www-933.ibm.com/support/fixcentral/
6.2 Select WebSphere under Product Group pull down menu.
6.3 Select WebSphere Portal under Product
6.4 Select 6102 Installed Version
6.5 Select All in OS menu.
6.6 Click continue.
6.7 Select Recommended radio button and click continue. This will provide all the recommended ifixes
to be applied on top of 6102 for Portal and Web Content Management 


few more suggestions,


1.  Our asynchronous IO is blocked based on analysis of the thread dumps.  The recommendation is to disable the AIO permanently, using mechanism 1 of the attached link:

        http://www-01.ibm.com/support/docview.wss?rs=180&context=SSEQTP&q1=Disabling%20AIO&uid=swg21366862&loc=en_US&cs=utf-8&lang=en

2.  Set these sizes:

        PermSize:  512 MB
        MaxPermSize:  512 MB
        NewSize:  256 MB
        Min Heap Size:  1796 MB
        Max Heap Size:  1796 MB

3.        We should review the following Portal tuning guide for other settings:

        http://www-01.ibm.com/support/docview.wss?rs=688&context=SSHRKX&context=SS3JLV&context=SS3NNG&context=SSYJ99&context=SSRUWN&context=SS6JVW&q1=Guide&uid=swg27013972&loc=en_US&cs=utf-8&lang=en



Tuesday, October 13, 2009

For the issue with the WPS 6.1
we are having some trouble with the logs which logs the errors as CPU starvation,

CoordinatorCo W HMGR0152W: CPU Starvation detected. Curren
t thread scheduling delay is 8 seconds.

need to figure out a resolution :(
Today
i had this server error On solaris: with wps 6.1

since the log which we are having applies to the same case:

"java.lang.OutOfMemoryError: PermGen space" exception.

apply these settings,

http://www-01.ibm.com/support/docview.wss?rs=688&context=SSHRKX&dc=DB560&dc=DB520&uid=swg21368410&loc=en_US&cs=UTF-8&lang=en&rss=ct688websphere

Please follow the instructions as mentioned in the Technote:

For the incrementing the

-> Make a backup of /ConfigEngine/ConfigEngine.sh and
then edit it in a text editor

-XX:PermSize=256m -XX:MaxPermSize=512m

-XX:PermSize=256m
-XX:MaxPermSize=512m

Friday, October 2, 2009

Portal: to obtain the page Unique name to be used in the themes condition.
portal-logic:if tag and selection attribute
portal-logic:if selection="UniqueName.Form">
YES Add Form
< /portal-logic:if >


Wednesday, September 16, 2009

jsf tag cheat sheet:
http://www.horstmann.com/corejsf/jsf-tags.html#Table4_4

http://www.jsftoolbox.com/documentation/help/12-TagReference/html/h_panelGrid.html