Ok I will try next week,

If I can load several jars in a specific directory with 
VirtualWebappClassLoader, it good :-)

Thank Christopher & Daniel

Bien cordialement,

Adrien Ruffié
LD : +33 1 73 03 29 50
Tél : +33 1 73 03 29 80

E-DEAL
Innover la Relation Client


-----Message d'origine-----
De : Christopher Schultz [mailto:ch...@christopherschultz.net] 
Envoyé : jeudi 3 avril 2014 18:11
À : Tomcat Users List
Objet : Re: Specific class loading in my webapp

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Adrien,

On 4/3/14, 3:53 AM, Adrien RUFFIE wrote:
> I search a means to force my webapp when is deploy in tomcat, to take 
> several jars/classes in located in a specific directory. For example 
> when my webapp start, it load jars into /var/lib/my-repository/
> 
> Is it possible to do this directly with a classloader in my webapp, 
> and also dynamically reload classes. Or it's only tomcat configuration 
> ?
> 
> Thank you very much and best regards

You can specify your own <Loader>[1] under <Context>. Feel free to write your 
own ClassLoader, but it has better implement the requirements of a web 
application ClassLoader.

The VirtualWebappClassLoader (as suggested by Daniel) is a special
case: it's a ClassLoader that's already been written for you. Before you write 
your own ClassLoader, try VWCL and ask here if you can't get it to meet your 
requirements. It's easy to write your own broken ClassLoader.

- -chris

[1] http://tomcat.apache.org/tomcat-7.0-doc/config/loader.html
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJTPYgyAAoJEBzwKT+lPKRYUDQQAMOOWZRnxhHgy4C+PxiKs2UI
YKHornJLXPeQ4/zPg4ZfO+siFzjpdiDhI7kbO+ms2/oY1NioxpjAOSglTOLYIZCg
bX7SX21ubk6jDe1dKcBtc96H6PgxtypQOYIM/rkzVJYWcAAdIrPPutZdSMijdRJq
H9xoULEqtffVPTgfX3KP5b8Y56vE89ys06E1/ygckh876DV2kuZUaKXKiSUzI41W
tWcroAOS/zaEledBzkGq/bPtqzrYfSvFwEATgX0L+Tm/1lYhXfn/377qr41rGuDV
SfPIT6dQWqw4dXBJf25uXJhGxLeLdZs8J50RDgtnLs0mQpzLrx3xkGhyUEXMZAZa
mwSDMc+yRKmCc6FNqjhFY8Y1RV31VYgtCo04+9ZFSiZsUp3Y7rQa40co4WnZkZ0c
wmDCSzTx26aE1RlT4IEOE/Z5xhfSFTcFJrg3I5xYgOUawZGYbJPVSdOrulp89d66
qahKelULTNV1qoLcj0S2G2t5NZx+JBkw35QJ8LsDo9uRvo+uwlIBqDA+OUbWalfB
e2cdNI5S83GR0ZpNnUqa9pdy9vSqm7tsQTgMx5nw9Dup9v6wwwdWnIMULn99OrDf
Xs8h/IvXDA42WP49jooVhl8a7dLfv9kubxu8AQ/Q5R0cMZgRR/b0ilzShMxlhPDp
No2spC3lLYrWFBL4Rruv
=3KZa
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to