Solution is to use java.lang.reflect.Proxy like this:

  | Proxy element = (Proxy) iter.next();
  | InvocationHandler handler = Proxy.getInvocationHandler(element);
  | CreditorBean bean = (CreditorBean) 
Proxy.newProxyInstance(CreditorBean.class.getClassLoader(), 
  |     new Class[] { CreditorBean.class }, handler);
  | 

Any reason why I need to do this?

Other examples do not show this code

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

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


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to