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

    Seam with Reflection!

    allforjava.allforjava.aol.in

      Hi,


      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!


      Queries:


      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.