I Have a Spring 3.1.2 MVC REST controller ( war file ) in which i am accesing ejb 3 entity beans through JNDI lookup ( jar file in jboss 7.1.1final (both the jar and war are packaged as an ear file ))

I have annotated my ejb entity beans with @JsonIgnore , @JsonIgnoreProperties etc..
but spring just seems to ignore these annotations present in my entity beans while serializing to JSON.

Is this because these are entity beans defined in a separate jar and spring cannot understand the annotations defined?

Has anyone accesed EJB's this way and serialized to JSON?