Archive

Archive for the ‘IBM – TGMC’ Category

IBM – TGMC Eclipse, DB2 and Websphere

October 4, 2010 73 comments

Our team took nearly 3 weeks to start implementation, which is actually not required and I do not want other starters to waste so much time. So here is a PPT file which help starters. Work Guide for tgmc

UPDATE 1(15th Nov 2010) : Here is another pdf which might be helpful, check that too. Config_WASCE_Eclipse

UPDATE 2(19th feb 2011) : The slide number 104 in the ppt ( work guide for tgmc1 ) shows the selection of only one driver. Please make a correction that you need to select following two drivers instead of just one.
1. ‘com.ibm.db2/db2jcc/9.1/jar’
2. ‘com.ibm.db2/db2jcc_license_cu/9.1/jar’
The selection of the second driver type is missing in the ppt. You can select both the drivers simultaneously by pressing control button.

NOTE : The slide number 104 in the ppt shows the selection of driver version 8.1, but you can either choose driver version 8.1 or 9.1 . This depends on the DB2 version you are using.

I would suggest to read few articles on:

1. JDBC and types of JDBC drivers available.

2. Connection Pool

3. Recordset

This gives you a better idea and understanding when you are configuring.

I have also seen most of the team struggling for the JDBC test code. So below is the sample JDBC code which can be used for testing the JDBC :-

import java.sql.*;
public class connect {
public static void main(String[ ] args)
{
try
{
Class.forName( “com.ibm.db2.jcc.DB2Driver” );
Connection con = DriverManager.getConnection( “jdbc:db2://localhost:50000/testdb”, “db2admin”, “db2_pass” );
Statement statement = con.createStatement( );
ResultSet rs = statement.executeQuery(“select * from db2admin.db2_test_table”);
while ( rs.next( ) )
{
String firstname = rs.getString( “FIRSTNME” );
String lastname = rs.getString( “LASTNAME” );
System.out.println(“FirstName: “+firstname+”, Lastname: “+lastname);
}
statement.close( );
con.close( );
}
catch( Exception e )
{
e.printStackTrace( ); }
}
}
}

Following things to remember :-
1. In the above example in line no 8, the password has to be replaced with the one you choose. The password in the above example is “db2_pass“.

2. You need to change the table details also. The table schema used in above example is

db2_test_table(FIRSTNAME varchar(20), LASTNAME varchar(20)).

hope this helps.All the best. :)

NOTE : Both PPT and PDF tutorials found in this blog post are not designed by me and I too have got it from the web long ago. It is only for the purpose of sharing information with the world, so that, everyone can be benefited.

IBM TGMC – A Flashback

Today I got my certificate from from IBM – TGMC and I recollected the whole scene once aging. We did TGMC one year ago and it was a great experience for all of us. I still remember the last December (2009) and January (2010) when we were all struggling and were about to start implementing our project. By the way my team mates were Zubin S Mithra, Suryodaya M K and Vidhu Vinod and our mentor was Mr. Vipin P and our team name was ‘square0ne‘. We chose this name because, we always started, but ended up at the same starting point and thus the name… :)

Our project topic was “Able – Help The Differently Abled”. It was a project which basically focused on the Mentally challenged and Physically challenged to socialize with people around them. They can also get the required information on the specific field of retardation. The doctors and parents can even share the information they have. An online forum facilitating an open discussion on various topics. Information on different relaxations available to handicap by Indian Government. There were lot more option which we planned like upload and share pics, send messages to your beloved, chat online with the like minded and with the doctors…etc…etc. Our project was definitely very big but due to lack of time and laziness of course we couldn’t complete the whole project. We could implemented just one third of our project and we all learned a lot from that one third project.

To collect the real life experience we visited Ashakiran School, Calicut – school for mental retardation, Rahamaniya higher secondary school for handicap, Calicut and we also met Dr. Shaji Thomas, Baby Memorial Hospita ( He is a child specialist and have also studied a lot about mental retardation ). We met the students of Ashakiran and danced with them. We also gave them chocolates. It was a great experience and a fun filled day.

We used various software engineering techniques to prepare various documents like SRS(Software Requirement Specification), Class diagram, Database Design, Usecase Diagram, Sequence Diagram and Architecture Diagram. I mainly worked at the back-end. We used IBM-DB2 as the database, IBM-Webshpere as the server and Eclipse as the development environment. We used JDBC (Java Database Connectivity) to store and retrieve the data. The other web technology we used are JSP, HTML, XHTML and XML. I still remember, it took us nearly 3 weeks to figure out how to configure the server and database and we then geared up and completed the 1/3 rd of the project in just 1 month. It contain numerous number of jsp pages and java classes.

Altogether it was good experience to learn lots of technologies at the same time. I am definitely looking forward to complete the rest 2/3rd of our project may be now but in future. Well, if you are really thinking to do a project under TGMC, do remember that you need to have a strong dedication of at least 6 months, if you lack this I would suggest not to go for.

Categories: IBM - TGMC Tags: , , , , ,

My World Of TGMC…!

December 23, 2009 Leave a comment

Well, Its been nearly 6 months me and my team working on The Great Mind Challenge(TGMC). By the way it is the National Level Web-Designing Competition organised by IBM. We have submitted the synopsis(Phase 1, first level submission), in which we have done a pretty good job and now its time for the reality. Last date of project submission is 20th Jan 2010 and we haven’t even finished 1 single JSP page. Believe me, it’s very hard to work with IBM tools…My GOD…! Installation itself will doze you off and even after, several troubles surrounds you like, starting server which takes quite an amount time, JDBC drivers shows error, crashing of whole software itself, the worst of all compatibility problem with operating system etc..etc… I have tried out windows 7, vista, xp, fedora and ubuntu and Finally landed up on xp, where these persist but bit less.

Apparently, I always love errors. I find it interesting to solve the encountered ones using the most famous search engine ‘GOOGLE’. I have learnt a lot just by solving them. Search for the encountered ones and follow different approach by different people. This will make you learn how to solve one particular error in many different ways.

Front-End part is perfectly handled by my other two mates. Template for our website is ready and they are about to begin with static pages. Me and fourth mate is handling Back-End where JSP, DB2 queries and JDBC are the main technologies which I should know. Among them JSP and DB2 is bit more simple to learn(though I am not perfect in that). The most difficult part comes when you use JDBC, the connectivity part. Need to learn that properly.

There are few more teams and its the same case with them. Most of them are enjoying at home and me and my team feels that we are the only team left behind on this earth…huh..! :-( With the help of some previous year’s top projects we are some how moving on…!Anyways what ever may be the case one thing is for sure that we will be giving our 100%. I just hope everything goes well.

By the way forgot to tell you one more thing. Our team name is ‘square0ne‘. Now you must be wondering why did we choose such a name…? Let me tell you that, we always start, but ends up at the same starting point and thus the name…. ;-)

Categories: IBM - TGMC Tags: , , , , ,
Follow

Get every new post delivered to your Inbox.