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

Monday, January 21, 2013

eclipse tomcat startup: Reveal end of document error( internal Error)

 

I am not sure if this is the root cause, however when i do the below the error is gone….

  1. restart eclipse; right click inn console; go to preferences
  2. make sure u select the below options and as these are

image

if u unselect the checkbox: limit console output and if u r console generates a lot of print stmts u get the error.

Thursday, November 15, 2012

Q

image

Super kiran… I am so proud of u… Even in such difficult situations u r taking a very good stand