Lucian,
it's not legal, according to spec, but it works in jboss:
try
{
Object home = context.lookup(componentName);
Method createMethod = home.getClass().getMethod("create",
null);
Object component = createMethod.invoke(home, null);
}
catch (NamingException ne) {}
and don't forget to set a SecurityManager.
good luck.
Lucian Bargaoanu wrote:
>
> I need to look up a bean without knowing about it's home interface.
> Can i do that? I tried and it tells me that it cannot find the home
> interface.
> Can't i download somehow that .class file from the server?
> Maybe with the RMI classloader.
>
> Sorry if this is a silly question.
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
--
__________________________________________________
Alexander Kogan PTC www.ptc.com
[EMAIL PROTECTED] 140 Kendrick St. Needham MA 02494
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user