|
From: Kees J. <ke...@dd...> - 2003-05-11 08:59:14
|
On Friday 09 May 2003 01:02 pm, Gerard van de Looi wrote:
> Maybe it's even better to do it the same way as a war file. We can give the
> various components their own subdirectory within the archive, so we don't
> have to mention them all in the deployment descriptor. This can avoid
> errors in the deployment descriptor.
Yes. this i a good idea. for mmbase applications (apps1) this is possible , I
have a working example here. once you have loded the jar in the classloader
it's possible to do something like
MyClas.class.getResources("config/applications/MyApp.xml");
but still you need an entry point because you don't want/can't gues the last
prat of the code (MyApp.xml). I think there are 2 solutions
-add some info to the manifest of the jar
(Mainclass/applicationName/RequiredApps)
-create an interface that some classes might implement (ConfigurationProvider)
|