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

    Scan java package at run time in osgi container

    rvashishth

      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.