Results 1 to 3 of 3

Thread: Dependency Injection from JAR file

  1. #1
    Join Date
    Jan 2011
    Posts
    1

    Default 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 at 11:50 AM.

  2. #2
    Join Date
    Jul 2010
    Location
    Venice, Italy
    Posts
    709

    Default

    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).

  3. #3
    Join Date
    Sep 2012
    Posts
    4

    Default

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

    Inject spring bean from another bean in jar file

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •