Non-managed by Spring web-application and jar file with Spring features

Posted by EugeneP on Stack Overflow See other posts from Stack Overflow or by EugeneP
Published on 2010-04-14T10:02:36Z Indexed on 2010/04/14 10:02 UTC
Read the original article Hit count: 260

Filed under:
|
|
|

My idea is to create a .jar file that contains Services

managed by Spring, that should be got by getBean()

I want to put it to WEB-INF/lib of a Web-app

Then in web-app Servlets I want to get use of the functionality of a Jar file.

1 Idea. Create classes that encapsulate invokation to Spring Context (getBean() etc) So then, I suppose there'll be no problem in using those in Servlets through jar import. Only thing, what kind of context I should use inside .jar to get beans so that it worked after packing into jar? ApplicationContext or what?

2 Idea. Is there another simple solution how to pack into jar and then use Services in a non-managed by Spring environment?

© Stack Overflow or respective owner

Related posts about java

Related posts about spring