Thursday, October 30, 2014

TCPC0003E: TCP Channel SIB_TCP_JFAP_SSL initialization failed. The socket bind failed for host * and port 7286. The port may already be in use.

TCPC0003E: TCP Channel SIB_TCP_JFAP_SSL initialization failed.  The socket bind failed for host * and port 7286.  The port may already be in use.


Resolution: Try changing the port number through WAS console.

Tuesday, October 14, 2014

configuration archive file(CAR File) for IBM MDM

configuration archive file(CAR File)

A configuration archive (CAR) file captures the configuration of astandalone application server profile for later restoration on another application server node. The CAR can help clone the original profile to another machine or system.

A configuration archive file is an exported configuration file from an existing standalone application server profile and contains all application server configuration data including security settings, resources, defined ports, and so on. The advantage of using a CAR is that all of this configuration, including any enterprise archive (EAR) files, can be reliably restored to many application server nodes. Importing a configuration archive also offers some performance advantages over creating a standalone application server in the normal way.


The WebSphere Configuration Archive is new features in WebSphere Application Server v6.0.
This feature allows a set of complete or subset of WebSphere configuration archive. WebSphere
Application Server V6 provides a mechanism that allows you to export certain profiles, or server
objects from a profile, to an archive. The archive can be distributed and imported to other
installations. An exported archive is a zip file of the config directory with host-specific information
removed. The recommended extension of the zip file is .car. The exported archive can be the
complete configuration or a subset. Importing the archive creates the configurations defined in the
archive. The target configuration of an archive export / import can be a specific server or an entire
profile.
To use an archive you would:
1. Export a WebSphere configuration. This creates a zip file with the configuration.
2. Unzip the files for browsing or update for use on other systems. For example, you might need
to update resource references.
3. Send the configuration to the new system. An import can work with the zip file or with the
expanded format.
4. Import the archive. The import process requires that you identify the object in the configuration
you want to import and the target object in the existing configuration. The target can be the
same object type as the archive or its parent:
– If you import a server archive to a server configuration the configurations are merged.
– If you import a server archive to a node, the server is added to the node.
A tutorial on creating and using archives can be found in the Information Center. See
ftp://ftp.software.ibm.com/software/eod/was/6.0/SystemManagement/WASv6_SM_Configuration_
Archives/playershell.swf
Prof ile archives
The following command can be used to create an archive of a profile:
$AdminTask expor tWasprof ile {-archive }
You can only create an archive of an unfederated profile (standalone application server).
$AdminTask impor tWasprof ile {-archive }
exportWasprofile:
Use the exportWasprofile command to export the entire cell configuration to a configuration
archive. (myArchive.car)
• Using Jacl:
22 5/15/2006
$AdminTask exportWasprofile {-archive c:\myCell.ear}
• Using Jython string:
AdminTask.exportWasprofile('[-archive c:\myCell.ear]')
Interactive mode example usage:
• Using Jacl:
$AdminTask exportWasprofile {-interactive}
• Using Jython string:
AdminTask.exportWasprofile ('[-interactive]')
importWasprofile:
Use the importWasprofile command to import a cell configuration in the configuration archive to
the system. Only a base single server configuration is supported for this command.
• Using Jacl:
$AdminTask importWasprofile {-archive c:\myCell.ear}
• Using Jython string:
AdminTask.importWasprofile('[-archive c:\myCell.ear]')
Interactive mode example usage:
• Using Jacl:
$AdminTask importWasprofile {-interactive}
• Using Jython string:
AdminTask.importWasprofile ('[-interactive]')

ref: http://publib.boulder.ibm.com/infocenter/wasinfo

IBM MDM workspace optimization

1 | P a g e
How to Compress your Workspace ( IBM MDM workspace optimization )
This document will guide you through the process of converting a workspace into a binary workspace.
Step 1. Clean build the entire workspace.
Remove configured MDM.EAR from the Server.
2 | P a g e
Step 2. Export the MDM project as “Shared EAR”
Right click on MDM  export  Share EAR
Save the MDM.ear to a temporary location.
This step packages all the projects into compressed binary modules (.Jar files) and adds them as
dependencies to MDM.EAR
Step 3. Create a new Workspace
Follow all the required steps to set up the new Workspace
for e.g Deselect all validations under Windows  General Preferences.
You need no t create a new server Profile. You can use any of configured existing server Profile
Step 4. Import the MDM.ear ( SharedEAR ) exported earlier into the new Workspace
After this step you will see a single MDM project in the workspace.
Step 5. Extract the required Projects into Source format
Right click on MDM  J2ee  Extract Binary Modules to Projects
Select only those projects you want to work on.
Only the selected projects will be converted back to source format and listed in workspace.
All the other projects will be in compressed binary format (.Jar). You can follow this step anytime as and when you
need to work on a particular project.
You can also package a source project to binary project when you are done working on it.
3 | P a g e
Step 6. Add Other Projects to the Workspace
Add CustomerResources and XMLTester projects to the workspace. These projects are not associated with MDM
EAR Project and so needs to be added separately.
Step 7. Add CustomerResources to classpath
If you are using existing server profile then you need to update server.xml to change classpath entries.
Go to D:\Program
Files\IBM\SDP70\runtimes\base_v61\profiles\XXXX\config\cells\PC154104Node01Cell\nodes\PC154104Node01\s
ervers\server1\server.xml
Where XXXX – Server Profile Name
<classpath><<Path of new Workspace>>/CustomerResources/properties</classpath>
<classpath><<Path of new Workspace>>/ConfigurationClient/src</classpath>
<classpath><<Path of new Workspace>>/CustomerResources/xsd</classpath>
<classpath><<Path of new Workspace>>/CustomerResources/dtd</classpath>
Step 8. Clean build the entire workspace once again and fix build errors.
After this step, You may get build errors like “Unable to resolve XXXXX”. Most of these errors occur because
Projects were added to Java build path and now these projects are no longer available in Source format. Instead
they are available in binary format. Adding required J2EE module dependencies to the corresponding Project will
solve these build errors.
Step 9. Add and Publish MDM project to server.
Start the Server.
Publish the Server.
Add the MDM EAR project to Server.
Publish the server.
Check the differences in build time and
publish/deploy time with the original workspace.
You will be amazed. 

IBM MDM DSUI workspace optimization

IBM MDM DSUI workspace optimization

When you extract the CusttomDataStewardshipWeb project, the java files gets moved to src folder so do the below setting in the workspace before importing EAR.
The page code should not be present in JavaSource folder.
                We can use the Shared EAR capabilities for doing the build for DSUI as well. We need to change few preferences, project faces and library settings for it to work.
I have tried it with a new workspace, the code is working as expected and a lot faster. PFA the document for your reference.
Most of the time we only need CustomDataStewardshipWeb project only and others are not modified, so extract only this one.

The CommonUIServiceDataObjects project is real killer and we should use 16GB configuration machine if we want to generate SDO objects and build this project.

ADD
-XX:+UseParallelGC

In eclipse.ini file

Open RAD  open preferences=>project=>default source folder(JavaSource)=>Change it as per u r folder name

1.    Set the workspace preferences

(through menu Windowsà preferences)

Click “show heap status”  Check box check it.

Enable all capabilities
Disable as validations
Building à circular dependencies—Change this to “warning”
Remove “build automatically”
Right click on the server in the server view of bottom pane and change the publishing settings to “Never Publish Automatically”

1.    Import Shared EAR

Go to Import and choose “Shared EAR file”

Import the EAR and click finish
You will get a single project
Right click on the project and select “Extract Binary Modules to Projects”
We need CustomDataStewardshipWeb more often so select only this module
There will be errors, do the below steps to remove those. 
Go to properties of CustomDataStewardshipWeb project
The project facet for DataStewardshipWeb project would be 1.4 by default, change it to 6.0
Add all the jars from CustomerDataStewardship project into the libraries of extracted web project and do the full build. You would get below two errors
1.      Faces resources needs to be updated

Use CAR(Configuration archive) File Save 1PD (PD->Person Day) IN IBM MDM WORKSPACE SETUP



Use CAR File Save 1PD (PD->Person Day)
What is CAR & How to use it
Configuration archive (CAR)

Store server configuration of IBM WAS Profile

Take one time backup from existing server profile

Reuse it N number of times to create profile server configuration

Save time to setup profile server configuration

How to take backup CAR file
Open existing workspace on J2ee/Server perspective

Right click on IBM WAS server take server configuration backup, select any project within open workspace, Provide any name but file extension  always .CAR


How to restore CAR file
Open existing workspace on J2ee/Server perspective

Right click on IBM WAS server, select server configuration restore , select the project within open workspace where backup CAR file present


Modify ClassPath in server.XML file
File Location:
D:\Program Files\IBM\WebSphere\AppServer\profiles\AppSrv01(Your Own Profile Name)
  \config\cells\localhostNode01Cell\nodes\localhostNode01\servers\server1 (Path may be differ)

 
  Modify ClassPath in resources.XML file
File Location:
D:\Program Files\IBM\WebSphere\AppServer\profiles\AppSrv01(Your Own Profile Name) \config\cells\localhostNode01Cell\nodes\localhostNode01\servers\server1 (Path may be differ)

Time Performance MDM Toolkit  VS   CAR
Database Setup
Server Configuration
Resources Configuration
Queue Connection Factories
Queues
Activation Specifications
Service Integration Buses
Destinations  Queue


CAR File Limitation For IBM WAS
Don’t Create
Service Integration Buses  & Destinations
** Manual Intervention Need
Help document how to create
Service Integration Buses(MDM.SIB.server1)  & Destinations
FOR THIS CHECK MY POST
Create New BUS/ SIB/ / Destinations /QUEUE  in IBM WAS Profile


Create New BUS/ SIB/ / Destinations /QUEUE in IBM WAS Profile

Follow the url
https://drive.google.com/file/d/0B682iSqyAPufSHNSWTRVTk1qWTQ/view?usp=sharing

Step To Create New BUS in IBM WAS Profile
Provide the Name of New BUS
New BUS(SIB) Created in IBM WAS Profile          

Step To Create BUS Member Under  NEW BUS
Add BUS Member
Select Server
Select FILE STORE
BUS Member Created

Step To Create Destinations
Add Destinations
Select QUEUE
Provide the Name of Destination QUEUE
Destination QUEUE Created

Parallel GC SETUP IN IBM MDM


ADD NEW LINE
IN ECLIPSE.INI

-XX:+UseParallelGC

iN RAD (through menu Windowsà preferences)

Click “show heap status”  Check box check it.