Announcement Announcement Module
Collapse
No announcement yet.
Dependency Injection from JAR file Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Dependency Injection from JAR file

    Is there any way that dependent beans can be referred which are packaged in a JAR? Is there any configuration that needs to be specified that would recognize/load the dependencies from a jar file?

    when I refer that error message that is displayed is : It could not find the bean definition of the dependencies.


    Any suggestions/ idea ?
    Last edited by Ashw!n; Jan 26th, 2011, 12:50 PM.

  • #2
    if the jar is in the application's classpath then the classes in the jar are not treated differently by Spring than the .class of the application itself. Just specify the right package for the resources inside the jar, either in the bean definition (if you define beans in xml) or in the component-scan (if you use annotations).

    Comment


    • #3
      Could you provide the suggestion to me? I get the problem in component-san;

      Inject spring bean from another bean in jar file

      Comment

      Working...
      X