How to insert Spring bean in Apache Wink?

How do I add Spring -managed beans to Apache Wink?

I have a submenu application running in web.xml that starts fine if I close the dummy @Autowired data @Autowired under the interface inside it. I have implemented a JPA service to provide data that implements the same interface configured with Spring 2.5.6. It works just fine in isolation.

It seems to me that I just need to enter my JPA service instead of my dummy service, but I can’t figure out how to do it - I tried @Service annotations and <context:annotation-driven> ; tried to manually enter the jpa service. It's like Wink and Spring don't know about each other.

Wink docs mention Spring integration , however this is talking about the "Apache Wink context base file", which I cannot find mention of anywhere else in the Wink docs.

Does anyone have any ideas?

+1
source share
1 answer

The Apache Wink Kernel Context File wink-core-context.xml is the Spring configuration file. This is part of the "wink-spring-support".

You can find the file in apache-wink-1.1.3-incubating-src.zip in apache-wink-1.1.3-incubating-src\wink-spring-support\src\main\resources\META-INF\server

+1
source

All Articles