Thank you.
I'll test changes...
But could you explain some interesting lines from sources?

  |             ClassLoader loader = Thread.currentThread().getContextClassLoader();
  |             Class clazz = loader.loadClass(identityClassName);
  |             Class[] ctorSig = {String.class};
  |             Constructor ctor = clazz.getConstructor(ctorSig);
  |             Object[] ctorArgs = {username};
  |             p = (Principal) ctor.newInstance(ctorArgs);
  | 
Why i can't do like this?

  |       Class clazz = Class.forName(...);
  |       Constructor ctor = clazz.getConstructor(new Class[]{String.class});
  |       p = (Principal) ctor.newInstance(new Object[]{username});
  | 
Why I must use class loader to load a class?

Thank you a lot...

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3823823#3823823

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3823823


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to