I am trying to read applicationContext file from META-INF because i am creating the jar of my project APIs.
When i am trying to read it in my project(simple java project) normally e.g. in resource/applicationContext.xml then able to read it fine and loads successfully.
But once i create the lib of it and putting this spring context file in META-INF then its not reading the file...
Not sure I am following you. In your jar project you would put the config XML in src/main/resources. Then you are building that jar. Now you are including that jar as a dependency in another jar. Where is the META-INF stuff coming from? If both your projects have their own configs in src/main/resources and they have the same name i.e. applicationContext.xml you need to do something like this
This special prefix specifies that all classpath resources that match the given name must be obtained
Actually when i am creating the archive(jar) of my classes (ofcourse it i'll have META-INF) at that time i am putting this config (xml etc.) file from /resource/.. to META-INF folder of the jar.
But but not able to read it from META-INF folder.