Re: How to call an external class from a webapp (i.e. - implement a plugin)

2010-07-08 Thread Goren Il
Thanks Chris for your response. It seems that you are thinking in the same direction that we had in mind. About your suggestion to create a new class loader - this is the direction that we started checking. We considered the following: 1. Creating a new class, that extends WebappClassLoader. 2.

Re: How to call an external class from a webapp (i.e. - implement a plugin)

2010-07-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 7/7/2010 3:48 PM, Caldarale, Charles R wrote: >> From: Christopher Schultz [mailto:ch...@christopherschultz.net] >> Subject: Re: How to call an external class from a webapp (i.e. - >> implement a plugin) >>

RE: How to call an external class from a webapp (i.e. - implement a plugin)

2010-07-07 Thread Caldarale, Charles R
> From: Christopher Schultz [mailto:ch...@christopherschultz.net] > Subject: Re: How to call an external class from a webapp (i.e. - > implement a plugin) > > Another option is to implement your own ClassLoader that > scans a directory (such as /my/great/plugins) for JAR fil

Re: How to call an external class from a webapp (i.e. - implement a plugin)

2010-07-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Goren, On 7/6/2010 10:51 AM, Goren Il wrote: > There are 2 issues (not in order of priority): > 1. The steps are not straight forward, and may cause the system to stop > working (the customer should change the WAR suffix to "zip", open it, > add the

Re: [OT] How to call an external class from a webapp (i.e. - implement a plugin)

2010-07-07 Thread André Warnier
ing to learn from the experts here, if there would exist an efficient and servlet-spec compatible way to implement such a mechanism in Tomcat. On 06-Jul-10 18:15, Caldarale, Charles R wrote: From: Goren Il [mailto:gore...@hotmail.com] Subject: Re: How to call an external class from a weba

Re: How to call an external class from a webapp (i.e. - implement a plugin)

2010-07-06 Thread Goren Il
n terms of performance, but if there is no other possibility - this is what we shall do. Thanks On 06-Jul-10 18:15, Caldarale, Charles R wrote: From: Goren Il [mailto:gore...@hotmail.com] Subject: Re: How to call an external class from a webapp (i.e. - implement a plugin) Aren't there oth

RE: How to call an external class from a webapp (i.e. - implement a plugin)

2010-07-06 Thread Caldarale, Charles R
> From: Goren Il [mailto:gore...@hotmail.com] > Subject: Re: How to call an external class from a webapp (i.e. - > implement a plugin) > > Aren't there other webapps that have plugin capabilities? The philosophy of the servlet spec is to have self-contained webapps, so p

Re: How to call an external class from a webapp (i.e. - implement a plugin)

2010-07-06 Thread Goren Il
uot; with a particular web app? -Original Message- From: Goren Il [mailto:gore...@hotmail.com] Sent: Monday, July 05, 2010 2:44 AM To: users@tomcat.apache.org Subject: How to call an external class from a webapp (i.e. - implement a plugin) I would like my webapp to call an external class, which will

RE: How to call an external class from a webapp (i.e. - implement a plugin)

2010-07-06 Thread Joseph Morgan
What's wrong with providing instructions to the customer on how to install the "plugin" with a particular web app? -Original Message- From: Goren Il [mailto:gore...@hotmail.com] Sent: Monday, July 05, 2010 2:44 AM To: users@tomcat.apache.org Subject: How to call an extern

How to call an external class from a webapp (i.e. - implement a plugin)

2010-07-05 Thread Goren Il
I would like my webapp to call an external class, which will be provided (as a name) in an XML file at run time. The external class will be developed by 3rd party, and might include additional JARs. I will refer to the external class and JARs as the "plugin". My webapp is provided as a WAR, so