Wednesday, June 18, 2008

Dasathavaram Review

Good movie, the name kamal hassan is the only selling point. It works too. Ten characters sitting for makeup itself is pain in XXX. I will bet only kamal can do it. voice modulation, body language for 10 characters in superb. RAW officer character is very good, thats the comedian character. After watching so many films i think makeup of some characters can be still taken care. But kamal covers it up all.

The only thing i thought was CG (Computer Graphics) is bad. It could have given more importance. some of the scenes look so pathetic with CG. I don't know how kamal missed it. Fletcher character was good, very sad about mallika ending :-(.....

As we have been seeing kamal for many years we can identify the characters, but if some one sees the film for the first time. Then it would be difficult to identify kamal. Hats off to kamal. A true actor, story teller, producer who thinks always about the film industry and how to make films good.
very proud of kamal Hassan.

Tuesday, June 10, 2008

Using WSExplorer in WID

We are using WID(websphere Integeration developer) for our project, since we do lot of our work on business process, MQ and web-services. It becomes diffcult sometimes testing web-services, but when you have WID it easy. WID has WSExplorer built-in.After installing the project with web-servcies. publish the WSDL from the server.


This will publish a zip file, inside the zip file open wsdl file. copy the SOAP url and paste in the browser, append ?wsdl to the URL copied. you will see wsdl file again. check the URL in the browser it might have changed copy the URL from the browser


open the WSExplorer in WID,select wsdl page link and paste the URL which you have copied from the URL and click GO



select the interface operation, you will get screen where you can input your data and invoke the interface.This will call your web-services


if you are using the URL from published zip file, you will be getting this error

so next time if you get this error you know what to do :-)

Wednesday, June 04, 2008

Accessing private methods using JUNIT

If you want to test private method of class which has object's as arguments here is the example to how do it.

First SampleObject



package com.sathish;
public class Sample {
public String example;
public String example1;
/**
* @return Returns the example.
*/
public String getExample() {
return example;
}
/**
* @param example The example to set.
*/
public void setExample(String example) {
this.example = example;
}
/**
* @return Returns the example1.
*/
public String getExample1() {
return example1;
}
/**
* @param example1 The example1 to set.
*/
public void setExample1(String example1) {
this.example1 = example1;
}
}



 


Second the Class with private method

package com.sathish;
public class SampleMain {

private Sample getSampleValues(Sample sample)
{
System.
out.println(" Sample Values Setting in SampleMain"+sample.getExample());
return sample;
}
}


 



Third JUNIT Class File



package com.sathish;

import java.lang.reflect.Method;
import junit.framework.TestCase;

public class SampleTest extends TestCase {
/*
* @see TestCase#setUp()
*/
private Sample sample;
private SampleMain sampleMain;
protected void setUp() throws Exception {

sample=
new Sample();
sampleMain=
new SampleMain();
}
public final void testGetSampleValues()
{
try
{
sample.setExample(
" setting Example 1");
final Method[] methods = SampleMain.
class.getDeclaredMethods();
for (int i = 0; i < methods.length; i++) {
if (methods[i].getName().equals("getSampleValues")) {
final Object
params[] = {sample};
methods[i].setAccessible(
true);
sample = (Sample)methods[i].invoke(sampleMain,
params);
}
}
}
catch(Exception exception)
{
exception.printStackTrace();
}
}
}


 


 

If you check in the JUNIT class, we will be using reflections to find the method and invoke .getDeclaredMethods() method will give array of methods declared in the SampleMain class looping through the methods we are getting the method which has declared private here getSampleValues.

Then we are preparing arguments, setting that particular method accessible and then invoking method with arguments



finally this the output after running the JUNIT file

Sample Values Setting in SampleMain setting Example 1

Tuesday, April 29, 2008

Web 2.0 what does it mean for retail banks

Today i came across the link on Thoughtwork's blog, found interesting how banks ($$$$) think about Web2.o. Marc McNeill has a presentation on slideshare seems good thought of sharing.



Monday, March 24, 2008

Sony S..ks

After quite a long time i have started blogging again ( bear with me :-)... ), i am using Sony NW-S205F Player. Its a good MP3 player with almost all the features G-Sensor,FM,Search and Stylish.


If some one asks me which mp3 player to buy i will always say go for Sony. But the one which i didn't like is the software attached to it. It needs sonic stage for transferring files, managing play lists and to do small operations. When you see a nice song on friends computer you can't directly transfer it, either you have to install sonic stage in your friends computer or copy the file and transfer the file using sonic stage software. i am bit pissed off with the player. so i started looking for software to transfer directly songs to the player then i came to know about MP3 File Manager from sony and Personal Audio Driver

I installed and transferred songs using that software. When i tried to play it it display "CANNOT PLAY" . There was an open source project for Sony MP3 Player
NW-E00x Mp3 File Manager this is really cool application which allows us to play songs from MP3 player, transferring songs from PC to MP3 Player FAILURE FAILURE FAILURE....... I am frustrated with the MP3 file Managers and stopped Searching (R &D :-).. ). But this is temp halt, i will start again and will find the software to transfer songs from PC to MP3 player. so keep an eye on this blog i will update soon with the software.

update found software for transferring song voidMP3FM, works perfectly with NWS205F. easy to transfer songs from PC. Gr8 software thanks to guys who wrote voidMP3FM