Friday, September 13, 2013

Q

ॐ  नमो भगवते वासुदेवाय ,
यागुम सर्व भूतानि चराणि स्थावराणि च, 
प्रातर नमस्यन्तु सद्याभीरक्षतु !!

Friday, September 6, 2013

Q

Have you ever sat very quietly with closed eyes and watched the movement of your own thinking? Have you watched your mind working? 

J Krishnamurti * 

Friday, May 24, 2013

True abt indians??

I used to feel people in Govt companies are very dishonest, 'cos the line of hierarchy itself is impure; so much so even if u want to work properly u r not allowed to. But its untrue... Today I had seen a case in a company where the admin personell were buying things at a higher price.

Few days back we had to buy samsung galaxy grand, the admin had called the retailer to the company and he was quoting 23+ K. OMG! on flipkart.com u get it for 19+K. Is it that the admin is not bothered? but this is all what they are supposed to do.

Today i came to know.. that people here get their flight tickets booked at 1.5 Lakhs while it wouldnt cost more than 1.+ Lakhs rupees if u visit the airliner website and do the booking. What is all this? aren't they craving for commissions?

I somehow feel its in our bood... the corruption and being dishonest.. what do u think?

Friday, April 26, 2013

Q

Biggest question in the universe: "Why?" But I don't understand Why "Why?"

Q

Be willing to go alone! many who started with you wont finish with you!

Wednesday, February 27, 2013

Q

రక్షణము   లేక సాధుడు రక్షితుడగు  సమత  చేసి రాయుడు లండున్ !
రక్షణలు    వేయి కలిగిన సిక్షితుడగు ఖలుడు పాప చిత్తున్  డగుటన్ !!

-బమ్మెర పోతన 

Wednesday, February 6, 2013

Spring register a new JSON Converter

Yesterday I had to modify the JSON during creation from an object. I want to add validation hints along with the json that travelled to the server.  Spring has converters and uses MappingJacksonHttpMessageConverter to convert the object returned by the controller. SO i want to modify the converter to include the hints in the JSON generated.

A lot of googling happened for no luck finally I got the solution which reads as follows

First override the default handler: MappingJsonHttpMessageConverter

public class JSONHttpMessageConverter extends MappingJacksonHttpMessageConverter {

@Override
protected void writeInternal(Object object, HttpOutputMessage outputMessage) throws IOException,
HttpMessageNotWritableException {




now in spring xml modify the mvc:annotation-config; Please make sure that u dont have another annotation-config with in any of the spring xmls in ur classpath.

    <mvc:annotation-driven  validator="ExtendedValidatationAdaptor" >
<mvc:message-converters register-defaults="true" >
<bean class="wavecrest.foundation.validate.web.JSONHttpMessageConverter" p:somebean-ref="somref" />
</mvc:message-converters>
</mvc:annotation-driven>
and this should do. 
Tested with spring-web-3.1.1.RELEASE.jar