Monday, April 13, 2009
Tracing errors while saving content in to Workspace object using WCM API
I have written code to upload an image into content management system using WCM API.
Due to missing of file extension I could not able to upload an image into content management system using WCM API.
The following code was very useful to find errors while saving a content into workspace object..
String errors[] = oWorkspace.save(oContent);
for(int x=0;x LessThan errors.length;x++)
{System.out.println("Errors while saving content into workspace object using WCM API"+errors[x]);
}
I hope this will help for the people who works with WCM API to write data into content management system.
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
Thursday, August 02, 2007
Transforming UML Activity Diagrams to WebSphere Business Modeler processes
* An object-oriented analysis and design language from the Object Management Group (OMG).
* There are twelve diagrams supported under UML. Four are structural(class, object, component and deployment), five are behavioral(use case, sequence, activity, collaboration and state chart) and three are used for model management(packages, subsystems and models)
Will explain more detail about the above topics in my coming posts.
This article shows how to automatically transform UML activity diagrams (One of the Behavioral Diagram)into WebSphere Business Modeler processes.
Click here for more details.
Tuesday, July 24, 2007
Enterprise Java Research Library in TSS
Click here to visit Enterprise JAVA Research Library in TSS.
Friday, June 22, 2007
Working with LDAP & AD
Now this time i am planning to share my knowledge about getting a connection between LDAP/AD to your JAVA based Web Application.
Let me tell the requirements first.. You need to have ldapjdk.jar you can download from the following location http://www.ktauber.com/downloads/ldap.html .
Code snippet for getting connection
netscape.ldap.LDAPConnection ldapconnection = new netscape.ldap.LDAPConnection();
ldapconnection.connect(3,hostname,portnumber,adminDN,password);
ldapconnection.authenticate(3,adminDN,password);
By using the above three lines you can get the connection from LDAP/AD.Where the adminDN will change from LDAP& AD. {Where DN represents Distinguished Name}
Let us see sample adminDN for the above all..
adminDN format for AD ==>"cn=administrator,cn=users,dc=balamurugans,dc=com"
adminDN format for IPlanetLDAP ==>"uid=admin,ou=administrators,ou=topologymanagement,o=netscaperoot"
adminDN format for openLDAP ==>"cn=Bala,dc=balamurugans,dc=com"
Note default port number is "389" for all LDAP.
let us see how to fetch the data from the above LDAP's in my next post.
Using Spring and Hibernate with WebSphere Application Server
Click here for more details .
Monday, June 04, 2007
New Innovative Business Portal Solutions: IBM Websphere Portal Strategy
Click here to see his webcast event.
10g Oracle Development Kit for Spring
Oracle has come up with their own devlopment kit for Spring devlopment.
These are the benefits from the contents of Oracle Devlopment Kit
- A comprehensive set of How-To examples illustrating Spring-OC4J integration.
- The Oracle Developer Depot Web application, which enables you to deploy and run the How-To projects on OC4J
- A Spring extension to JDeveloper, Oracle's free Java IDE
- Supporting documentation and white papers
Hope this will be good news for oracle devlopers.Please share with me if you find any materials related to the same .
Click here to get more details
Saturday, June 02, 2007
Using RAD V7 to create & deploy JSR 168 cooperative Portlets
Click Here For More Info
Wednesday, November 29, 2006
Creating Virtual Portal in eXo Portal
I hope this will be another interesting topic for eXo portal users.
Here I am planning to share how to create virtual portal in eXo portal.
Following steps has to be done in order to create Virtual Portal in eXo portal:
* Changes have to be made in the following XML files. find the following XML’s portal-configuration.xml & users-
configuration.xml from the following place
eXo_Home\webapps\portal\WEB-INF\conf Make new user details for example bala entries just similar to exo user.
* New XML files has to be added in the following place.
i> Copy exo-config.xml,exo-navigation.xml & exo-pages.xml from
eXo_Home\webapps\portal\WEB-INF\conf\users & paste it in the same place
ii> Rename new xml files to bala-config.xml,bala-navigation.xml & bala- pages.xml .
iii> Change content exo to bala in all above new XML’s.
iv> Restart the server & login as portal admin & check in the management portlet whether you can see the new user with the name of bala.
v> By login as user bala you can change your portal as per your needs.
* Now by using the following URL you can access the new virtual portal i.e., before login
http://localhost:8080/portal/faces/public/bala.