Thanks Edward, Yes I did try the getResource(), but it won't support wildcards natively,
Actually, I am using Spring DM 1.1.0-m2 along for Web Development in OSGi. But this has a bug and won;t work outside Spring MVC (I am not using it). This bug is available ini the RC-1 SNAPSHOT, that I wanted to avoid. Spring DM's resource abstraction provides a solution to this. However, within M2, I used some code (instead of being declarative) and Spring-DM to get a workaround without switching to the RC1 SNAPSHOT. I went through the Spring DM code on this to found that getting to my solution through plain coding without dm, will take up a good amount of my time and energy (Afterall thats why we use libraries !) Thanks a lot! On Fri, Jun 20, 2008 at 3:36 PM, Edward Yakop <[EMAIL PROTECTED]> wrote: > On Fri, Jun 20, 2008 at 4:11 PM, Thomas Joseph <[EMAIL PROTECTED]> > wrote: > > Hi All, > > > > I am embedding few jars inside my bundle and reffered them in my > > Bundle-Classpath entry. > > > > Now I would like my code to access all the *.xml files inside those > embedded > > jars. > > > > Any ways I could do this? > > You would need to grab your bundle context. > And u can do the following: > > BundleContext context; > context.getBundle().getResources( "pathToResource" ); > > Regards, > Edward Yakop > > _______________________________________________ > general mailing list > [email protected] > http://lists.ops4j.org/mailman/listinfo/general > -- -- Thanks and Regards, Thomas Joseph ------------------------------------------------------------ Promote Open Source - Promote Liberty of Ideas and Software. ------------------------------------------------------------
_______________________________________________ general mailing list [email protected] http://lists.ops4j.org/mailman/listinfo/general
