0 Replies Latest reply on Aug 8, 2014 8:18 AM by rahul vashishth

    Scan java package at run time in osgi container

    rahul vashishth Novice

      I am manually creating the JPA EntityManagerFactory in which i need to scan all packages for different bundles/jar of my applications.

      emf.setPackagesToScan("com.my.test");

      Since in osgi container package name will not be resolved like this, package name will be like  bundlename:version:com.my.test

      resulting in throwing package not found exception.Please help me to  scan java packages at run time in osgi container.