<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=euxx" rel="nofollow">Eugene Kuleshov</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-1415?redirect=false" rel="nofollow">SPR-1415</a></strong> and commented</p>
<p dir="auto">When implementing session or message-driven EJB's using Spring's convenience EJB classes it would be nice if you can actually define special bean in Spring application context, then when this bean will be requested, it would inject all the dependencies declared in it into the caller. Then user would just add bunch of set* methods and they will be automatically called upon context resolution from the super class (from ejbCreate() method).</p>
<hr>
<p dir="auto"><strong>Issue Links:</strong></p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398051386" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/5053" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/5053/hovercard" href="https://github.com/spring-projects/spring-framework/issues/5053">#5053</a> EJB's that reference other beans cannot use Dependency Injection (<em><strong>"duplicates"</strong></em>)</li>
</ul>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=youngm" rel="nofollow">Mike Youngstrom</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-7967?redirect=false" rel="nofollow">SPR-7967</a></strong> and commented</p>
<p dir="auto">mvc:annotation-driven is not very configurable.  I understand the desire for simplicity here but occationally I have the desire to customize a small aspect of what mvn:annotation-driven does and I end up having to rip out the use of mvc:annotation-driven entirely.  So I'm hoping that this feature request can make it into mvc:annotation-driven.</p>
<p dir="auto">My situation is that I'm exposing some services in both XML and Json.  It would be great if I could use JaxB annotations on my model objects to expose both.</p>
<p dir="auto">Jackson provides an the JaxbAnnotationIntrospector that supports this but it is not configured by default.</p>
<p dir="auto">It would be great if the mvc:annotation-driven handler could be extended to support some way of setting this introspector on the MappingJacksonHttpMessageConverter.class it creates.</p>
<p dir="auto">Documentation for this Introspector can be found here. <a href="http://wiki.fasterxml.com/JacksonJAXBAnnotations" rel="nofollow">http://wiki.fasterxml.com/JacksonJAXBAnnotations</a></p>
<p dir="auto">I'm thinking perhaps just the ability to specify a custom ObjectMapper would suffice.</p>
<p dir="auto">&lt;mvc:annotation-driven jackson-object-mapper="someObjectMapper"/&gt;</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 3.0.5</p>