Monday, February 23, 2009

Yosemite









Mac is Mac is Mac. These are the pics from my camera ...modified

Tuesday, November 11, 2008

WSDL styles

Firstly, let me talk about RPC/literal and Document/Literal(Wrapped)

RPC/literal -- uses methodName in soap:body, and the input parameters.
For eg. if you had a method like

private void simpleMethod(int x, int y)

RPC/literal SOAP request would be like...
<simplemethod>(Method name)
<x>2</x>
<y>3</y>
</simplemethod>

A Document/Literal(Wrapped) would be -
<name_of_input_request_element_in_wsdl>
<x>2</x>
<y>3</y>
</name_of_input_request_element_in_wsdl>

RPC/encoded would be like
<simplemethod>(Method name)
<x type="int">2</x>
<y type="">3</y>
<simplemethod>

Document/Encoded would be like
<soap:body>
<x>2</x>
<y>3</y>
</soap:body>

Check that there is no method names or sthg. Just the input params.

Document/Literal (bare)
<input_element1>2</input_element1>
<input_element2>3</input_element2>

Good like to read
<a href="http://www.ibm.com/developerworks/webservices/library/ws-whichwsdl/">http://www.ibm.com/developerworks/webservices/library/ws-whichwsdl/</a></simplemethod></simplemethod>

Wednesday, November 5, 2008

Hard time

This has been a very very tough week. I have never had it so hard. I cant concentrate. I just wish there werent so many rules. I just wish we could do stuff what we want. Sometimes, something amazing can be missed just because there are rules. 

I hate rules. 

Tuesday, October 21, 2008

Class.getResource and ClassLoader.getResource

I better blog this down before I forget and do another couple of hours of research.
Class.getResource(): 
1. Resolves name you pass to it. If the name has a starting "/", then it takes it relative from the classpath. means.. "/config/x.txt" == in classpath, config/x.txt should be there
2. If you dont pass a starting "/" then it appends the package name to the file...so, if the name is "config/x.txt" and the class is com.xxx.MyClass, it will look for com/xxx/config/x.txt.
ClassLoader.getResource():
Doesnt do any name resolving. Delegates to parent classloader, if not found, looks in current classloader. 

This is my execution:
C:\workspace\CL\bin>java -cp .;CL-1.0.jar a.B
              
I have a config file called POS.properties in ./config folder.

I tried to read POS.properties in 3 ways.
(i) From main method, 
this.class.getResource(/config/POS.properties);
Will find it. From current path, it exists in config/
this.class.getResource(config/POS.properties);
Cant find it. From current path, Looks for in a/config/POS.properties. 
this.class.getClassLoader().getResource(/config/POS.properties);
Cant find it
this.class.getClassLoader().getResource(config/POS.properties);
Will find it.

Monday, September 15, 2008

el corte de madera creek, woodside , ca




Yup...hiking day. Somehow...Didnt have lot to blog these days..things went too fast or I wasnt in a mood.
It was totally amazing! For the first half, we were going down the hill...thru the mountains and just before entering the mountains ...we saw the sign that it was infested with rattle snakes and mountain lions...we were bloody shocked and looked at each other.. We were shit scared... Well, we went anyway...then almost one mile down the hill...we see no one...we were alone....we wud stop at every creaking sound. We wud be scared with rats making sound etc... we thought maybe we r at a wrong place and we shud go back.. then we were at a point when we were totally freaked out. and then we turned back and started to go....but then at the same nick of time...we see more hikers... phew..from then on we saw lot of bikers and people..so it was cool. Then while going back...GPS was taking us down the hill....only car can drive and there were edges of the mountain.... ..I was ultra cool....and then the unthinkable happened... another car came in the opposite direction!!!!!!! ...heheheheh...someone had to move back...and it was all edgey....I moved back..and the other car somehow managed to move.....phew phew phew...I still cant get over the excitment...hopefully we go to more hiking!!

Check more pictures here...

Tuesday, June 24, 2008

Its Stupid, stupid!

We are going into doing stuff with OSGi. OSGi does dynamic linking up and stuff. Osgi manages lifecycle also.

So I think, whats the difference between OSGi and JMX. Research tells me, JMXing OSGi bundles :o

I forgot abt that...Then I figured, whats the difference between OSGi and Webservices. hehehehe
Research tells me, how to mae OSGi bundles as webservices.

More comments when I becomes smarter.

Monday, June 9, 2008