hi,Alex! Why don't you think about OSGi(http://www.osgi.org)? It supports dynamic load jar file,and manages a lot of components in osgi container.
I think Restlet supports OSGi,'cause I had seen some topic about osgi at this discuss group. On Jan 30, 2008 3:15 AM, Jerome Louvel <[EMAIL PROTECTED]> wrote: > > Hi Alex, > > > Besides the obvious Java issues of dynamically loading code, > > are there any > > restlet-specific considerations for why you dynamically load an > > Application instance from a jar file? > > I'm not aware of specific issue. The design was aimed to support this > scenario. > > > It seems to me that the Component instance in which the Application is > > running is > > protected from the Application instance. As such, there > > isn't a way that the > > dynamically loaded code could do something bad like call "stop()" on > > the component > > unless you made the component instance directly available in > > the environment > > somehow (e.g. as an attribute on the context). > > > > Am I correct? Are there other issues to consider? > > Yes, you are correct. Other potential issues are related to the client > connectors which are shared between all applications. Starvation could occur > if not care is used or thread are created without control. In the future, we > would probably want to provide a stricter environment for application, > similar to Servlet containers. > > Best regards, > Jerome > > -- cleverpig Location: Beijing Address: Room 4018,No.A2 South Avenue Fuxingmen Beijing,P.R.China Zipcode: 100031 Phone: 010-66415588-1113 MSN: [EMAIL PROTECTED] QQ: 149291732 Skepe: cleverpigatmatrix My Facebook ID:cleverpig My Blog: hihere.sohu.com My Tags: del.icio.us/cleverpig My Twitter: twitter.com/cleverpig My Organization: www.beijing-open-party.org 一些值得关注的唧歪: http://jiwai.de/t/jmatrix/ http://jiwai.de/t/db4o/ http://jiwai.de/t/matrix-community/

