Lucian Bargaoanu wrote:
> 
> Thanks, actually this is more than I need. I just need to return the result
> of  lookup.
> I've succeeded to do that locally, but from another host it doesn't work.
> I did set a security manager.

If by "from another host" you meant "from another jboss instance", that
is
a bug. I experienced it a few month ago and recently it was discovered
and
filed as "the bug" at sourceforge.

>From other side, if you were talking about a "client" on another host, it
should
work. At least for me.

Tell us, what are you exactly doing.



> 
> //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
> 
> _______________________________________________
> 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

Reply via email to