6 Replies Latest reply on Feb 21, 2010 2:47 PM by Ilya Dyoshin

    Seam with Reflection!

    Prathamesh Gaddam Novice


      I want to the stuff:
      Within seam-component create an instance of class using Reflection. The .class are provided by dynamically adding the jars.

      However, stuck with the classNotFoundException!


      1. Which classLoader I need to use to use for Class.forName(name,true, classLoader)? The name can be of pojo OR seam component.

      2. How to refer the jars location in server/seam classpath? So that using reflection the .class/jar is picked/loaded?

      I'm totally confused as where to begin and what to look into. Any clue will be helpful. 

      Thank you in advance.