Saturday, 30 January 2016

JSONP approach

$.ajax({

url: 'url',
jsonpCallback: "JSON_CALLBACK",
dataType: 'jsonp',
contentType: 'text/plain',
success: function(json) {
console.log(json);
 alert("Success"); },
error: function(jqXHR, textStatus, errorThrown) {
console.log(errorThrown);

alert('Failed!'); },
});

Context :- When JSONP is used for cross domain calls we need to send a parameter '&callback=JSON_CALLBACK ' in this case can we need to alter the output from server to return result wrapped with JSON_CALL

Friday, 29 January 2016

Personalization properties updating cache information

Navigate to below location and pick this  PersonalizationService.properties file from below location.
wp_profile\PortalServer\config\config\services

rulesEngine.cache.timeout=300  :- Update the amount of seconds it should be cached

Monday, 18 January 2016

Websphere portal debug puma issues

Puma trace string :-   To debug any puma related issues please add below trace string in portal administration .


com.ibm.wps.puma.*=all:com.ibm.wps.services.puma.*=all:com.ibm.wps.command.puma.*=all:com.ibm.wps.um.*=all:com.ibm.ws.wim.*=all:com.ibm.websphere.wim.*=all:com.ibm.wsspi.wim.*=all:com.ibm.ws.security.*=all:com.ibm.wps.engine.Servlet=all:

Tuesday, 12 January 2016

Propagation and inheritence differences and clarification websphere portal wcm

Creating a role block - 

  1. On the initial Resource Permissions screen, click the appropriate resource type.
  2. If necessary, search for the appropriate resource instance.
  3. Click the appropriate Assign Access icon.
  4. To create a propagation block, remove the check mark from the appropriate Allow Propagation checkbox. Children of the resource will no longer inherit any assignments for this role type.
  5. To create an inheritance block, remove the check mark from the appropriate Allow Inheritance checkbox. This resource will no longer inherit any assignments for this role type from the parent resource.
  6. Click OK.


Removing a role block-

  1. On the initial Resource Permissions screen, click the appropriate resource type.
  2. If necessary, search for the appropriate resource instance.
  3. Click the appropriate Assign Access icon.
  4. To remove a propagation block, click the appropriate Allow Propagation checkbox so that a check mark appears. Children of the resource will now inherit all assignments for this role type.
  5. To remove an inheritance block, click the appropriate Allow Inheritance checkbox so that a check mark appears. The resource will now inherit all assignments for this role type from the parent resource.
  6. Click OK.

Monday, 11 January 2016

Collecting version info in WebSphere portal IBM

Version info :- Latest version of portal and fix packs applied for product can be found in this log file. To generate this log run below command and pick it from the mentioned location.


Command :- \IBM\WebSphere\PortalServer\bin WPVersionInfo.bat

Location :-  \IBM\WebSphere\wp_profile\PortalServer\log

Custom single threaded java server

 package com.diffengine.csv; import java.io.*; import java.net.*; import java.util.Date; public class Server { public static void main(Str...